1--TEST--
2Test pass by reference semantics
3--FILE--
4<?php
5// Simplified array_shift_variation5.phpt
6// Showing warning:
7// "Only variables should be passed by reference in %s on line %d"
8$stack = array ( array ( 'two' ));
9var_dump(array_shift(array_shift($stack)));
10
11// This should show the identical warning
12$original = array ( array ( 'one' ));
13$stack = $original;
14var_dump(array_shift(array_shift($stack)));
15?>
16--EXPECTF--
17Notice: Only variables should be passed by reference in %s on line %d
18string(3) "two"
19
20Notice: Only variables should be passed by reference in %s on line %d
21string(3) "one"
22