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===DONE=== 17--EXPECTF-- 18Notice: Only variables should be passed by reference in %s on line %d 19string(3) "two" 20 21Notice: Only variables should be passed by reference in %s on line %d 22string(3) "one" 23===DONE=== 24