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

From: Date: Fri, 18 Nov 2005 18:50:51 +0000
Subject: #35282 [Opn->Sus]: {} String offsets raise Strict Standards error, documentation not updated
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969370924@lists.php.net to get a copy of this message
ID: 35282 Updated by: tony2001@php.net Reported By: brice dot joly at free dot fr -Status: Open +Status: Suspended Bug Type: Documentation problem Operating System: N/A PHP Version: Irrelevant New Comment: Please don't touch the docs, the discussion about this change is not finished yet. Previous Comments: ------------------------------------------------------------------------ [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 (#969370924) next »