The following is a test-case for bug #55754 The patch is on top of php-5.3.8.
Daniel K. diff --git a/tests/lang/bug55754.phpt b/tests/lang/bug55754.phpt new file mode 100644 index 0000000..179d475 --- /dev/null +++ b/tests/lang/bug55754.phpt @@ -0,0 +1,11 @@ +--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); + +?> +--EXPECT-- -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php