Bug #80726 [NEW]: With any PHP 8 version I get crash running more than one CLI

From: Date: Tue, 09 Feb 2021 17:14:21 +0000
Subject: Bug #80726 [NEW]: With any PHP 8 version I get crash running more than one CLI
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-232028@lists.php.net to get a copy of this message
From:             rfcastro at porto dot ucp dot pt
Operating system: Windows Server 2012 R2
PHP version:      8.0.2
Package:          Unknown/Other Function
Bug Type:         Bug
Bug description:With any PHP 8 version I get crash running more than one CLI

Description:
------------
The error has occurred on these versions: 8.00, 8.01 and 8.02

I open two command line prompts (two windows) in both I run two php
codes and I get a php_opcache.dll error in the Event log. Sometimes an
unknown and sometimes PHP8.dll but most of the time it's
php_opcache.dll

One php file only has a Hello World cicle, and the other php file opens
has soap connection with a foreach. When I remove the foreach (foreach
($ise_sapiOutput->resultado as $aluno)), it works, if I put it in again
PHP crashes.

If I run without JIT, it works. If I run two simple hello word files,
also works.

My PHP.INI:
[opcache]
opcache.enable=1
opcache.enable_cli=1
opcache.jit_buffer_size=100M
opcache.jit=1255
opcache.memory_consumption=128
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=10000
opcache.max_wasted_percentage=5

Test script:
---------------
File1:
do {
 echo 'Hello World';
 sleep (5);
} while (1);

File 2, soap connection:
$ise_aParameters = array(
'Funcao'		=> 'GetAlunos',
'NivelComp'		=> 5,
'Certificado'	=> 1,
'FormatoOutput'	=> 2,
'PEntrada'		=> 'TpUtil=0; CdUtil=1; PwdUtil=sistema;
AnoLectivo='.$isa_iAnoLectivo.$ida_sSAPICdAluno2,
'PSaida'		=> 'Estado
DESC;NAluno;NomeCompleto;Email;CdCurso;DgCurso;CdFaculd;EmailInstitucional'
);

$ise_xmlString 	= false;
$ise_xmlString 	= $isc_sSoapClient->__soapCall('Execute',
array($ise_aParameters), array('soapaction' =>
'http://tempuri.org/WebServiceSAPI/Service1/Execute','uri'
=>
'http://tempuri.org/WebServiceSAPI/Service1'));
$ise_xmlString	= $ise_xmlString->ExecuteResult;
$ise_sapiOutput = new SimpleXMLElement($ise_xmlString);

if ($ise_sapiOutput->resultado->EstRes=='0') {
 foreach ($ise_sapiOutput->resultado as $aluno) {
  //the error ocorres here with the foreach cicle, if I remove it, no
error		
 }
}

Expected result:
----------------
A PHP crash, usually php_opcache.dll

Actual result:
--------------
both scrips should run without errors. If I turn off JIT, it works.

-- 
Edit bug report at https://bugs.php.net/bug.php?id=80726&edit=1
-- 
Fix committed:                    https://bugs.php.net/fix.php?id=80726&r=fixed
Fixed in release:                 https://bugs.php.net/fix.php?id=80726&r=alreadyfixed
Need backtrace:                   https://bugs.php.net/fix.php?id=80726&r=needtrace
Need Reproduce Script:            https://bugs.php.net/fix.php?id=80726&r=needscript
Try newer version:                https://bugs.php.net/fix.php?id=80726&r=oldversion
Not developer issue:              https://bugs.php.net/fix.php?id=80726&r=support
Expected behavior:                https://bugs.php.net/fix.php?id=80726&r=notwrong
Not enough info:                  https://bugs.php.net/fix.php?id=80726&r=notenoughinfo
Submitted twice:                  https://bugs.php.net/fix.php?id=80726&r=submittedtwice
register_globals:                 https://bugs.php.net/fix.php?id=80726&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80726&r=phptooold
Daylight Savings:                 https://bugs.php.net/fix.php?id=80726&r=dst
IIS Stability:                    https://bugs.php.net/fix.php?id=80726&r=isapi
Install GNU Sed:                  https://bugs.php.net/fix.php?id=80726&r=gnused
Floating point limitations:       https://bugs.php.net/fix.php?id=80726&r=float
No Zend Extensions:               https://bugs.php.net/fix.php?id=80726&r=nozend
MySQL Configuration Error:        https://bugs.php.net/fix.php?id=80726&r=mysqlcfg


Thread (12 messages)

« previous php.bugs (#232028) next »