Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:22647 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 67616 invoked by uid 1010); 2 Apr 2006 18:36:32 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 67601 invoked from network); 2 Apr 2006 18:36:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Apr 2006 18:36:32 -0000 X-Host-Fingerprint: 213.46.255.14 viefep14-int.chello.at Solaris 8 (1) Received: from ([213.46.255.14:31637] helo=viefep17-int.chello.at) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id AF/1C-09123-FA910344 for ; Sun, 02 Apr 2006 14:36:31 -0400 Received: from localhost.localdomain ([80.98.200.3]) by viefep17-int.chello.at (InterMail vM.6.01.04.04 201-2131-118-104-20050224) with ESMTP id <20060402183627.HAPJ19064.viefep17-int.chello.at@localhost.localdomain> for ; Sun, 2 Apr 2006 20:36:27 +0200 Date: Sun, 02 Apr 2006 20:36:26 +0200 To: internals@lists.php.net Content-Type: text/plain; format=flowed; delsp=yes; charset=utf-8 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: User-Agent: Opera M2/8.52 (Linux, build 1631) Subject: A reference problem From: karoly@negyesi.net ("Karoly Negyesi") Hi! Without much ado, here is a piece of problematic code: Please note that the only difference between f1 and f2 that the first records the return value of f3() into a variable. However, this changes the output: array(1) { ["foo"]=> &string(3) "bar" } array(1) { ["foo"]=> string(3) "bar" } Is this a bug? Or I miss something? Thanks Karoly Negyesi Ps. There is a good reason for using such ugly reference magic, and I am happy to explain it to anyone who is interested, but it's a long story...