#35282 [Sus->Bgs]: {} String offsets raise Strict Standards error, documentation not updated

From: Date: Tue, 06 Dec 2005 15:46:07 +0000
Subject: #35282 [Sus->Bgs]: {} String offsets raise Strict Standards error, documentation not updated
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969371185@lists.php.net to get a copy of this message
ID: 35282 Updated by: vrana@php.net 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] tony2001@php.net 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

« previous php.doc (#969371185) next »