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); } /* }}} */
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php