Bug#28151 Writing to Uninitialized Arrays
| From: | Sara Golemon | Date: | Mon, 26 Apr 2004 05:18:04 +0000 |
| Subject: | Bug#28151 Writing to Uninitialized Arrays | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-9560@lists.php.net to get a copy of this message | ||
Here's what I think is the fix for 28151 (I have no strong feelings on
whether or not it belongs in the engine, but I am +1 on it personally).
Zend guys?
Index: Zend/zend_execute.c
===================================================================
RCS file: /repository/ZendEngine2/zend_execute.c,v
retrieving revision 1.643
diff -u -r1.643 zend_execute.c
--- Zend/zend_execute.c 15 Apr 2004 21:32:34 -0000 1.643
+++ Zend/zend_execute.c 26 Apr 2004 05:06:59 -0000
@@ -919,6 +919,7 @@
SEPARATE_ZVAL(container_ptr);
container = *container_ptr;
}
+ zend_error(E_NOTICE, "Uninitialized array");
array_init(container);
break;
}