Bug #80905 [NEW]: VirtualProtect error when proc_open executed in CLI
From: gajowy at agzeta dot pl
Operating system: Windows 10 64-bit
PHP version: 8.0.3
Package: JIT
Bug Type: Bug
Bug description:VirtualProtect error when proc_open executed in CLI
Description:
------------
When JIT mode is enabled, running child process using proc_open causes
crash in CLI mode with VirtualError message.
Test script:
---------------
1. Set opcache.jit_buffer_size=100M in php.ini
2. Run following script in CLI mode:
$proc=proc_open('php.exe',[],$pipes,NULL,NULL,['bypass_shell'=>TRUE]);
print_r( proc_get_status($proc) );
proc_terminate($proc);
Expected result:
----------------
Array
(
[command] => php.exe
[pid] => 13620
[running] => 1
[signaled] =>
[stopped] =>
[exitcode] => -1
[termsig] => 0
[stopsig] => 0
)
Actual result:
--------------
Thu Mar 25 10:20:55 2021 (1612): Fatal Error VirtualProtect() failed
--
Edit bug report at https://bugs.php.net/bug.php?id=80905&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=80905&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=80905&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=80905&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=80905&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=80905&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=80905&r=support
Expected behavior: https://bugs.php.net/fix.php?id=80905&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=80905&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=80905&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=80905&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80905&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=80905&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=80905&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=80905&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=80905&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=80905&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=80905&r=mysqlcfg
Thread (5 messages)
- gajowy at agzeta dot pl