Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48105 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 46185 invoked from network); 27 Apr 2010 08:17:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Apr 2010 08:17:45 -0000 Authentication-Results: pb1.pair.com smtp.mail=ekneuss@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ekneuss@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: ekneuss@gmail.com X-Host-Fingerprint: 209.85.218.216 mail-bw0-f216.google.com Received: from [209.85.218.216] ([209.85.218.216:47565] helo=mail-bw0-f216.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 34/98-30049-9AD96DB4 for ; Tue, 27 Apr 2010 04:17:45 -0400 Received: by bwz8 with SMTP id 8so12696136bwz.23 for ; Tue, 27 Apr 2010 01:17:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=yW7OsAjVnkLt9pm2MtPYoUAfDMGBsfxa8vU/Hr9WUoU=; b=IMxYkO3y29Fo/jn70AQamKWiubZ9iQOl1b+YsUQf5CEu/AES4r3QDsMj2XQB6Hf1P6 bGaznHA+y/7DCue+WahebXstkYPYzqNLuXiuGWxzSyu0smelCPw1LtGtOWsOD1uIPihJ Ma2FSzdx4kozS08vL2Ut4zwKxux4SUrKuBWpk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=iqTAkrR5FYAEq3IugEG0o19aSRCVIYzllbC1KNsiqLmxMthPrUZ51H3m7MTAstpwNl voIDKTrQ9jRjmNB65dX+oy6dnpZaE++mHSrljueMiGebCDX2xjiF7iOkMwLFr4G1RRvi CXvBID1sSDKGYeHRgbg9sYIdCCfBzNHsdqkQ4= MIME-Version: 1.0 Received: by 10.204.24.134 with SMTP id v6mr3372310bkb.204.1272356262455; Tue, 27 Apr 2010 01:17:42 -0700 (PDT) Sender: ekneuss@gmail.com Received: by 10.204.56.72 with HTTP; Tue, 27 Apr 2010 01:17:42 -0700 (PDT) Date: Tue, 27 Apr 2010 10:17:42 +0200 X-Google-Sender-Auth: 78d31d87ef48cddd Message-ID: To: internals Mailing List Content-Type: text/plain; charset=ISO-8859-1 Subject: ArrayAccess::offsetGet not returning a ref From: colder@php.net (Etienne Kneuss) 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 c) Create a new ArrayAccess interface where it does return a ref d) Relax prototype checks so that both are allowed. 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