- Notifications
You must be signed in to change notification settings - Fork8k
Closed
Labels
Description
Description
The following code:
<?phpvar_dump($args);ob_start('ob_iconv_handler');ob_clean();$args = [];$reflection =newReflectionFunction('ob_get_contents');$x =$reflection->invokeArgs($args);
Resulted in this output:
/php-src/Zend/zend_string.h:200:24: runtime error: null pointer passed as argument 2, which is declared to never be null/usr/include/string.h:44:28: note: nonnull attribute specified here (memcpy)SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /php-src/Zend/zend_string.h:200:24
PHP Version
PHP 8.4.0-dev
Operating System
ubuntu 22.04