From: Derick Rethans Date: Wed, 16 Jul 2008 12:35:11 +0000 (+0000) Subject: - Fixed a segfault - simply a forgotten return; X-Git-Tag: php-5.3.0alpha1~324 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=99b31af3f9d7852ef9e655ce2e3e3b89b70caf40;p=php - Fixed a segfault - simply a forgotten return; --- diff --git a/ext/date/php_date.c b/ext/date/php_date.c index 5a1226a392..19cb877bb4 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -2928,6 +2928,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);