]> granicus.if.org Git - php/commitdiff
- MF53: Fixed segfault.
authorDerick Rethans <derick@php.net>
Wed, 16 Jul 2008 12:35:45 +0000 (12:35 +0000)
committerDerick Rethans <derick@php.net>
Wed, 16 Jul 2008 12:35:45 +0000 (12:35 +0000)
ext/date/php_date.c

index e6d98e0415cf0502ca6d4cafb8f1dfb565a9e205..ed7ec9bc9d18e270cb7926100926d4798875177a 100644 (file)
@@ -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);