cvs: php4(PHP_4_3) /ext/standard string.c
| From: | Sterling Hughes | Date: | Fri, 27 Dec 2002 03:22:42 +0000 |
| Subject: | cvs: php4(PHP_4_3) /ext/standard string.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-17430@lists.php.net to get a copy of this message | ||
sterling Thu Dec 26 22:22:42 2002 EDT
Modified files: (Branch: PHP_4_3)
/php4/ext/standard string.c
Log:
mfh
Index: php4/ext/standard/string.c
diff -u php4/ext/standard/string.c:1.333.2.3 php4/ext/standard/string.c:1.333.2.4
--- php4/ext/standard/string.c:1.333.2.3 Thu Dec 12 08:45:33 2002
+++ php4/ext/standard/string.c Thu Dec 26 22:22:42 2002
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: string.c,v 1.333.2.3 2002/12/12 13:45:33 iliaa Exp $ */
+/* $Id: string.c,v 1.333.2.4 2002/12/27 03:22:42 sterling Exp $ */
/* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */
@@ -1352,6 +1352,9 @@
if (Z_TYPE_PP(needle) == IS_STRING) {
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);
RETURN_FALSE;
}
@@ -1372,6 +1375,8 @@
RETVAL_FALSE;
}
+ zval_ptr_dtor(haystack);
+ zval_ptr_dtor(needle);
efree(haystack_orig);
}
/* }}} */