[php-src] PR #25973: ext/standard: Finish hash fill before RETURN_OOM() in array_map()
| From: | iliaal | Date: | Mon, 30 Nov 2026 20:56:31 +0000 |
| Subject: | [php-src] PR #25973: ext/standard: Finish hash fill before RETURN_OOM() in array_map() | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-41284@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/25973
Author: iliaal
In
array_map() with a null callback and several arrays, RETURN_OOM() exits
inside ZEND_HASH_FILL_PACKED() without calling ZEND_HASH_FILL_FINISH(), so
the inner arrays already built are never released by the result array's destructor. Finish the
fill before returning, as the callback error exit in the same block does. Introduced by the
9705fda1bbb merge.