]> granicus.if.org Git - php/commitdiff
Fixed zval copying
authorXinchen Hui <laruence@php.net>
Wed, 22 Oct 2014 09:08:35 +0000 (17:08 +0800)
committerXinchen Hui <laruence@php.net>
Wed, 22 Oct 2014 09:08:35 +0000 (17:08 +0800)
ext/tidy/tidy.c

index 63ccf52370172aa214570f7bbb3b8eac8e5e7647..8ca27d7b9a454989b6d7b9ad97479f5c68b79a14 100644 (file)
@@ -494,7 +494,9 @@ static void TIDY_CALL php_tidy_panic(ctmbstr msg)
 static int _php_tidy_set_tidy_opt(TidyDoc doc, char *optname, zval *value TSRMLS_DC)
 {
        TidyOption opt = tidyGetOptionByName(doc, optname);
-       zval conv = *value;
+       zval conv;
+
+       ZVAL_COPY_VALUE(&conv, value);
 
        if (!opt) {
                php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Unknown Tidy Configuration Option '%s'", optname);