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 #41693 (scandir() allows empty directory names) --FILE-- <?php try { var..
Decoded Output download
--TEST--
Bug #41693 (scandir() allows empty directory names)
--FILE--
<?php
try {
var_dump(scandir(''));
} catch (\ValueError $e) {
echo $e->getMessage() . "
";
}
?>
--EXPECT--
scandir(): Argument #1 ($directory) cannot be empty
Did this file decode correctly?
Original Code
--TEST--
Bug #41693 (scandir() allows empty directory names)
--FILE--
<?php
try {
var_dump(scandir(''));
} catch (\ValueError $e) {
echo $e->getMessage() . "\n";
}
?>
--EXPECT--
scandir(): Argument #1 ($directory) cannot be empty
Function Calls
None |
Stats
MD5 | 86adfb189f137f70da74bba71437c78b |
Eval Count | 0 |
Decode Time | 97 ms |