@@ -165,7 +165,6 @@ zend_function_entry date_functions[] = {
165
165
PHP_FE (localtime , arginfo_localtime )
166
166
PHP_FE (getdate , arginfo_getdate )
167
167
168
- #ifdef EXPERIMENTAL_DATE_SUPPORT
169
168
/* Advanced Interface */
170
169
PHP_FE (date_create , NULL )
171
170
PHP_FE (date_parse , NULL )
@@ -186,7 +185,6 @@ zend_function_entry date_functions[] = {
186
185
PHP_FE (timezone_transistions_get , NULL )
187
186
PHP_FE (timezone_identifiers_list , NULL )
188
187
PHP_FE (timezone_abbreviations_list , NULL )
189
- #endif
190
188
191
189
/* Options and Configuration */
192
190
PHP_FE (date_default_timezone_set , arginfo_date_default_timezone_set )
@@ -199,7 +197,6 @@ zend_function_entry date_functions[] = {
199
197
{NULL , NULL , NULL }
200
198
};
201
199
202
- #ifdef EXPERIMENTAL_DATE_SUPPORT
203
200
zend_function_entry date_funcs_date [] = {
204
201
ZEND_NAMED_FE (format , ZEND_FN (date_format ), NULL )
205
202
ZEND_NAMED_FE (modify , ZEND_FN (date_modify ), NULL )
@@ -222,7 +219,6 @@ zend_function_entry date_funcs_timezone[] = {
222
219
};
223
220
224
221
static void date_register_classes (TSRMLS_D );
225
- #endif
226
222
static char * guess_timezone (const timelib_tzdb * tzdb TSRMLS_DC );
227
223
/* }}} */
228
224
@@ -252,7 +248,6 @@ PHP_INI_BEGIN()
252
248
PHP_INI_END ()
253
249
/* }}} */
254
250
255
- #ifdef EXPERIMENTAL_DATE_SUPPORT
256
251
zend_class_entry * date_ce_date , * date_ce_timezone ;
257
252
258
253
static zend_object_handlers date_object_handlers_date ;
@@ -293,7 +288,6 @@ static void date_object_free_storage_date(void *object TSRMLS_DC);
293
288
static void date_object_free_storage_timezone (void * object TSRMLS_DC );
294
289
static zend_object_value date_object_new_date (zend_class_entry * class_type TSRMLS_DC );
295
290
static zend_object_value date_object_new_timezone (zend_class_entry * class_type TSRMLS_DC );
296
- #endif
297
291
298
292
/* {{{ Module struct */
299
293
zend_module_entry date_module_entry = {
@@ -457,9 +451,7 @@ PHP_RSHUTDOWN_FUNCTION(date)
457
451
PHP_MINIT_FUNCTION (date )
458
452
{
459
453
REGISTER_INI_ENTRIES ();
460
- #ifdef EXPERIMENTAL_DATE_SUPPORT
461
454
date_register_classes (TSRMLS_C );
462
- #endif
463
455
/*
464
456
* RFC4287, Section 3.3: http://www.ietf.org/rfc/rfc4287.txt
465
457
* A Date construct is an element whose content MUST conform to the
@@ -1434,7 +1426,6 @@ PHP_FUNCTION(getdate)
1434
1426
}
1435
1427
/* }}} */
1436
1428
1437
- #ifdef EXPERIMENTAL_DATE_SUPPORT
1438
1429
static void date_register_classes (TSRMLS_D )
1439
1430
{
1440
1431
zend_class_entry ce_date , ce_timezone ;
@@ -1995,7 +1986,6 @@ PHP_FUNCTION(timezone_abbreviations_list)
1995
1986
entry ++ ;
1996
1987
} while (entry -> name );
1997
1988
}
1998
- #endif
1999
1989
2000
1990
2001
1991
/* {{{ proto bool date_default_timezone_set(string timezone_identifier)
0 commit comments