xref: /PHP-7.4/ext/opcache/tests/bug78961.phpt (revision 6ef7e53c)
1--TEST--
2Bug #78961 (erroneous optimization of re-assigned $GLOBALS)
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.optimization_level=-1
7--SKIPIF--
8<?php require_once('skipif.inc'); ?>
9--FILE--
10<?php
11$GLOBALS = array();
12$GLOBALS['td'] = array();
13$GLOBALS['td']['nsno'] = 3;
14var_dump($GLOBALS['td']['nsno']);
15?>
16--EXPECT--
17int(3)
18