#35282 [NEW]: {} String offsets raise Strict Standards error, documentation not updated

From: Date: Fri, 18 Nov 2005 18:44:54 +0000
Subject: #35282 [NEW]: {} String offsets raise Strict Standards error, documentation not updated
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969370923@lists.php.net to get a copy of this message
From: brice dot joly at free dot fr Operating system: N/A PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: {} String offsets raise Strict Standards error, documentation not updated Description: ------------ New PHP Strict Standards error as of 5.1.0RC6: PHP Strict Standards: Usage of {} to access string offsets is deprecated and will be removed in PHP 6 Yet documentation claims {} should be used and [] are deprecated (see http://www.php.net/manual/en/language.types.string.php#language.types.string.substr) 1. What should be used now that both [] and {} are deprecated? 2. Please update documentation accordingly Reproduce code: --------------- $string = 'abc'; $b = $string{1}; Expected result: ---------------- N/A Actual result: -------------- N/A -- Edit bug report at http://bugs.php.net/?id=35282&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=35282&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=35282&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=35282&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=35282&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=35282&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35282&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=35282&r=needscript Try newer version: http://bugs.php.net/fix.php?id=35282&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35282&r=support Expected behavior: http://bugs.php.net/fix.php?id=35282&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35282&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35282&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=35282&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35282&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=35282&r=dst IIS Stability: http://bugs.php.net/fix.php?id=35282&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35282&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35282&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35282&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=35282&r=mysqlcfg

« previous php.doc (#969370923) next »