Closed YuanchengJiang closed 1 week ago
The following code:
<?php $log_file = tempnam(sys_get_temp_dir(), 'php-curl-CURLOPT_WRITEFUNCTION-trampoline'); $fp = fopen($log_file, 'w+'); fwrite($fp, "test"); $ch = curl_init(); curl_setopt($ch, CURLOPT_WRITEFUNCTION, $fusion); curl_setopt($ch, CURLOPT_URL, 'file://' . $log_file); curl_exec($ch);
Resulted in this output:
/php-src/Zend/zend_API.h:847:6: runtime error: member access within null pointer of type 'zend_function' (aka 'union _zend_function') SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /php-src/Zend/zend_API.h:847:6
nightly
ubuntu 22.04
Occurs only since 8.4 with the conversion to FCC interface for function user.
Description
The following code:
Resulted in this output:
PHP Version
nightly
Operating System
ubuntu 22.04