Doc #52254 [NEW]: string accessor deprecation
| From: | phpbug at wisl dot de | Date: | Mon, 05 Jul 2010 15:52:39 +0000 |
| Subject: | Doc #52254 [NEW]: string accessor deprecation | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-4652@lists.php.net to get a copy of this message | ||
From:
Operating system: all
PHP version: 5.3.2
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:string accessor deprecation
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 bug report at http://bugs.php.net/bug.php?id=52254&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=52254&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=52254&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=52254&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=52254&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=52254&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=52254&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=52254&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=52254&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=52254&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=52254&r=support
Expected behavior: http://bugs.php.net/fix.php?id=52254&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=52254&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=52254&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=52254&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=52254&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=52254&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=52254&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=52254&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=52254&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=52254&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=52254&r=mysqlcfg