Doc #52254 [Opn->Csd]: string accessor deprecation
| From: | kalle@php.net | Date: | Wed, 20 Oct 2010 00:17:54 +0000 |
| Subject: | Doc #52254 [Opn->Csd]: string accessor deprecation | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-5254@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52254&edit=1
ID: 52254
Updated by: kalle@php.net
Reported by: phpbug at wisl dot de
Summary: string accessor deprecation
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
Operating System: all
PHP Version: 5.3.2
-Assigned To:
+Assigned To: kalle
Block user comment: N
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation
better.
The deprecation note is gone now
Previous Comments:
------------------------------------------------------------------------
[2010-10-20 02:17:34] kalle@php.net
Automatic comment from SVN on behalf of kalle
Revision: http://svn.php.net/viewvc/?view=revision&revision=304518
Log: The curly-brackets-string-index-accessor-syntax does not emit any
deprecation notice, although the
original notice have been on and off for PHP 5.x, it does not in the
current version, thrus we should
not label it as deprecated.
Related to bug #52254
------------------------------------------------------------------------
[2010-09-21 18:13:25] markskilbeck@php.net
Automatic comment from SVN on behalf of markskilbeck
Revision: http://svn.php.net/viewvc/?view=revision&revision=303645
Log: Little clarification - [] *does* work for arrays and some objects
;) #52254
------------------------------------------------------------------------
[2010-07-05 17:52:38] phpbug at wisl dot de
Description:
------------
http://www.php.net/manual/en/migration53.deprecated.php
says:
"The use of {} to access string offsets is deprecated. Use [] instead."
But in the source code this deprecation does not exists neither in the
PHP_5_3 branch nor in the trunk.
History of that code:
http://svn.php.net/viewvc/php/php-src/branches/PHP_5_3/Zend/zend_compile.c?r1=200552&r2=200603
-> added deprecation
http://svn.php.net/viewvc/php/php-src/branches/PHP_5_3/Zend/zend_compile.c?r1=200603&r2=200604
-> changed message level to strict
http://svn.php.net/viewvc/php/php-src/branches/PHP_5_3/Zend/zend_compile.c?r1=200604&r2=201057
-> deactivated with commit comment: "Removed {} E_STRICT pending furher
discussion, may be introduced later on.")
http://svn.php.net/viewvc/php/php-src/branches/PHP_5_3/Zend/zend_compile.c?r1=253597&r2=253598
-> back to deprecated
http://svn.php.net/viewvc/php/php-src/branches/PHP_5_3/Zend/zend_compile.c?r1=281774&r2=286406
-> code was removed on year ago ("Cosmetic changes")
http://php.net/manual/en/language.types.string.php
also contains the
deprecation notice.
And the note "Accessing variables of other types using [] or {} silently
returns NULL.". I believe this note is wrong (or at least misleading),
because accessing variables of the type 'array' will return normal
values.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52254&edit=1