mirror of
https://github.com/php/php-src.git
synced 2024-09-23 10:57:26 +00:00
b9c9be13cc
This added check is actually for NOT failing in NON-strict mode. The ch == -2 check later causes the desired failure in strict mode.
12 lines
257 B
PHP
12 lines
257 B
PHP
--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)
|