[PATCH] Test-case for bug #55754
| From: | Daniel K. | Date: | Fri, 23 Sep 2011 11:04:00 +0000 |
| Subject: | [PATCH] Test-case for bug #55754 | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-55604@lists.php.net to get a copy of this message | ||
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--