mirror of
https://github.com/php/php-src.git
synced 2025-01-08 12:04:24 +08:00
32a1ebbd43
These are no longer needed after https://wiki.php.net/rfc/always_enable_json Closes GH-5637
17 lines
362 B
PHP
17 lines
362 B
PHP
--TEST--
|
|
Bug #72787 (json_decode reads out of bounds)
|
|
--SKIPIF--
|
|
<?php if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only"); ?>
|
|
--FILE--
|
|
<?php
|
|
|
|
try {
|
|
var_dump(json_decode('[]', false, 0x100000000));
|
|
} catch (\ValueError $e) {
|
|
echo $e->getMessage() . \PHP_EOL;
|
|
}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
json_decode(): Argument #3 ($depth) must be less than %d
|