ID:               25996
 Updated by:       [EMAIL PROTECTED]
 Reported By:      hongnk at hotmail dot com
-Status:           Open
+Status:           Verified
 Bug Type:         Scripting Engine problem
 Operating System: All
 PHP Version:      Irrelevant


Previous Comments:
------------------------------------------------------------------------

[2003-10-26 21:33:23] hongnk at hotmail dot com

Description:
------------
Accessing array with uninitialized index will normally trigger error:

$a=array();
$b=$a['unknown']; => undefined index error

but if I assign by reference:

$b=&$a['unknown'];

then PHP no longer throw error. (The same goes for assigning undefined
property to an object.)

This makes it difficult to debug scripts.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=25996&edit=1

Reply via email to