]> granicus.if.org Git - php/commitdiff
fix #35617
authorAntony Dovgal <tony2001@php.net>
Fri, 9 Dec 2005 22:26:39 +0000 (22:26 +0000)
committerAntony Dovgal <tony2001@php.net>
Fri, 9 Dec 2005 22:26:39 +0000 (22:26 +0000)
no need to separate zvals twice

ext/standard/string.c

index 2f12e92d4f824894717b50d796e5afb9038b5306..601dbc662382e8ac795cc90b1f13b7e22805b9f8 100644 (file)
@@ -2069,8 +2069,7 @@ PHP_FUNCTION(stristr)
        if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zz|b", &haystack, &needle, &part) == FAILURE) {
                return;
        }
-       SEPARATE_ZVAL(&haystack);
-       SEPARATE_ZVAL(&needle);
+
        if (Z_TYPE_P(haystack) != IS_UNICODE && Z_TYPE_P(haystack) != IS_BINARY && Z_TYPE_P(haystack) != IS_STRING) {
                convert_to_text(haystack);
        }