Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48106 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55255 invoked from network); 27 Apr 2010 08:51:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Apr 2010 08:51:55 -0000 Authentication-Results: pb1.pair.com smtp.mail=petercowburn@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=petercowburn@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.216 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: petercowburn@gmail.com X-Host-Fingerprint: 209.85.218.216 mail-bw0-f216.google.com Received: from [209.85.218.216] ([209.85.218.216:63244] helo=mail-bw0-f216.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 20/AA-30049-BA5A6DB4 for ; Tue, 27 Apr 2010 04:51:55 -0400 Received: by bwz8 with SMTP id 8so12728808bwz.23 for ; Tue, 27 Apr 2010 01:51:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=jvCQRUbsBybXUhchL/3hCNCNwiv+qF7gsZHQ3wfYQOc=; b=nDq1EuriXGcD7qeHTqEwWEdncY+cv1RSO4WuysEuJHrjbQbjlX67QvCH2IfiuyVtRa xX3f2hBqJec4Xc6BQquI+StOhOJloM85qFffPnj/bC6D2SfecqC8WcUx0SZ6JTUb8ai8 rJFl2K1u0EUH4dYkv+srlYfZIB7BqJh+Qj1SY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=LghFsK7XrrwWcoOeB5j7ongVomiGrQcp6VQ20Jr6Q22BHTVJhPd0kf2Pulb75H01uV Y+X4ak3Z9Qzr9VsODiV8w8dG17RTHITa2vnPHFh8B/FbPuKH5muwkWIadvGUHdVRoB2R SZBFofoeyFYH3Q9glmO5/DH2zQBRDo//Jtwd8= MIME-Version: 1.0 Received: by 10.204.126.88 with SMTP id b24mr3431678bks.79.1272358312572; Tue, 27 Apr 2010 01:51:52 -0700 (PDT) Received: by 10.204.53.74 with HTTP; Tue, 27 Apr 2010 01:51:52 -0700 (PDT) In-Reply-To: References: Date: Tue, 27 Apr 2010 09:51:52 +0100 Message-ID: To: Etienne Kneuss Cc: internals Mailing List Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] ArrayAccess::offsetGet not returning a ref From: petercowburn@gmail.com (Peter Cowburn) On 27 April 2010 09:17, Etienne Kneuss wrote: > Hi, > > it looks like the fact that ArrayAccess::offsetGet is not returning a > reference is a recurrent problem, I see basically 4 options: > > a) Ignore the issue, change nothing > > b) Rewrite offsetGet to return a ref, breaking BC -1,000,000 > > c) Create a new ArrayAccess interface where it does return a ref > > d) Relax prototype checks so that both are allowed. Of the options presented, I think d) would be the best of the bunch. Folks seem to expect the ability to get references so any solution that gives them that would be better IMO than keeping the interface as-is. > > Personally, I believe that a fatal on such prototypes error is not > warranted, so I'd prefer (d). > > What do you think would be the best option? Can you think of another? > > Best, > > -- > Etienne Kneuss > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >