ID: 35282 Updated by: [EMAIL PROTECTED] Reported By: brice dot joly at free dot fr -Status: Suspended +Status: Bogus Bug Type: Documentation problem Operating System: N/A PHP Version: Irrelevant New Comment:
Final version removed this warning. Previous Comments: ------------------------------------------------------------------------ [2005-11-18 19:50:51] [EMAIL PROTECTED] Please don't touch the docs, the discussion about this change is not finished yet. ------------------------------------------------------------------------ [2005-11-18 19:44:54] brice dot joly at free dot fr 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 this bug report at http://bugs.php.net/?id=35282&edit=1