X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=missing.c;h=3e7dbfabb1c2cff7a3940b4f0d55c5eb105a2bda;hp=fea611c8eb5718f86ed3a05d51b0d724ccfdc8a4;hb=1b093720ee0708c101a273e739ddb774f7d7f6d0;hpb=061fbbe598d6e28b35c408b35beec1a6508abac9 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; }