cvs: ZendEngine2 / zend_reflection_api.c
| From: | Dmitry Stogov | Date: | Wed, 08 Jun 2005 17:08:07 +0000 |
| Subject: | cvs: ZendEngine2 / zend_reflection_api.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-3767@lists.php.net to get a copy of this message | ||
dmitry Wed Jun 8 13:08:07 2005 EDT
Modified files:
/ZendEngine2 zend_reflection_api.c
Log:
Fixed ReflectionClass::setStaticPropertyValue()
http://cvs.php.net/diff.php/ZendEngine2/zend_reflection_api.c?r1=1.154&r2=1.155&ty=u
Index: ZendEngine2/zend_reflection_api.c
diff -u ZendEngine2/zend_reflection_api.c:1.154 ZendEngine2/zend_reflection_api.c:1.155
--- ZendEngine2/zend_reflection_api.c:1.154 Thu May 26 09:46:17 2005
+++ ZendEngine2/zend_reflection_api.c Wed Jun 8 13:08:06 2005
@@ -19,7 +19,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_reflection_api.c,v 1.154 2005/05/26 13:46:17 dmitry Exp $ */
+/* $Id: zend_reflection_api.c,v 1.155 2005/06/08 17:08:06 dmitry Exp $ */
#include "zend.h"
#include "zend_API.h"
#include "zend_exceptions.h"
@@ -2369,6 +2369,8 @@
char *name;
int name_len;
zval **variable_ptr, *value;
+ int refcount;
+ zend_uchar is_ref;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sz", &name, &name_len,
&value) == FAILURE) {
return;
@@ -2383,9 +2385,14 @@
"Class %s does not have a property named %s", ce->name, name);
return;
}
+ refcount = (*variable_ptr)->refcount;
+ is_ref = (*variable_ptr)->is_ref;
zval_dtor(*variable_ptr);
**variable_ptr = *value;
zval_copy_ctor(*variable_ptr);
+ (*variable_ptr)->refcount = refcount;
+ (*variable_ptr)->is_ref = is_ref;
+
}
/* }}} */