Re[2]: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_API.c
| From: | (Marcus B�rger) | Date: | Sun, 03 Aug 2003 01:04:15 +0000 |
| Subject: | Re[2]: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_API.c | ||
| References: | 1 | Groups: | php.zend-engine.cvs |
| Request: | Send a blank email to php-zend-engine-cvs+get-1573@lists.php.net to get a copy of this message | ||
Hello Zeev,
Saturday, August 2, 2003, 9:47:28 PM, you wrote:
ZS> Can you be more specific here? What's required by reflection that didn't
ZS> work without this addition?
ZS> Zeev
ZS> At 22:03 02/08/2003, Marcus Boerger wrote:
>>helly Sat Aug 2 15:03:14 2003 EDT
>>
>> Modified files:
>> /ZendEngine2 zend_API.c
>> Log:
>> Initialize all struct members: Necessary for reflection
>>
>>Index: ZendEngine2/zend_API.c
>>diff -u ZendEngine2/zend_API.c:1.189 ZendEngine2/zend_API.c:1.190
>>--- ZendEngine2/zend_API.c:1.189 Sat Aug 2 07:43:55 2003
>>+++ ZendEngine2/zend_API.c Sat Aug 2 15:03:14 2003
>>@@ -18,7 +18,7 @@
>> +----------------------------------------------------------------------+
>> */
>>
>>-/* $Id: zend_API.c,v 1.189 2003/08/02 11:43:55 wez Exp $ */
>>+/* $Id: zend_API.c,v 1.190 2003/08/02 19:03:14 helly Exp $ */
>>
>> #include "zend.h"
>> #include "zend_execute.h"
>>@@ -1145,6 +1145,7 @@
>> char *lowercase_name;
>> int fname_len;
>>
>>+ memset(internal_function, 0, sizeof(zend_function));
>> if (type==MODULE_PERSISTENT) {
>> error_type = E_CORE_WARNING;
>> } else {
>>
>>
>>
>>--
>>Zend Engine CVS Mailing List (http://cvs.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
Sure, look into my next patch :-)
It requires the whole struct to be initialized.
--
Best regards,
Marcus mailto:helly@php.net