php-firebird
php-firebird copied to clipboard
tests/008.php fail with PHP 8.4: Maximum call stack size reached
tests/008.php
Fatal error: Uncaught Error: Maximum call stack size of 8355840 bytes (zend.max_allowed_stack_size - zend.reserved_stack_size) reached. Infinite recursion? in tests/008.php:9
Stack trace:
#0 [internal function]: event_callback('TEST2', Resource id #12)
#1 tests/008.php(32): usleep(300000.0)
#2 {main}
thrown in tests/008.php on line 9
[Tue Mar 4 19:06:20 2025] Script: 'tests/008.php'
/opt/php8.4/include/php/Zend/zend_string.h(176) : Freeing 0x00007f01ffa82940 (32 bytes), script=tests/008.php
=== Total 1 memory leaks detected ===
It passed with PHP 7.4
Same problem for PHP 8.3. Until 8.2 everything is fine. We'll have to check.
It's something to do with the fact that these events can interrupt PHP execution. I don't know internals at that level and how exactly to fix this though.