[php-src] PR #16561: Fix tests: Prevent stack overflow during dtor
| From: | arnaud-lb | Date: | Wed, 23 Oct 2024 15:54:44 +0000 |
| Subject: | [php-src] PR #16561: Fix tests: Prevent stack overflow during dtor | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-29376@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/16561
Author: arnaud-lb
This fixes GH-16528.
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 to avoid recursive dtor.