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 #77431 (SplFileInfo::__construct() accepts NUL bytes) --FILE-- <?php new SplF..
Decoded Output download
--TEST--
Bug #77431 (SplFileInfo::__construct() accepts NUL bytes)
--FILE--
<?php
new SplFileInfo("badgood");
?>
--EXPECTF--
Fatal error: Uncaught ValueError: SplFileInfo::__construct(): Argument #1 ($filename) must not contain any null bytes in %s:%d
Stack trace:
#0 %s(%d): SplFileInfo->__construct('badgood')
#1 {main}
thrown in %s on line %d
Did this file decode correctly?
Original Code
--TEST--
Bug #77431 (SplFileInfo::__construct() accepts NUL bytes)
--FILE--
<?php
new SplFileInfo("bad\0good");
?>
--EXPECTF--
Fatal error: Uncaught ValueError: SplFileInfo::__construct(): Argument #1 ($filename) must not contain any null bytes in %s:%d
Stack trace:
#0 %s(%d): SplFileInfo->__construct('bad\x00good')
#1 {main}
thrown in %s on line %d
Function Calls
None |
Stats
MD5 | 2f68fec3c5ccab1b71e181e706bfad30 |
Eval Count | 0 |
Decode Time | 82 ms |