diff options
author | Dmitry Stogov <dmitry@zend.com> | 2017-06-19 18:08:50 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2017-06-19 18:08:50 +0300 |
commit | 40ecad34022b6e687cc654d47c88f8cef5d418fd (patch) | |
tree | b5f41f8a9694bfa03b3724c06ffe64781152973d /ext/filter/sanitizing_filters.c | |
parent | e511f152f43d597fda9f3ceb0b03c20cb3fe4d2d (diff) | |
download | php-git-40ecad34022b6e687cc654d47c88f8cef5d418fd.tar.gz |
Fixed wrong usage of old ZPP API.
Diffstat (limited to 'ext/filter/sanitizing_filters.c')
-rw-r--r-- | ext/filter/sanitizing_filters.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/filter/sanitizing_filters.c b/ext/filter/sanitizing_filters.c index a4bcc0f18a..299902fe58 100644 --- a/ext/filter/sanitizing_filters.c +++ b/ext/filter/sanitizing_filters.c @@ -213,7 +213,7 @@ void php_filter_string(PHP_INPUT_FILTER_PARAM_DECL) Z_STRLEN_P(value) = new_len; if (new_len == 0) { - zval_dtor(value); + zval_ptr_dtor(value); if (flags & FILTER_FLAG_EMPTY_STRING_NULL) { ZVAL_NULL(value); } else { @@ -293,7 +293,7 @@ void php_filter_unsafe_raw(PHP_INPUT_FILTER_PARAM_DECL) php_filter_encode_html(value, enc); } else if (flags & FILTER_FLAG_EMPTY_STRING_NULL && Z_STRLEN_P(value) == 0) { - zval_dtor(value); + zval_ptr_dtor(value); ZVAL_NULL(value); } } |