diff options
Diffstat (limited to 'ext/date/php_date.c')
| -rw-r--r-- | ext/date/php_date.c | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/date/php_date.c b/ext/date/php_date.c index b8be9e6b73..0d054ceb9f 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -148,7 +148,7 @@ ZEND_END_ARG_INFO()  /* }}} */  /* {{{ Function table */ -zend_function_entry date_functions[] = { +const zend_function_entry date_functions[] = {  	PHP_FE(strtotime, arginfo_strtotime)  	PHP_FE(date, arginfo_date)  	PHP_FE(idate, arginfo_idate) @@ -198,7 +198,7 @@ zend_function_entry date_functions[] = {  	{NULL, NULL, NULL}  }; -zend_function_entry date_funcs_date[] = { +const zend_function_entry date_funcs_date[] = {  	PHP_ME(DateTime,			__construct,		NULL, ZEND_ACC_CTOR|ZEND_ACC_PUBLIC)  	PHP_ME_MAPPING(format,		date_format,		NULL, 0)  	PHP_ME_MAPPING(modify,		date_modify,		NULL, 0) @@ -211,7 +211,7 @@ zend_function_entry date_funcs_date[] = {  	{NULL, NULL, NULL}  }; -zend_function_entry date_funcs_timezone[] = { +const zend_function_entry date_funcs_timezone[] = {  	PHP_ME(DateTimeZone,				__construct,				NULL, ZEND_ACC_CTOR|ZEND_ACC_PUBLIC)  	PHP_ME_MAPPING(getName,				timezone_name_get,			NULL, 0)  	PHP_ME_MAPPING(getOffset,			timezone_offset_get,		NULL, 0) @@ -302,7 +302,7 @@ static int date_object_compare_date(zval *d1, zval *d2 TSRMLS_DC);  static zend_object_value date_object_clone_timezone(zval *this_ptr TSRMLS_DC);  /* This is need to ensure that session extension request shutdown occurs 1st, because it uses the date extension */  -static zend_module_dep date_deps[] = { +static const zend_module_dep date_deps[] = {          ZEND_MOD_OPTIONAL("session")          {NULL, NULL, NULL}  };  | 
