Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56556 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 67028 invoked from network); 24 Nov 2011 09:35:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Nov 2011 09:35:30 -0000 Authentication-Results: pb1.pair.com smtp.mail=lester@lsces.co.uk; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=lester@lsces.co.uk; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lsces.co.uk from 213.123.20.132 cause and error) X-PHP-List-Original-Sender: lester@lsces.co.uk X-Host-Fingerprint: 213.123.20.132 c2bthomr14.btconnect.com Received: from [213.123.20.132] ([213.123.20.132:9021] helo=mail.btconnect.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4C/32-46656-FDF0ECE4 for ; Thu, 24 Nov 2011 04:35:27 -0500 Received: from host81-138-11-136.in-addr.btopenworld.com (EHLO _10.0.0.4_) ([81.138.11.136]) by c2bthomr14.btconnect.com with ESMTP id FGT09269; Thu, 24 Nov 2011 09:32:56 +0000 (GMT) Message-ID: <4ECE0F47.1040504@lsces.co.uk> Date: Thu, 24 Nov 2011 09:32:55 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110929 Firefox/7.0.1 SeaMonkey/2.4.1 MIME-Version: 1.0 To: PHP internals References: <20111123015008.GA12933@panix.com> <20111123023108.GA172@panix.com> <4ECCB549.904@lsces.co.uk> <4ECCBC56.3050602@sugarcrm.com> <20111123141408.GA11940@panix.com> <4ECD40E2.1000601@sugarcrm.com> <4ECD48AD.1020207@sugarcrm.com> <4ECD91F4.5040303@gmail.com> <4ECDAEE5.7020205@gmail.com> <4ECE0887.3030109@lsces.co.uk> <4ECE0AC3.1050405@sugarcrm.com> In-Reply-To: <4ECE0AC3.1050405@sugarcrm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Mirapoint-IP-Reputation: reputation=Good-1, source=Queried, refid=tid=0001.0A0B0303.4ECE0F47.009B, actions=tag X-Junkmail-Premium-Raw: score=7/50, refid=2.7.2:2011.11.24.82714:17:7.586, ip=81.138.11.136, rules=__MOZILLA_MSGID, __HAS_MSGID, __SANE_MSGID, __USER_AGENT, __MIME_VERSION, __TO_MALFORMED_2, __BOUNCE_CHALLENGE_SUBJ, __BOUNCE_NDR_SUBJ_EXEMPT, __SUBJ_ALPHA_END, __CT, __CT_TEXT_PLAIN, __CTE, __ANY_URI, __URI_NO_MAILTO, __CP_URI_IN_BODY, BODYTEXTP_SIZE_3000_LESS, BODY_SIZE_1800_1899, __MIME_TEXT_ONLY, RDNS_GENERIC_POOLED, BODY_SIZE_5000_LESS, RDNS_SUSP_GENERIC, RDNS_SUSP, BODY_SIZE_2000_LESS, BODY_SIZE_7000_LESS X-Junkmail-Status: score=10/50, host=c2bthomr14.btconnect.com X-Junkmail-Signature-Raw: score=unknown, refid=str=0001.0A0B020D.4ECE0FDC.01E5:SCFSTAT14830815,ss=1,fgs=0, ip=0.0.0.0, so=2010-07-22 22:03:31, dmn=2009-09-10 00:05:08, mode=multiengine X-Junkmail-IWF: false Subject: Re: [PHP-DEV] 5.4 regression: non-existent sub-sub keys now have values From: lester@lsces.co.uk (Lester Caine) Stas Malyshev wrote: > Hi! > >> That would help a lot ... this is not a problem of "so the developer can fix his >> code" but rather so we can fix legacy code which other non-developers are >> currently using happily ... If *I* had written the code I would not have done it >> the way it is currently structured, but I'm not about to spend time >> re-engineering it ... I just want to plug the holes quickly so it continues to >> work. > > OK, notice is probably technically feasible, though I still not like the idea > too much. When you want to produce this notice? Producing it on any string would > probably break code like $a['1'] which has it's legitimate uses and I'm sure can > be seen around. Should be produce notice if the string has non-numeric chars? > That's slow down this operation a little, though probably not critically as > conversion is going to scan the string anyway. The 'index not found' error usually pops up where I'm messing up the existing 'logic' so something that flags that a 'phantom' index has been created when a 'real' ['sub-element'] was being looked for. In my own case I'm sure once I dig out the problem the answer will be obvious as well, but I simply don't have the time to spend. So currently a production 5.4 upgrade is not possible. It would be useful if some of the other people flagging this problem could provide some info on what is failing ... the original PEAR problem for example? I'm not sure that any of us know just what edge case is causing a hickup? -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk// Firebird - http://www.firebirdsql.org/index.php