mirror of
https://github.com/php/php-src.git
synced 2024-09-24 03:17:26 +00:00
12 lines
231 B
Plaintext
12 lines
231 B
Plaintext
|
--TEST--
|
||
|
Passing a dimention fetch on a temporary by reference is not allowed
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
$fn = function(&$ref) {};
|
||
|
$fn([0, 1][0]);
|
||
|
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
Fatal error: Cannot use temporary expression in write context in %s on line %d
|