[php-src] Issue #12879: Function name is missing in error message on MacOS with function JIT

From: Date: Wed, 06 Dec 2023 03:27:49 +0000
Subject: [php-src] Issue #12879: Function name is missing in error message on MacOS with function JIT
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-245992@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/12879 Author: pfustc ### Description Hi @dstogov, I just found another issue which is similar to https://github.com/php/php-src/issues/12672. The following code: ```php <?php run_very_fast(); ?> ``` Resulted in this output: ``` Fatal error: Uncaught Error: Call to undefined function () in /Users/penli01/work/www/index.php:2 Stack trace: #0 {main} thrown in /Users/penli01/work/www/index.php on line 2 ``` But I expected this output instead: ``` Fatal error: Uncaught Error: Call to undefined function run_very_fast() in /Users/penli01/work/www/index.php:2 Stack trace: #0 {main} thrown in /Users/penli01/work/www/index.php on line 2 ``` Name the of undefined function run_very_fast is missing in error message if we use function JIT (tracing JIT is good). ```ini opcache.enable_cli=1 opcache.jit=function opcache.jit_buffer_size=16M ``` I suspect that this is another var-arg passing issue. zend_throw_error is another variadic function but your fix to https://github.com/php/php-src/issues/12672 didn't change the argument passing in zend_jit_undefined_function_stub. ### PHP Version PHP master @ https://github.com/php/php-src/commit/bfb678a266dce177e62357d5641efc12916db75e ### Operating System MacOS 14.1.1

« previous php.bugs (#245992) next »