summaryrefslogtreecommitdiff
path: root/tests/lang/bug55754.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lang/bug55754.phpt')
-rw-r--r--tests/lang/bug55754.phpt14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/lang/bug55754.phpt b/tests/lang/bug55754.phpt
new file mode 100644
index 0000000..c58ec91
--- /dev/null
+++ b/tests/lang/bug55754.phpt
@@ -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