[php-src] Issue #15137: Unexpected null pointer in Zend/zend_smart_str.h

From: Date: Sun, 28 Jul 2024 10:02:57 +0000
Subject: [php-src] Issue #15137: Unexpected null pointer in Zend/zend_smart_str.h
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-247384@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/15137 Author: YuanchengJiang ### Description The following code: ```php <?php $cdata = new DOMText; var_dump($GLOBALS); ``` Resulted in this output: ``` /php-src/Zend/zend_smart_str.h:177:41: runtime error: null pointer passed as argument 1, which is declared to never be null /usr/include/string.h:408:33: note: nonnull attribute specified here SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /php-src/Zend/zend_smart_str.h:177:41 in ``` ### PHP Version PHP 8.4.0-dev ### Operating System ubuntu 22.04

« previous php.bugs (#247384) next »