Hi,
I recently noticed a regression on 1.2.11 when run a Runtime :
Local variables are initialized and locked with the value defined at first execution.
When modifying value in source code, the result output does not change (aka the bug that drives you crazy)
I need to use pskill php-cgi for the value to be updated as what is written in the code.
What I've checked
php (cli) is OK with or without opcache.enable_cli
- Occurs only with
php-cgi
- with or without
opcache.enable
- with
opcache.jit 1255 or off
- 1.2.10 works fine in all situation (cli, cgi,
opcache.jit & opcache.enable...)
Only the local var declared and defined in the returned function called by Runtime->run() are affected.
Find below a standalone example failing on my side
as fcgid http://127.0.0.1/parallel.php
I've checked others var which are ok:
- var & const in included file (cf.
BS, $local in parallel_fct.php)
- var & const in bootstrap file (cf.
FCT, $local in parallel_bs.php)
- var passed in params & context (cf.
$data, $prefix in parallel.php)
var failing
- parallel.php :
$stid, "!bug_2!", "key1", "key2", "key3" (all that is defined & declared between lines 85 & 89)
Hope the description is clear enough, don’t hesitate if not or if you need more test
Own build with php 8.5.3 x64 vs18 TS via httpd mod_fcgid
Hi,
I recently noticed a regression on 1.2.11 when run a Runtime :
Local variables are initialized and locked with the value defined at first execution.
When modifying value in source code, the result output does not change (aka the bug that drives you crazy)
I need to use pskill php-cgi for the value to be updated as what is written in the code.
What I've checked
php(cli) is OK with or withoutopcache.enable_cliphp-cgiopcache.enableopcache.jit1255oroffopcache.jit&opcache.enable...)Only the local var declared and defined in the returned function called by
Runtime->run()are affected.Find below a standalone example failing on my side
I've checked others var which are ok:
BS,$localin parallel_fct.php)FCT,$localin parallel_bs.php)$data,$prefixin parallel.php)var failing
$stid,"!bug_2!","key1","key2","key3"(all that is defined & declared between lines 85 & 89)Hope the description is clear enough, don’t hesitate if not or if you need more test
Own build with php 8.5.3 x64 vs18 TS via httpd mod_fcgid