From: Marcus Boerger Date: Fri, 22 Dec 2006 00:57:51 +0000 (+0000) Subject: - Fix memory allocation/deallocation to match X-Git-Tag: RELEASE_1_0_0RC1~553 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=844b3a1b86de56856b42cef5fc63f46b730fe083;p=php - Fix memory allocation/deallocation to match --- diff --git a/ext/spl/php_spl.c b/ext/spl/php_spl.c index 5f2cc98830..3ecbf1499f 100755 --- a/ext/spl/php_spl.c +++ b/ext/spl/php_spl.c @@ -282,7 +282,7 @@ PHP_FUNCTION(spl_autoload) RETURN_FALSE; } - copy = pos1 = zend_zstrndup(ZEND_STR_TYPE, file_exts, file_exts_len); + copy = pos1 = ezstrndup(ZEND_STR_TYPE, file_exts, file_exts_len); lc_name = zend_u_str_tolower_dup(ZEND_STR_TYPE, class_name, class_name_len); while(pos1.v && (unicode ? *pos1.u : *pos1.s) && !EG(exception)) { EG(return_value_ptr_ptr) = original_return_value; @@ -310,12 +310,9 @@ PHP_FUNCTION(spl_autoload) } efree(lc_name.v); -#if MBO_0 - /* UTODO: This is actually correct but sometimesfails in tests, no idea why */ if (copy.v) { efree(copy.v); } -#endif EG(return_value_ptr_ptr) = original_return_value; EG(opline_ptr) = original_opline_ptr;