Description
The following trivial variation of test ext/opcache/tests/bug66251.phpt, ran with opcache:
<?php
namespace X;
printf ("A=%s\n", getA());
const A="hello";
function getA() {return A;}
Resulted in this output:
But I expected this output instead:
Fatal error: Uncaught Error: Undefined constant "X\A" in %s:5
Stack trace:
#0 %s(2): X\getA()
#1 {main}
thrown in %s on line 5
Apparently c2c78dc has changed it from checking from generic DO_FCALL to only ICALL, which made this test pass, but only in the specific tested scenario.
PHP Version
PHP 8.4
Operating System
No response
Description
The following trivial variation of test
ext/opcache/tests/bug66251.phpt, ran with opcache:Resulted in this output:
But I expected this output instead:
Apparently c2c78dc has changed it from checking from generic DO_FCALL to only ICALL, which made this test pass, but only in the specific tested scenario.
PHP Version
PHP 8.4
Operating System
No response