source: src/router/php7/ext/opcache/tests/optimize_func_calls_001.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 4 months ago

update php

File size: 249 bytes
Line 
1--TEST--
2Don't create FETCH_DIM_R with UNUSED op2
3--FILE--
4<?php
5
6// Order matters
7test($arr[]);
8function test($arg) {}
9
10?>
11--EXPECTF--
12Fatal error: Uncaught Error: Cannot use [] for reading in %s:%d
13Stack trace:
14#0 {main}
15  thrown in %s on line %d
Note: See TracBrowser for help on using the repository browser.