[php-src] PR #22439: Fix GH-22422: define ZEND_TRACK_ARENA_ALLOC in php_config.h

From: Date: Wed, 24 Jun 2026 13:57:01 +0000
Subject: [php-src] PR #22439: Fix GH-22422: define ZEND_TRACK_ARENA_ALLOC in php_config.h
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-36610@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/22439 Author: iliaal ZEND_TRACK_ARENA_ALLOC switches the zend_arena struct layout under AddressSanitizer but was only added to the core CFLAGS, so it never reached php_config.h. A phpize-built extension inherits php_config.h, not the core CFLAGS, and therefore compiled the untracked layout while core used the tracked one; calling zend_arena_destroy on a core-created arena from such an extension leaked every tracked allocation (78 leaks reproduced via zend_test_compile_to_ast). AC_DEFINE it so the layout stays consistent across core and separately built extensions. Fixes #22422

« previous php.git-pulls (#36610) next »