cvs: Zend(PHP_4_3) / zend_constants.c
| From: | Andrei Zmievski | Date: | Wed, 26 May 2004 21:02:12 +0000 |
| Subject: | cvs: Zend(PHP_4_3) / zend_constants.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-2667@lists.php.net to get a copy of this message | ||
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;