[php-src] Issue #8079: Recent patch to SplFixedArray causes array_walk + json encode to hang
| From: | dstogov | Date: | Fri, 11 Feb 2022 14:22:04 +0000 |
| Subject: | [php-src] Issue #8079: Recent patch to SplFixedArray causes array_walk + json encode to hang | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-239674@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8079
Comment Author: dstogov
This works fine in PHP-8.1 and master. I don't know the reason :)
This didn't work in PHP-8.0 before the patch, because of assertion - Zend/zend_hash.c:987:
_zend_hash_index_add_or_update_i: Assertion `(zend_gc_refcount(&(ht)->gc) == 1) ||
((ht)->u.flags & (1<<6))' failed
Now PHP-8.0 goes into infinity recursion.