Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
--TEST-- Bug #49936 (crash with ftp stream in php_stream_context_get_option()) --SKIPIF-- ..
Decoded Output download
--TEST--
Bug #49936 (crash with ftp stream in php_stream_context_get_option())
--SKIPIF--
<?php
if( substr(PHP_OS, 0, 3) == "WIN" )
die("skip. Do not run on Windows");
?>
--FILE--
<?php
$dir = 'ftp://your:self@localhost/';
var_dump(@opendir($dir));
var_dump(@opendir($dir));
?>
--EXPECT--
bool(false)
bool(false)
Did this file decode correctly?
Original Code
--TEST--
Bug #49936 (crash with ftp stream in php_stream_context_get_option())
--SKIPIF--
<?php
if( substr(PHP_OS, 0, 3) == "WIN" )
die("skip. Do not run on Windows");
?>
--FILE--
<?php
$dir = 'ftp://your:self@localhost/';
var_dump(@opendir($dir));
var_dump(@opendir($dir));
?>
--EXPECT--
bool(false)
bool(false)
Function Calls
None |
Stats
MD5 | 655fcda7a7d670620e927fc6cecb7cef |
Eval Count | 0 |
Decode Time | 76 ms |