Closed navisoft closed 1 year ago
opcache assumes that compile_file() is called from user code and EG(current_execute_data)->opline is set. In your case, compile_file() was called from internal function (from i18n.c). I have no idea where i18n.c came from. This uninitialized value warning won't make any harm, it should be fixed by reordering conditions in ZendAccelerator.c. It's also possible to make a workaround by setting execute_data->opline in i18n.c
This should be fixed by https://github.com/php/php-src/commit/e488f7b0eb5aa0dbc396a17821386d914899e988
I'm using the zend_compile_file function for require a file in my extension. Here is the code:
Use the function:
The globalString;
valgrind command
If I run wget localhost:8000 one time, there is no valgrind, but if I run twice time, it shows:
PHP 8.0.21-dev (cli) (built: Sep 12 2022 14:44:12) ( NTS DEBUG ) Copyright (c) The PHP Group Zend Engine v4.0.21-dev, Copyright (c) Zend Technologies with Zend OPcache v8.0.21-dev, Copyright (c), by Zend Technologies
PHP Version
PHP 8.0.21-dev