# [PATCH] Test-case for bug #55754

- Thread: https://externals.io/message/55604
- Original archive: https://news-web.php.net/php.internals/55604
- Started by Daniel K. on 2011-09-23T11:04:00+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #55604 — Daniel K. — 2011-09-23T11:04:00+00:00

URL: https://externals.io/message/55604#55604

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
