From 5871211091845259b0385da2b468029b861a203b Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Wed, 16 Jul 2008 12:35:45 +0000 Subject: [PATCH] - MF53: Fixed segfault. --- ext/date/php_date.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/date/php_date.c b/ext/date/php_date.c index e6d98e0415..ed7ec9bc9d 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -3095,6 +3095,7 @@ PHP_FUNCTION(date_timezone_set) tzobj = (php_timezone_obj *) zend_object_store_get_object(timezone_object TSRMLS_CC); if (tzobj->type != TIMELIB_ZONETYPE_ID) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Can only do this for zones with ID for now"); + return; } timelib_set_timezone(dateobj->time, tzobj->tzi.tz); timelib_unixtime2local(dateobj->time, dateobj->time->sse); -- 2.40.0