Skip to content

Commit 9ccbb28

Browse files
author
Derick Rethans
committed
- Enable all new date functions and classes
1 parent b45268a commit 9ccbb28

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

ext/date/php_date.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ zend_function_entry date_functions[] = {
165165
PHP_FE(localtime, arginfo_localtime)
166166
PHP_FE(getdate, arginfo_getdate)
167167

168-
#ifdef EXPERIMENTAL_DATE_SUPPORT
169168
/* Advanced Interface */
170169
PHP_FE(date_create, NULL)
171170
PHP_FE(date_parse, NULL)
@@ -186,7 +185,6 @@ zend_function_entry date_functions[] = {
186185
PHP_FE(timezone_transistions_get, NULL)
187186
PHP_FE(timezone_identifiers_list, NULL)
188187
PHP_FE(timezone_abbreviations_list, NULL)
189-
#endif
190188

191189
/* Options and Configuration */
192190
PHP_FE(date_default_timezone_set, arginfo_date_default_timezone_set)
@@ -199,7 +197,6 @@ zend_function_entry date_functions[] = {
199197
{NULL, NULL, NULL}
200198
};
201199

202-
#ifdef EXPERIMENTAL_DATE_SUPPORT
203200
zend_function_entry date_funcs_date[] = {
204201
ZEND_NAMED_FE(format, ZEND_FN(date_format), NULL)
205202
ZEND_NAMED_FE(modify, ZEND_FN(date_modify), NULL)
@@ -222,7 +219,6 @@ zend_function_entry date_funcs_timezone[] = {
222219
};
223220

224221
static void date_register_classes(TSRMLS_D);
225-
#endif
226222
static char* guess_timezone(const timelib_tzdb *tzdb TSRMLS_DC);
227223
/* }}} */
228224

@@ -252,7 +248,6 @@ PHP_INI_BEGIN()
252248
PHP_INI_END()
253249
/* }}} */
254250

255-
#ifdef EXPERIMENTAL_DATE_SUPPORT
256251
zend_class_entry *date_ce_date, *date_ce_timezone;
257252

258253
static zend_object_handlers date_object_handlers_date;
@@ -293,7 +288,6 @@ static void date_object_free_storage_date(void *object TSRMLS_DC);
293288
static void date_object_free_storage_timezone(void *object TSRMLS_DC);
294289
static zend_object_value date_object_new_date(zend_class_entry *class_type TSRMLS_DC);
295290
static zend_object_value date_object_new_timezone(zend_class_entry *class_type TSRMLS_DC);
296-
#endif
297291

298292
/* {{{ Module struct */
299293
zend_module_entry date_module_entry = {
@@ -457,9 +451,7 @@ PHP_RSHUTDOWN_FUNCTION(date)
457451
PHP_MINIT_FUNCTION(date)
458452
{
459453
REGISTER_INI_ENTRIES();
460-
#ifdef EXPERIMENTAL_DATE_SUPPORT
461454
date_register_classes(TSRMLS_C);
462-
#endif
463455
/*
464456
* RFC4287, Section 3.3: http://www.ietf.org/rfc/rfc4287.txt
465457
* A Date construct is an element whose content MUST conform to the
@@ -1434,7 +1426,6 @@ PHP_FUNCTION(getdate)
14341426
}
14351427
/* }}} */
14361428

1437-
#ifdef EXPERIMENTAL_DATE_SUPPORT
14381429
static void date_register_classes(TSRMLS_D)
14391430
{
14401431
zend_class_entry ce_date, ce_timezone;
@@ -1995,7 +1986,6 @@ PHP_FUNCTION(timezone_abbreviations_list)
19951986
entry++;
19961987
} while (entry->name);
19971988
}
1998-
#endif
19991989

20001990

20011991
/* {{{ proto bool date_default_timezone_set(string timezone_identifier)

ext/date/php_date.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ PHP_FUNCTION(time);
4646
PHP_FUNCTION(localtime);
4747
PHP_FUNCTION(getdate);
4848

49-
#ifdef EXPERIMENTAL_DATE_SUPPORT
5049
/* Advanced Interface */
5150
PHP_FUNCTION(date_create);
5251
PHP_FUNCTION(date_parse);
@@ -67,7 +66,6 @@ PHP_FUNCTION(timezone_offset_get);
6766
PHP_FUNCTION(timezone_transistions_get);
6867
PHP_FUNCTION(timezone_identifiers_list);
6968
PHP_FUNCTION(timezone_abbreviations_list);
70-
#endif
7169

7270
/* Options and Configuration */
7371
PHP_FUNCTION(date_default_timezone_set);

0 commit comments

Comments
 (0)