[php-src] PR #25565: Zend: ZEND_CLONE null dereference when the clone handler returns NULL.
| From: | devnexen | Date: | Wed, 18 Nov 2026 18:25:58 +0000 |
| Subject: | [php-src] PR #25565: Zend: ZEND_CLONE null dereference when the clone handler returns NULL. | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-40787@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/25565
Author: devnexen
ZEND_CLONE stored the clone handler's return value unchecked. A handler that threw and returned
NULL, as zend_ffi_free_clone_obj() does, left an IS_OBJECT result with a null pointer that
ZEND_HANDLE_EXCEPTION released. The uri clone handler hit it once GH-25408 kept the opline of a
delayed OOM, which caused its revert. The result is now left undefined.