On 10/06/2011 06:15 PM, Johannes Schlüter wrote: > But please extend the test a bit. The current > one will pass even if the process segfaults. At least print something at > the end.
Ah, so that's why some of the tests have 'echo "DONE";' at the end. New test-case uploaded, and attached. Daniel K.
--- /dev/null 2011-07-31 22:39:26.003634828 +0200 +++ php-5.3.8/tests/lang/bug55754.phpt 2011-09-23 12:39:35.000000000 +0200 @@ -0,0 +1,14 @@ +--TEST-- +Bug #55754 (Only variables should be passed by reference for ZEND_SEND_PREFER_REF params) +--FILE-- +<?php + +current($arr = array(0 => "a")); +current(array(0 => "a")); +current($arr); + +echo "DONE"; + +?> +--EXPECT-- +DONE
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php