|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-04-26 04:56 UTC] aaron dot hawley at uvm dot edu
[2004-04-26 19:30 UTC] iliaa@php.net
[2004-04-26 21:32 UTC] aaron dot hawley at uvm dot edu
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 14:00:01 2025 UTC |
Description: ------------ When the left-hand-side of an assignment expression is an array location using square-brackets, PHP should check that the array variable was previously defined, and give a notice if E_NOTICE is flagged in error_reporting. This would find mistyped variables, and help with those attempting to write more stable and secure PHP code with E_ALL. Reproduce code: --------------- <?php error_reporting(E_ALL); $not_an_array_yet[1] = 'a' . "\n"; exit("done\n"); ?> Expected result: ---------------- Notice: Undefined variable: not_an_array_yet in my_file.php on line 3 done Actual result: -------------- done