Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45874 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65818 invoked from network); 22 Oct 2009 17:15:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Oct 2009 17:15:00 -0000 Authentication-Results: pb1.pair.com smtp.mail=richardkmiller@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=richardkmiller@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 216.239.58.189 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: richardkmiller@gmail.com X-Host-Fingerprint: 216.239.58.189 gv-out-0910.google.com Received: from [216.239.58.189] ([216.239.58.189:33940] helo=gv-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 21/95-21514-31390EA4 for ; Thu, 22 Oct 2009 13:14:59 -0400 Received: by gv-out-0910.google.com with SMTP id r4so980253gve.37 for ; Thu, 22 Oct 2009 10:14:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=sFuHBYZD01gDqaTvIYfLj9Ci1GtD5Hnn1/5gu9cT1sw=; b=hzURKEdMkl72KZql1eWhHtKgsePAJ53XNR26/NzNz4BDmAV02fe6r0fZId92w6i/Jq xSLB/LaOwPfyQgtNxkG7m65CGTEArvHylfddyRTqcqc1uiHvgpkOZZtUrP/r1Ur4rS8t ykYlNCNnzYh2RGBxg5WZJrr1kCm771EVP0308= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=XVHSGmot79xvATIJo6SNzgTzlukMUPUwGSI8Z/HO/mBv2NgvpvlDgv061XWf/UasAs OB1CCagw5JymgtbMZB4Dc3hpqZAcas6bjPN/eHIF3Lt7nEodTFCwzqiNPSVFSkc+xlBG PLo3T+8OnEuukfQMO7Zm8IGbFXApq3UVgMJTo= Received: by 10.103.127.35 with SMTP id e35mr4319445mun.106.1256231696142; Thu, 22 Oct 2009 10:14:56 -0700 (PDT) Received: from ?192.168.1.160? (69.169.140.26.provo.static.broadweavenetworks.net [69.169.140.26]) by mx.google.com with ESMTPS id u9sm625345muf.1.2009.10.22.10.14.53 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 22 Oct 2009 10:14:54 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1076) Content-Type: text/plain; charset=us-ascii; format=flowed In-Reply-To: <4AE09112.7050008@lerdorf.com> Date: Thu, 22 Oct 2009 11:14:50 -0600 Cc: internals@lists.php.net Content-Transfer-Encoding: 7bit Message-ID: References: <84898698-728C-44ED-BF7A-E0E02C111F68@gmail.com> <4AE00CE9.9050602@daylessday.org> <2FEC738F-A4EF-4853-8CC7-D4DAF97D892C@gmail.com> <4AE07B61.7030308@lerdorf.com> <7D2CE34C-177D-47BD-B758-433FCEF6C733@gmail.com> <4AE09112.7050008@lerdorf.com> To: Rasmus Lerdorf X-Mailer: Apple Mail (2.1076) Subject: Re: [PHP-DEV] bug when using foreach with references? From: richardkmiller@gmail.com (Richard K Miller) > It would be arbitrarily breaking an explicit reference. I know I have > code lying around that relies on multiple loops cleaning up a big > complicated multi-level array. I do ugly things with references into > that array and it would completely break if PHP magically deleted my > references whether they are in the iterator or elsewhere. > > This has been this way for 6+ years and it is well documented on the > http://php.net/foreach page. (see the big red warning box) > > -Rasmus Fair enough. Thanks for examining it again with me. Best, Richard