[php-src] PR #16468: Detect misuse of ZEND_MAP_PTR_NEW()

From: Date: Wed, 16 Oct 2024 18:38:52 +0000
Subject: [php-src] PR #16468: Detect misuse of ZEND_MAP_PTR_NEW()
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-29268@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/16468 Author: arnaud-lb ZEND_MAP_PTR_NEW() is only safe during startup and when the opcache shm is locked, however it's easy to forget about that and to misuse it. Similarly, ZEND_MAP_PTR_NEW_STATIC() can only be used during startup. Here I add a assertions to check that we are only using ZEND_MAP_PTR_NEW() and ZEND_MAP_PTR_NEW_STATIC() when it's safe to do so.

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