X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=missing.c;h=3e7dbfabb1c2cff7a3940b4f0d55c5eb105a2bda;hb=6ef3a3f87f84b92d8bf3e695e9bfedefd39ab97d;hp=fea611c8eb5718f86ed3a05d51b0d724ccfdc8a4;hpb=061fbbe598d6e28b35c408b35beec1a6508abac9;p=m6w6%2Fext-http diff --git a/missing.c b/missing.c index fea611c..3e7dbfa 100644 --- a/missing.c +++ b/missing.c @@ -38,7 +38,6 @@ static inline zval *tmp_zval(void) static void dup_zval(zval **z) { - zval *o = *z; zval_add_ref(z); SEPARATE_ZVAL(z); } @@ -141,8 +140,7 @@ int zend_update_static_property(zend_class_entry *scope, char *name, size_t name zval_copy_ctor(*property); } } else { - **property = *value; - zval_copy_ctor(*property); + REPLACE_ZVAL_VALUE(property, value, 1); } retval = SUCCESS; }