php-src/ext/json/tests
Arnaud Le Blanc f3e87e2a6d
Fix tests: Prevent stack overflow during dtor
On s390x the stack is smaller and/or the object dtor code uses more stack,
which causes the destruction of deeply nested objects to crash in these
tests. Here I ensure that objects are released one by one at the end of the
tests to avoid recursive dtor.

Closes GH-16561
Fixes GH-16528
2024-10-24 15:56:25 +02:00
..
001.phpt Deprecate passing null to non-nullable arg of internal function 2021-02-11 21:46:13 +01:00
002.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
003.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
004.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
005.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
006.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
007.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
008.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
009.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
bug40503.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
bug41034.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
bug41067.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
bug41403.phpt Run tidy 2020-09-18 14:28:32 +02:00
bug41504.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
bug41567.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
bug42090.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
bug42785.phpt Deprecate implicit dynamic properties 2021-11-26 14:10:11 +01:00
bug43941.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
bug45791.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
bug46215.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
bug46944.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
bug47644.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
bug50224.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
bug53946.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
bug54058.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
bug54484.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
bug55543.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
bug61537.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
bug61978.phpt Declare tentative return types for ext/json (#7051) 2021-05-27 10:47:15 +02:00
bug62010.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
bug62369.phpt Add many missing closing PHP tags to tests 2020-08-09 22:03:36 +02:00
bug63737.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
bug64695.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
bug64874_part1.phpt Add many missing closing PHP tags to tests 2020-08-09 22:03:36 +02:00
bug64874_part2.phpt Add many missing closing PHP tags to tests 2020-08-09 22:03:36 +02:00
bug66021.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
bug66025.phpt Declare tentative return types for ext/json (#7051) 2021-05-27 10:47:15 +02:00
bug68546.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
bug68567.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
bug68817.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
bug68938.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
bug68992.phpt Declare tentative return types for ext/json (#7051) 2021-05-27 10:47:15 +02:00
bug69187.phpt Deprecate passing null to non-nullable arg of internal function 2021-02-11 21:46:13 +01:00
bug71835.phpt Declare tentative return types for ext/json (#7051) 2021-05-27 10:47:15 +02:00
bug72069.phpt Declare tentative return types for ext/json (#7051) 2021-05-27 10:47:15 +02:00
bug72787.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
bug73113.phpt Declare tentative return types for ext/json (#7051) 2021-05-27 10:47:15 +02:00
bug73254.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
bug73991.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
bug77843.phpt Declare tentative return types for ext/json (#7051) 2021-05-27 10:47:15 +02:00
bug81532.phpt Fixed bug #81532 2021-10-18 12:41:27 +02:00
fail001.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
gh15168.phpt Fix tests: Prevent stack overflow during dtor 2024-10-24 15:56:25 +02:00
inf_nan_error.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
json_decode_basic.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
json_decode_error.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
json_decode_exceptions.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
json_decode_invalid_utf8.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
json_encode_basic_utf8.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
json_encode_basic.phpt Deprecate implicit dynamic properties 2021-11-26 14:10:11 +01:00
json_encode_exceptions.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
json_encode_invalid_utf8.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
json_encode_numeric.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
json_encode_pretty_print2.phpt Deprecate implicit dynamic properties 2021-11-26 14:10:11 +01:00
json_encode_pretty_print.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
json_encode_recursion_01.phpt Introduce Zend guard recursion protection 2023-08-24 13:03:14 +01:00
json_encode_recursion_02.phpt Introduce Zend guard recursion protection 2023-08-24 13:03:14 +01:00
json_encode_recursion_03.phpt Introduce Zend guard recursion protection 2023-08-24 13:03:14 +01:00
json_encode_recursion_04.phpt Introduce Zend guard recursion protection 2023-08-24 13:03:14 +01:00
json_encode_recursion_05.phpt Introduce Zend guard recursion protection 2023-08-24 13:03:14 +01:00
json_encode_recursion_06.phpt Introduce Zend guard recursion protection 2023-08-24 13:03:14 +01:00
json_encode_u2028_u2029.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
json_encode_unescaped_slashes.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
json_exceptions_error_clearing.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
json_last_error_error.phpt Improve error messages mentioning parameters instead of arguments 2020-09-09 10:47:43 +02:00
json_last_error_msg_error.phpt Improve error messages mentioning parameters instead of arguments 2020-09-09 10:47:43 +02:00
json_validate_001.phpt RFC - json_validate() (#9399) 2022-10-08 09:21:59 -04:00
json_validate_002.phpt RFC - json_validate() (#9399) 2022-10-08 09:21:59 -04:00
json_validate_003.phpt RFC - json_validate() (#9399) 2022-10-08 09:21:59 -04:00
json_validate_004.phpt RFC - json_validate() (#9399) 2022-10-08 09:21:59 -04:00
json_validate_005.phpt RFC - json_validate() (#9399) 2022-10-08 09:21:59 -04:00
json_validate_requires.inc RFC - json_validate() (#9399) 2022-10-08 09:21:59 -04:00
pass001.1_64bit.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
pass001.1.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
pass001.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
pass002.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
pass003.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00
serialize.phpt Declare tentative return types for ext/json (#7051) 2021-05-27 10:47:15 +02:00
unsupported_type_error.phpt Clean up calls to extension_loaded('json') in tests 2020-05-28 15:07:47 -04:00