Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:55604 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89430 invoked from network); 23 Sep 2011 11:04:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Sep 2011 11:04:05 -0000 Authentication-Results: pb1.pair.com smtp.mail=dk@uw.no; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=dk@uw.no; sender-id=unknown Received-SPF: error (pb1.pair.com: domain uw.no from 193.71.32.2 cause and error) X-PHP-List-Original-Sender: dk@uw.no X-Host-Fingerprint: 193.71.32.2 mx-1.vendo.no Linux 2.4/2.6 Received: from [193.71.32.2] ([193.71.32.2:54516] helo=mx-1.vendo.no) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F6/F6-46707-4A76C7E4 for ; Fri, 23 Sep 2011 07:04:05 -0400 Received: (qmail 12571 invoked from network); 23 Sep 2011 11:04:00 -0000 Received: from daniel.tbg.sysedata.no (HELO ?10.0.1.127?) (195.159.98.89) by mx-1.vendo.no with SMTP; 23 Sep 2011 11:04:00 -0000 Message-ID: <4E7C67A0.2010905@uw.no> Date: Fri, 23 Sep 2011 13:04:00 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.20) Gecko/20110805 Thunderbird/3.1.12 MIME-Version: 1.0 To: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: [PATCH] Test-case for bug #55754 From: dk@uw.no ("Daniel K.") 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-- + "a")); +current(array(0 => "a")); +current($arr); + +?> +--EXPECT--