|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2004-11-24 19:35 UTC] php-bugs-2004 at ryandesign dot com
Description: ------------ The E_STRICT option purports to issue warnings when using deprecated features. I would like to see warnings issued when using the array notation of accessing characters in a string, since this has been deprecated since PHP 4 and can cause problems ( as seen in http://bugs.php.net/bug.php?id=29271 ) Reproduce code: --------------- $test = 'blah'; $test[2] = 'x'; // <-- would like this to issue // an error of type 2048 Expected result: ---------------- $test == 'blxh' and an error that the array notation is deprecated, use {} notation instead Actual result: -------------- $test == 'blxh' and no error of any kind PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 05 14:00:02 2025 UTC |
Stance has changed: both [] and {} are acceptable.