andrei Wed May 26 17:02:12 2004 EDT
Modified files: (Branch: PHP_4_3)
/Zend zend_constants.c
Log:
Make sure zend_get_constant() result is initialized properly.
http://cvs.php.net/diff.php/Zend/zend_constants.c?r1=1.42.2.4&r2=1.42.2.5&ty=u
Index: Zend/zend_constants.c
diff -u Zend/zend_constants.c:1.42.2.4 Zend/zend_constants.c:1.42.2.5
--- Zend/zend_constants.c:1.42.2.4 Wed May 26 16:50:51 2004
+++ Zend/zend_constants.c Wed May 26 17:02:12 2004
@@ -237,6 +237,8 @@
if (retval) {
*result = c->value;
zval_copy_ctor(result);
+ result->is_ref = 0;
+ result->refcount = 1;
}
return retval;
--
Zend Engine CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
|