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-- stat() on directory should return 40755 for ftp:// --SKIPIF-- <?php if (array_sea..
Decoded Output download
--TEST--
stat() on directory should return 40755 for ftp://
--SKIPIF--
<?php
if (array_search('ftp',stream_get_wrappers()) === FALSE) die("skip ftp wrapper not available.");
if (!function_exists('pcntl_fork')) die("skip pcntl_fork() not available.");
?>
--FILE--
<?php
require __DIR__ . "/../../../ftp/tests/server.inc";
$path = "ftp://localhost:" . $port."/www";
var_dump(stat($path)['mode']);
?>
--EXPECT--
string(11) "SIZE /www
"
int(16877)
Did this file decode correctly?
Original Code
--TEST--
stat() on directory should return 40755 for ftp://
--SKIPIF--
<?php
if (array_search('ftp',stream_get_wrappers()) === FALSE) die("skip ftp wrapper not available.");
if (!function_exists('pcntl_fork')) die("skip pcntl_fork() not available.");
?>
--FILE--
<?php
require __DIR__ . "/../../../ftp/tests/server.inc";
$path = "ftp://localhost:" . $port."/www";
var_dump(stat($path)['mode']);
?>
--EXPECT--
string(11) "SIZE /www
"
int(16877)
Function Calls
None |
Stats
MD5 | 006b10c2255e28d81c0ce45875c59f2d |
Eval Count | 0 |
Decode Time | 70 ms |