/
vshmidt
/
php
Обзор
Документация
Войти
/
vshmidt
/
php
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
ext/json/tests/bug72787.phpt
16 строк
362 B
Tyson Andre
Clean up calls to extension_loaded('json') in tests
28 май 2020, 22:07
28 май 2020, 22:07
32a1ebb
Код
Авторство
О чём код?
--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