summaryrefslogtreecommitdiff
path: root/ext/date/php_date.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/date/php_date.c')
-rw-r--r--ext/date/php_date.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/date/php_date.c b/ext/date/php_date.c
index 9b05540d16..cac7fdb5fd 100644
--- a/ext/date/php_date.c
+++ b/ext/date/php_date.c
@@ -2168,6 +2168,7 @@ PHP_FUNCTION(timezone_open)
tzobj = zend_object_store_get_object(date_instantiate(date_ce_timezone, return_value TSRMLS_CC) TSRMLS_CC);
tzobj->type = TIMELIB_ZONETYPE_ID;
tzobj->tzi.tz = tzi;
+ tzobj->initialized = 1;
}
/* }}} */