iliaa Fri Mar 7 02:04:40 2008 UTC Modified files: (Branch: PHP_5_3) /php-src/ext/date php_date.c Log: Fixed a memory leak inside date_get_last_errors() when there are no errors http://cvs.php.net/viewvc.cgi/php-src/ext/date/php_date.c?r1=1.43.2.45.2.51.2.21&r2=1.43.2.45.2.51.2.22&diff_format=u Index: php-src/ext/date/php_date.c diff -u php-src/ext/date/php_date.c:1.43.2.45.2.51.2.21 php-src/ext/date/php_date.c:1.43.2.45.2.51.2.22 --- php-src/ext/date/php_date.c:1.43.2.45.2.51.2.21 Wed Feb 27 09:47:35 2008 +++ php-src/ext/date/php_date.c Fri Mar 7 02:04:40 2008 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_date.c,v 1.43.2.45.2.51.2.21 2008/02/27 09:47:35 derick Exp $ */ +/* $Id: php_date.c,v 1.43.2.45.2.51.2.22 2008/03/07 02:04:40 iliaa Exp $ */ #include "php.h" #include "php_streams.h" @@ -1914,8 +1914,8 @@ */ PHP_FUNCTION(date_get_last_errors) { - array_init(return_value); if (DATEG(last_errors)) { + array_init(return_value); zval_from_error_container(return_value, DATEG(last_errors)); } else { RETURN_FALSE;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php