Bug #78961 [NEW]: switch+opcache
From: szargv at qq dot com
Operating system: CentOS 7 64Bit
PHP version: 7.4.0
Package: opcache
Bug Type: Bug
Bug description:switch+opcache
Description:
------------
PHP 7.4 + CentOS 7
in CLI mode
when opcache.enable_cli=1 it shows null
when opcache.enable_cli=0 it shows 3
my email is szargv@qq.com
Test script:
---------------
<?php
switch (1){
case 1:
$GLOBALS = array();
$GLOBALS['td'] = array();
$GLOBALS['td']['nsno'] = 3;
var_dump($GLOBALS['td']['nsno']);
break;
}
Expected result:
----------------
in CLI mode
when opcache.enable_cli=1 it shows null
when opcache.enable_cli=0 it shows 3
--
Edit bug report at https://bugs.php.net/bug.php?id=78961&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=78961&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=78961&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=78961&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=78961&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=78961&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=78961&r=support
Expected behavior: https://bugs.php.net/fix.php?id=78961&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=78961&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=78961&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=78961&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=78961&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=78961&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=78961&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=78961&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=78961&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=78961&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=78961&r=mysqlcfg
Thread (6 messages)
- szargv at qq dot com