Bug #78961 [NEW]: switch+opcache

From: Date: Sat, 14 Dec 2019 04:13:39 +0000
Subject: Bug #78961 [NEW]: switch+opcache
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-224290@lists.php.net to get a copy of this message
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)

« previous php.bugs (#224290) next »