Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:38154 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40761 invoked from network); 10 Jun 2008 23:05:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jun 2008 23:05:05 -0000 Authentication-Results: pb1.pair.com header.from=markus@fischer.name; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=markus@fischer.name; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fischer.name from 213.46.255.22 cause and error) X-PHP-List-Original-Sender: markus@fischer.name X-Host-Fingerprint: 213.46.255.22 viefep18-int.chello.at Solaris 10 (beta) Received: from [213.46.255.22] ([213.46.255.22:2366] helo=viefep14-int.chello.at) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 19/E1-26183-F980F484 for ; Tue, 10 Jun 2008 19:05:04 -0400 Received: from genuine.home ([84.112.136.139]) by viefep14-int.chello.at (InterMail vM.7.08.02.02 201-2186-121-104-20070414) with ESMTP id <20080610230500.FICB191.viefep14-int.chello.at@genuine.home> for ; Wed, 11 Jun 2008 01:05:00 +0200 Received: from ncvielp07.home ([192.168.1.51]) by genuine.home with esmtpa (Exim 4.50) id 1K6Cp7-0003kC-Ru for internals@lists.php.net; Wed, 11 Jun 2008 01:00:21 +0200 Message-ID: <484F0897.4040405@fischer.name> Date: Wed, 11 Jun 2008 01:04:55 +0200 User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: PHP Developers Mailing List References: <77972256-ED0C-4FCE-8DEF-8283FE1BBFC5@roshambo.org> In-Reply-To: <77972256-ED0C-4FCE-8DEF-8283FE1BBFC5@roshambo.org> X-Enigmail-Version: 0.95.6 OpenPGP: id=C2272BD0; url=http://markus.fischer.name/my_public_key.txt Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -32 X-Spam-Level: --- X-Spam-Report: Spam detection software, running on the system "genuine.home", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi, I don't get this deprecation and thus the forced code change at all. Considering the amount of code using this style, see http://www.google.com/codesearch?as_q=\%24[a-z][a-z0-9_]*{[^}]%2B}&hl=en&as_lang=php and given that no PHP code change has been done I would rather suggest removing the chase for deprecation in this case and remove this from the documentation and let the syntax exist that way as long as PHP lives. [...] Content analysis details: (-3.3 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -3.3 ALL_TRUSTED Did not pass through any untrusted hosts 0.0 BAYES_50 BODY: Bayesian spam probability is 40 to 60% [score: 0.4921] -0.0 AWL AWL: From: address is in the auto white-list Subject: Re: [PHP-DEV] deprecation status of $str{42} versus $str[42] From: markus@fischer.name (Markus Fischer) Hi, I don't get this deprecation and thus the forced code change at all. Considering the amount of code using this style, see http://www.google.com/codesearch?as_q=\%24[a-z][a-z0-9_]*{[^}]%2B}&hl=en&as_lang=php and given that no PHP code change has been done I would rather suggest removing the chase for deprecation in this case and remove this from the documentation and let the syntax exist that way as long as PHP lives. - Markus Philip Olson wrote: > Hello geeks, > > This email is to confirm that $str{42} is deprecated in favour of > $str[42] as of PHP 6. There is some confusion so let's make something > official here. > > A little history: > - May, 2001: $str[42]: is documented as deprecated since PHP 4 > - Nov, 2005: $str[42]: kept while $str{42} is instead deprecated. > Discussed: > - http://markmail.org/message/tmvkpknlzfij5k5o > - Nov, 2005: $str{42}: 5.1 RC5 throws E_STRICT for $str{42} but removed > before release > - May, 2006: $str[42]: switches from deprecated to "preferred" in docs > - Aug, 2006: $str{42}: documentation reads "deprecated as of PHP 6" > > Currently it emits no errors when one plan was to deprecate it in PHP > 5.x and remove in PHP 6.0 but that doesn't appear the plan today. > > So unless this thread changes something, an E_DEPRECATED will be added > to HEAD (PHP 6.0.0) for curly brace string access ( $str{42} ) and the > documentation will remain as is. > > Regards, > Philip > >