summaryrefslogtreecommitdiff
path: root/ext/tidy/tidy.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2018-05-28 16:27:12 +0300
committerDmitry Stogov <dmitry@zend.com>2018-05-28 16:27:12 +0300
commit5eb1f92f31cafc48384f9096012f421b37f6d425 (patch)
tree4ed67b92229407e7b5cbab37b96428fe80eb3f94 /ext/tidy/tidy.c
parent925f05dd1a35eafa71eb29abb69cdfc31a23a75d (diff)
downloadphp-git-5eb1f92f31cafc48384f9096012f421b37f6d425.tar.gz
Use zend_string_release_ex() instread of zend_string_release() in places, where we sure about string persistence.
Diffstat (limited to 'ext/tidy/tidy.c')
-rw-r--r--ext/tidy/tidy.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/tidy/tidy.c b/ext/tidy/tidy.c
index 61fd0f32cb..365d037eb5 100644
--- a/ext/tidy/tidy.c
+++ b/ext/tidy/tidy.c
@@ -653,7 +653,7 @@ static void php_tidy_quick_repair(INTERNAL_FUNCTION_PARAMETERS, zend_bool is_fil
}
if (is_file) {
- zend_string_release(data);
+ zend_string_release_ex(data, 0);
}
tidyBufFree(errbuf);
@@ -1316,7 +1316,7 @@ static PHP_FUNCTION(tidy_parse_file)
RETVAL_FALSE;
}
- zend_string_release(contents);
+ zend_string_release_ex(contents, 0);
}
/* }}} */
@@ -1635,7 +1635,7 @@ static TIDY_DOC_METHOD(__construct)
php_tidy_parse_string(obj, ZSTR_VAL(contents), (uint32_t)ZSTR_LEN(contents), enc);
- zend_string_release(contents);
+ zend_string_release_ex(contents, 0);
}
}
@@ -1675,7 +1675,7 @@ static TIDY_DOC_METHOD(parseFile)
RETVAL_TRUE;
}
- zend_string_release(contents);
+ zend_string_release_ex(contents, 0);
}
static TIDY_DOC_METHOD(parseString)