cvs: php-src /ext/calendar calendar.c
| From: | Antony Dovgal | Date: | Mon, 21 Jan 2008 09:08:12 +0000 |
| Subject: | cvs: php-src /ext/calendar calendar.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-47930@lists.php.net to get a copy of this message | ||
tony2001 Mon Jan 21 09:08:12 2008 UTC
Modified files:
/php-src/ext/calendar calendar.c
Log:
fix newly added segfault
http://cvs.php.net/viewvc.cgi/php-src/ext/calendar/calendar.c?r1=1.55&r2=1.56&diff_format=u
Index: php-src/ext/calendar/calendar.c
diff -u php-src/ext/calendar/calendar.c:1.55 php-src/ext/calendar/calendar.c:1.56
--- php-src/ext/calendar/calendar.c:1.55 Mon Jan 21 06:08:03 2008
+++ php-src/ext/calendar/calendar.c Mon Jan 21 09:08:12 2008
@@ -18,7 +18,7 @@
| Wez Furlong <wez@thebrainroom.com> |
+----------------------------------------------------------------------+
*/
-/* $Id: calendar.c,v 1.55 2008/01/21 06:08:03 pollita Exp $ */
+/* $Id: calendar.c,v 1.56 2008/01/21 09:08:12 tony2001 Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -173,6 +173,7 @@
static PHP_GINIT_FUNCTION(calendar)
{
+ memset(calendar_globals, 0, sizeof(*calendar_globals));
if (zend_set_converter_encoding(&(calendar_globals->iso_8859_8_conv),
"iso-8859-8") == FAILURE) {
php_error(E_CORE_WARNING, "Unable to instatiate iso-8859-8 converter for calendar extension,
will be unable to produce hebrew dates in unicode mode");
calendar_globals = NULL;