mirror of
https://github.com/php/php-src.git
synced 2025-01-25 05:04:20 +08:00
75bc3446f8
All these tests are meant to run with OPcache available, and some will even fail inevitably without it, so we add OPcache as SKIPIF requirement.
18 lines
297 B
PHP
18 lines
297 B
PHP
--TEST--
|
|
Don't create FETCH_DIM_R with UNUSED op2
|
|
--SKIPIF--
|
|
<?php require_once('skipif.inc'); ?>
|
|
--FILE--
|
|
<?php
|
|
|
|
// Order matters
|
|
test($arr[]);
|
|
function test($arg) {}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught Error: Cannot use [] for reading in %s:%d
|
|
Stack trace:
|
|
#0 {main}
|
|
thrown in %s on line %d
|