From: Rasmus Lerdorf Date: Thu, 11 May 2006 03:47:55 +0000 (+0000) Subject: This spelling mistake finally annoyed me enough to fix it. X-Git-Tag: php-5.2.0RC1~595 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ed7ed1189bd896e942b76fd72e58a849f965ce85;p=php This spelling mistake finally annoyed me enough to fix it. --- diff --git a/ext/date/php_date.c b/ext/date/php_date.c index 0f1f7c07c1..d5847b18e8 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -1288,7 +1288,7 @@ static void date_object_free_storage_timezone(void *object TSRMLS_DC) } /* Advanced Interface */ -static zval * date_instanciate(zend_class_entry *pce, zval *object TSRMLS_DC) +static zval * date_instantiate(zend_class_entry *pce, zval *object TSRMLS_DC) { if (!object) { ALLOC_ZVAL(object); @@ -1314,7 +1314,7 @@ PHP_FUNCTION(date_create) RETURN_FALSE; } - date_instanciate(date_ce_date, return_value TSRMLS_CC); + date_instantiate(date_ce_date, return_value TSRMLS_CC); dateobj = (php_date_obj *) zend_object_store_get_object(return_value TSRMLS_CC); dateobj->time = timelib_strtotime(time_str_len ? time_str : "now", time_str_len ? time_str_len : sizeof("now") -1, NULL, DATE_TIMEZONEDB); @@ -1498,7 +1498,7 @@ PHP_FUNCTION(date_timezone_get) } dateobj = (php_date_obj *) zend_object_store_get_object(object TSRMLS_CC); if (dateobj->time->is_localtime && dateobj->time->tz_info) { - date_instanciate(date_ce_timezone, return_value TSRMLS_CC); + date_instantiate(date_ce_timezone, return_value TSRMLS_CC); tzobj = (php_timezone_obj *) zend_object_store_get_object(return_value TSRMLS_CC); tzobj->tz = timelib_tzinfo_clone(dateobj->time->tz_info); } else { @@ -1622,7 +1622,7 @@ PHP_FUNCTION(timezone_open) } /* If we find it we instantiate the object otherwise, well, we don't and return false */ if (tzi) { - date_instanciate(date_ce_timezone, return_value TSRMLS_CC); + date_instantiate(date_ce_timezone, return_value TSRMLS_CC); tzobj = (php_timezone_obj *) zend_object_store_get_object(return_value TSRMLS_CC); tzobj->tz = tzi; } else {