From: Derick Rethans Date: Thu, 2 Jun 2005 08:29:37 +0000 (+0000) Subject: - Fixed memory corruption in stristr(). X-Git-Tag: php-5.0.1b1~111 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=90f4590d87fe18ffaf6df7a799c116d5c316c9f9;p=php - Fixed memory corruption in stristr(). --- diff --git a/ext/standard/string.c b/ext/standard/string.c index 9b356babf8..4ad96e5725 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -1430,8 +1430,8 @@ PHP_FUNCTION(stristr) if (!Z_STRLEN_PP(needle)) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Empty delimiter."); efree(haystack_orig); - zval_ptr_dtor(haystack); - zval_ptr_dtor(needle); +// zval_ptr_dtor(haystack); +// zval_ptr_dtor(needle); RETURN_FALSE; } @@ -1457,8 +1457,8 @@ PHP_FUNCTION(stristr) RETVAL_FALSE; } - zval_ptr_dtor(haystack); - zval_ptr_dtor(needle); +// zval_ptr_dtor(haystack); +// zval_ptr_dtor(needle); efree(haystack_orig); } /* }}} */