mirror of
https://github.com/php/php-src.git
synced 2024-09-21 09:57:23 +00:00
a555cc0b3d
Remove most of the `===DONE===` tags and its variations. Keep `===DONE===` if the test output otherwise becomes empty. Closes GH-4872.
22 lines
598 B
PHP
22 lines
598 B
PHP
--TEST--
|
|
Test pass by reference semantics
|
|
--FILE--
|
|
<?php
|
|
// Simplified array_shift_variation5.phpt
|
|
// Showing warning:
|
|
// "Only variables should be passed by reference in %s on line %d"
|
|
$stack = array ( array ( 'two' ));
|
|
var_dump(array_shift(array_shift($stack)));
|
|
|
|
// This should show the identical warning
|
|
$original = array ( array ( 'one' ));
|
|
$stack = $original;
|
|
var_dump(array_shift(array_shift($stack)));
|
|
?>
|
|
--EXPECTF--
|
|
Notice: Only variables should be passed by reference in %s on line %d
|
|
string(3) "two"
|
|
|
|
Notice: Only variables should be passed by reference in %s on line %d
|
|
string(3) "one"
|