#25996 [Ver]: Assignment by reference suppress index error
| From: | moriyoshi@php.net | Date: | Wed, 29 Oct 2003 19:13:05 +0000 |
| Subject: | #25996 [Ver]: Assignment by reference suppress index error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-49624@lists.php.net to get a copy of this message | ||
ID: 25996
Updated by: moriyoshi@php.net
Reported By: hongnk at hotmail dot com
Status: Verified
Bug Type: Zend Engine 2 problem
-Operating System: All
+Operating System: Irrelevant
-PHP Version: 5CVS
+PHP Version: Irrelevant
New Comment:
Related to bug #26030
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