[php-src] Issue #8079: Recent patch to SplFixedArray causes array_walk + json encode to hang, circular var_export during gc to run out of memory
| From: | TysonAndre | Date: | Mon, 14 Feb 2022 18:59:13 +0000 |
| Subject: | [php-src] Issue #8079: Recent patch to SplFixedArray causes array_walk + json encode to hang, circular var_export during gc to run out of memory | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-239784@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8079
Comment Author: TysonAndre
> Can SplFixedArray detect when it was changed and regenerate properties only in this case?
That's probably possible, assuming that in practice, it won't change while
var_export/debug_zval_dump is called, barring any PECL classes that misbehave during
handlers.get_properties (not aware of any).
After modification calls such as offsetSet/offsetUnset/setSize, set a boolean or bit flag in
SplFixedArray's implementation indicating it was modified