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 #72152 (base64_decode $strict fails to detect null byte) --FILE-- <?php var_d..
Decoded Output download
--TEST--
Bug #72152 (base64_decode $strict fails to detect null byte)
--FILE--
<?php
var_dump(base64_decode("", true));
var_dump(base64_decode("VVVV", true));
var_dump(base64_decode("VVVV", true));
?>
--EXPECT--
bool(false)
bool(false)
bool(false)
Did this file decode correctly?
Original Code
--TEST--
Bug #72152 (base64_decode $strict fails to detect null byte)
--FILE--
<?php
var_dump(base64_decode("\x00", true));
var_dump(base64_decode("\x00VVVV", true));
var_dump(base64_decode("VVVV\x00", true));
?>
--EXPECT--
bool(false)
bool(false)
bool(false)
Function Calls
var_dump | 1 |
base64_decode | 1 |
Stats
MD5 | b6ae85a403431293367135904f9874a9 |
Eval Count | 0 |
Decode Time | 112 ms |