tony2001 Fri Mar 20 08:38:43 2009 UTC Modified files: /php-src/ext/date php_date.c Log: set return_len to 0 when returning empty string and fix segfault http://cvs.php.net/viewvc.cgi/php-src/ext/date/php_date.c?r1=1.218&r2=1.219&diff_format=u Index: php-src/ext/date/php_date.c diff -u php-src/ext/date/php_date.c:1.218 php-src/ext/date/php_date.c:1.219 --- php-src/ext/date/php_date.c:1.218 Tue Mar 10 23:39:11 2009 +++ php-src/ext/date/php_date.c Fri Mar 20 08:38:42 2009 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_date.c,v 1.218 2009/03/10 23:39:11 helly Exp $ */ +/* $Id: php_date.c,v 1.219 2009/03/20 08:38:42 tony2001 Exp $ */ #include "php.h" #include "php_streams.h" @@ -1082,6 +1082,7 @@ int rfc_colon; if (!format_len) { + *return_len = 0; if (UG(unicode)) { return (char*)eustrdup(EMPTY_STR); } else {
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php