From 90f4590d87fe18ffaf6df7a799c116d5c316c9f9 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Thu, 2 Jun 2005 08:29:37 +0000 Subject: [PATCH] - Fixed memory corruption in stristr(). --- ext/standard/string.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); } /* }}} */ -- 2.50.1