summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorDerick Rethans <derick@php.net>2005-06-02 08:31:38 +0000
committerDerick Rethans <derick@php.net>2005-06-02 08:31:38 +0000
commit0d3b976c03f8ffe046c80090561fd72040a28234 (patch)
tree8d2dcc19aebe414bd7fa571db58b4a9a6c5ee35d /ext
parenta02c9cf4f15240ed274f80e385265c3d23143483 (diff)
downloadphp-git-0d3b976c03f8ffe046c80090561fd72040a28234.tar.gz
- MFH: Fixed memory corruption in stristr().
Diffstat (limited to 'ext')
-rw-r--r--ext/standard/string.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/standard/string.c b/ext/standard/string.c
index 94e1d371cc..3e8fdacd43 100644
--- a/ext/standard/string.c
+++ b/ext/standard/string.c
@@ -1317,8 +1317,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;
}
@@ -1339,8 +1339,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);
}
/* }}} */