]> granicus.if.org Git - php/commitdiff
- Enable all new date functions and classes
authorDerick Rethans <derick@php.net>
Tue, 18 Jul 2006 12:38:05 +0000 (12:38 +0000)
committerDerick Rethans <derick@php.net>
Tue, 18 Jul 2006 12:38:05 +0000 (12:38 +0000)
ext/date/php_date.c
ext/date/php_date.h

index 7fb4767aedeb00e8eb96dbb7af7a4264dea18411..d2f22ef7e38f6299cab64bef48b29af302639cf2 100644 (file)
@@ -165,7 +165,6 @@ zend_function_entry date_functions[] = {
        PHP_FE(localtime, arginfo_localtime)
        PHP_FE(getdate, arginfo_getdate)
 
-#ifdef EXPERIMENTAL_DATE_SUPPORT
        /* Advanced Interface */
        PHP_FE(date_create, NULL)
        PHP_FE(date_parse, NULL)
@@ -186,7 +185,6 @@ zend_function_entry date_functions[] = {
        PHP_FE(timezone_transistions_get, NULL)
        PHP_FE(timezone_identifiers_list, NULL)
        PHP_FE(timezone_abbreviations_list, NULL)
-#endif
 
        /* Options and Configuration */
        PHP_FE(date_default_timezone_set, arginfo_date_default_timezone_set)
@@ -199,7 +197,6 @@ zend_function_entry date_functions[] = {
        {NULL, NULL, NULL}
 };
 
-#ifdef EXPERIMENTAL_DATE_SUPPORT
 zend_function_entry date_funcs_date[] = {
        ZEND_NAMED_FE(format, ZEND_FN(date_format), NULL)
        ZEND_NAMED_FE(modify, ZEND_FN(date_modify), NULL)
@@ -222,7 +219,6 @@ zend_function_entry date_funcs_timezone[] = {
 };
 
 static void date_register_classes(TSRMLS_D);
-#endif
 static char* guess_timezone(const timelib_tzdb *tzdb TSRMLS_DC);
 /* }}} */
 
@@ -252,7 +248,6 @@ PHP_INI_BEGIN()
 PHP_INI_END()
 /* }}} */
 
-#ifdef EXPERIMENTAL_DATE_SUPPORT
 zend_class_entry *date_ce_date, *date_ce_timezone;
 
 static zend_object_handlers date_object_handlers_date;
@@ -293,7 +288,6 @@ static void date_object_free_storage_date(void *object TSRMLS_DC);
 static void date_object_free_storage_timezone(void *object TSRMLS_DC);
 static zend_object_value date_object_new_date(zend_class_entry *class_type TSRMLS_DC);
 static zend_object_value date_object_new_timezone(zend_class_entry *class_type TSRMLS_DC);
-#endif
 
 /* {{{ Module struct */
 zend_module_entry date_module_entry = {
@@ -457,9 +451,7 @@ PHP_RSHUTDOWN_FUNCTION(date)
 PHP_MINIT_FUNCTION(date)
 {
        REGISTER_INI_ENTRIES();
-#ifdef EXPERIMENTAL_DATE_SUPPORT
        date_register_classes(TSRMLS_C);
-#endif
 /*
  * RFC4287, Section 3.3: http://www.ietf.org/rfc/rfc4287.txt
  *   A Date construct is an element whose content MUST conform to the
@@ -1434,7 +1426,6 @@ PHP_FUNCTION(getdate)
 }
 /* }}} */
 
-#ifdef EXPERIMENTAL_DATE_SUPPORT
 static void date_register_classes(TSRMLS_D)
 {
        zend_class_entry ce_date, ce_timezone;
@@ -1995,7 +1986,6 @@ PHP_FUNCTION(timezone_abbreviations_list)
                entry++;
        } while (entry->name);
 }
-#endif
 
 
 /* {{{ proto bool date_default_timezone_set(string timezone_identifier)
index 13780910aa493c5e2f8dd736a22687e3778359ab..3f9fcba6bca1862d837a26ca85db2b8ef1d1f74b 100644 (file)
@@ -46,7 +46,6 @@ PHP_FUNCTION(time);
 PHP_FUNCTION(localtime);
 PHP_FUNCTION(getdate);
 
-#ifdef EXPERIMENTAL_DATE_SUPPORT
 /* Advanced Interface */
 PHP_FUNCTION(date_create);
 PHP_FUNCTION(date_parse);
@@ -67,7 +66,6 @@ PHP_FUNCTION(timezone_offset_get);
 PHP_FUNCTION(timezone_transistions_get);
 PHP_FUNCTION(timezone_identifiers_list);
 PHP_FUNCTION(timezone_abbreviations_list);
-#endif
 
 /* Options and Configuration */
 PHP_FUNCTION(date_default_timezone_set);