Skip to content

Commit 9e709e2

Browse files
committed
Move constants into read-only data segment
1 parent 71eaf0d commit 9e709e2

File tree

104 files changed

+162
-162
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+162
-162
lines changed

Zend/zend_exceptions.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ ZEND_METHOD(exception, __toString)
743743
/* }}} */
744744

745745
/** {{{ Throwable method definition */
746-
const zend_function_entry zend_funcs_throwable[] = {
746+
static const zend_function_entry zend_funcs_throwable[] = {
747747
ZEND_ABSTRACT_ME(throwable, getMessage, NULL)
748748
ZEND_ABSTRACT_ME(throwable, getCode, NULL)
749749
ZEND_ABSTRACT_ME(throwable, getFile, NULL)

Zend/zend_interfaces.c

+6-6
Original file line numberDiff line numberDiff line change
@@ -479,12 +479,12 @@ static int zend_implement_countable(zend_class_entry *interface, zend_class_entr
479479
/* }}}*/
480480

481481
/* {{{ function tables */
482-
const zend_function_entry zend_funcs_aggregate[] = {
482+
static const zend_function_entry zend_funcs_aggregate[] = {
483483
ZEND_ABSTRACT_ME(iterator, getIterator, NULL)
484484
ZEND_FE_END
485485
};
486486

487-
const zend_function_entry zend_funcs_iterator[] = {
487+
static const zend_function_entry zend_funcs_iterator[] = {
488488
ZEND_ABSTRACT_ME(iterator, current, NULL)
489489
ZEND_ABSTRACT_ME(iterator, next, NULL)
490490
ZEND_ABSTRACT_ME(iterator, key, NULL)
@@ -493,7 +493,7 @@ const zend_function_entry zend_funcs_iterator[] = {
493493
ZEND_FE_END
494494
};
495495

496-
const zend_function_entry *zend_funcs_traversable = NULL;
496+
static const zend_function_entry *zend_funcs_traversable = NULL;
497497

498498
ZEND_BEGIN_ARG_INFO_EX(arginfo_arrayaccess_offset, 0, 0, 1)
499499
ZEND_ARG_INFO(0, offset)
@@ -508,7 +508,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_arrayaccess_offset_value, 0, 0, 2)
508508
ZEND_ARG_INFO(0, value)
509509
ZEND_END_ARG_INFO()
510510

511-
const zend_function_entry zend_funcs_arrayaccess[] = {
511+
static const zend_function_entry zend_funcs_arrayaccess[] = {
512512
ZEND_ABSTRACT_ME(arrayaccess, offsetExists, arginfo_arrayaccess_offset)
513513
ZEND_ABSTRACT_ME(arrayaccess, offsetGet, arginfo_arrayaccess_offset_get)
514514
ZEND_ABSTRACT_ME(arrayaccess, offsetSet, arginfo_arrayaccess_offset_value)
@@ -520,7 +520,7 @@ ZEND_BEGIN_ARG_INFO(arginfo_serializable_serialize, 0)
520520
ZEND_ARG_INFO(0, serialized)
521521
ZEND_END_ARG_INFO()
522522

523-
const zend_function_entry zend_funcs_serializable[] = {
523+
static const zend_function_entry zend_funcs_serializable[] = {
524524
ZEND_ABSTRACT_ME(serializable, serialize, NULL)
525525
ZEND_FENTRY(unserialize, NULL, arginfo_serializable_serialize, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT|ZEND_ACC_CTOR)
526526
ZEND_FE_END
@@ -529,7 +529,7 @@ const zend_function_entry zend_funcs_serializable[] = {
529529
ZEND_BEGIN_ARG_INFO(arginfo_countable_count, 0)
530530
ZEND_END_ARG_INFO()
531531

532-
const zend_function_entry zend_funcs_countable[] = {
532+
static const zend_function_entry zend_funcs_countable[] = {
533533
ZEND_ABSTRACT_ME(Countable, count, arginfo_countable_count)
534534
ZEND_FE_END
535535
};

Zend/zend_vm_execute.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ static const uint32_t *zend_spec_handlers;
319319
static const void **zend_opcode_handlers;
320320
static int zend_handlers_count;
321321
#if (ZEND_VM_KIND == ZEND_VM_KIND_HYBRID)
322-
static const void **zend_opcode_handler_funcs;
322+
static const void * const * zend_opcode_handler_funcs;
323323
static zend_op hybrid_halt_op;
324324
#endif
325325
static const void *zend_vm_get_opcode_handler(zend_uchar opcode, const zend_op* op);
@@ -54485,7 +54485,7 @@ ZEND_API void execute_ex(zend_execute_data *ex)
5448554485

5448654486
#if (ZEND_VM_KIND == ZEND_VM_KIND_HYBRID)
5448754487
if (UNEXPECTED(execute_data == NULL)) {
54488-
static const void* labels[] = {
54488+
static const void * const labels[] = {
5448954489
(void*)&&ZEND_NOP_SPEC_LABEL,
5449054490
(void*)&&ZEND_ADD_SPEC_CONST_CONST_LABEL,
5449154491
(void*)&&ZEND_ADD_SPEC_CONST_TMPVAR_LABEL,
@@ -63509,7 +63509,7 @@ ZEND_API void zend_execute(zend_op_array *op_array, zval *return_value)
6350963509

6351063510
void zend_init_opcodes_handlers(void)
6351163511
{
63512-
static const void *labels[] = {
63512+
static const void * const labels[] = {
6351363513
ZEND_NOP_SPEC_HANDLER,
6351463514
ZEND_ADD_SPEC_CONST_CONST_HANDLER,
6351563515
ZEND_ADD_SPEC_CONST_TMPVAR_HANDLER,

Zend/zend_vm_gen.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -1630,7 +1630,7 @@ function gen_executor($f, $skl, $spec, $kind, $executor_name, $initializer_name)
16301630
out($f,"static int zend_handlers_count;\n");
16311631
if ($kind == ZEND_VM_KIND_HYBRID) {
16321632
out($f,"#if (ZEND_VM_KIND == ZEND_VM_KIND_HYBRID)\n");
1633-
out($f,"static const void **zend_opcode_handler_funcs;\n");
1633+
out($f,"static const void * const * zend_opcode_handler_funcs;\n");
16341634
out($f,"static zend_op hybrid_halt_op;\n");
16351635
out($f,"#endif\n");
16361636
}
@@ -1857,7 +1857,7 @@ function gen_executor($f, $skl, $spec, $kind, $executor_name, $initializer_name)
18571857
}
18581858
$prolog = $m[1];
18591859
out($f,$prolog."if (UNEXPECTED(execute_data == NULL)) {\n");
1860-
out($f,$prolog."\tstatic const void* labels[] = {\n");
1860+
out($f,$prolog."\tstatic const void * const labels[] = {\n");
18611861
gen_labels($f, $spec, ZEND_VM_KIND_GOTO, $prolog."\t\t", $specs);
18621862
out($f,$prolog."\t};\n");
18631863
out($f,$prolog."\tzend_opcode_handlers = (const void **) labels;\n");
@@ -1972,7 +1972,7 @@ function gen_executor($f, $skl, $spec, $kind, $executor_name, $initializer_name)
19721972
out($f,$prolog."zend_spec_handlers = specs;\n");
19731973
out($f,$prolog.$executor_name."_ex(NULL);\n");
19741974
} else {
1975-
out($f,$prolog."static const void *labels[] = {\n");
1975+
out($f,$prolog."static const void * const labels[] = {\n");
19761976
gen_labels($f, $spec, ZEND_VM_KIND_CALL, $prolog."\t", $specs, $switch_labels);
19771977
out($f,$prolog."};\n");
19781978
out($f,$prolog."static const uint32_t specs[] = {\n");

ext/bcmath/bcmath.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ ZEND_END_ARG_INFO()
9696

9797
/* }}} */
9898

99-
const zend_function_entry bcmath_functions[] = {
99+
static const zend_function_entry bcmath_functions[] = {
100100
PHP_FE(bcadd, arginfo_bcadd)
101101
PHP_FE(bcsub, arginfo_bcsub)
102102
PHP_FE(bcmul, arginfo_bcmul)

ext/calendar/calendar.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ ZEND_END_ARG_INFO()
131131

132132
/* }}} */
133133

134-
const zend_function_entry calendar_functions[] = {
134+
static const zend_function_entry calendar_functions[] = {
135135
PHP_FE(jdtogregorian, arginfo_jdtogregorian)
136136
PHP_FE(gregoriantojd, arginfo_gregoriantojd)
137137
PHP_FE(jdtojulian, arginfo_jdtojulian)

ext/com_dotnet/com_extension.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_com_load_typelib, 0, 0, 1)
196196
ZEND_END_ARG_INFO()
197197
/* }}} */
198198

199-
const zend_function_entry com_dotnet_functions[] = {
199+
static const zend_function_entry com_dotnet_functions[] = {
200200
PHP_FE(variant_set, arginfo_variant_set)
201201
PHP_FE(variant_add, arginfo_variant_add)
202202
PHP_FE(variant_cat, arginfo_variant_cat)

ext/curl/interface.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ ZEND_END_ARG_INFO()
454454

455455
/* {{{ curl_functions[]
456456
*/
457-
const zend_function_entry curl_functions[] = {
457+
static const zend_function_entry curl_functions[] = {
458458
PHP_FE(curl_init, arginfo_curl_init)
459459
PHP_FE(curl_copy_handle, arginfo_curl_copy_handle)
460460
PHP_FE(curl_version, arginfo_curl_version)

ext/date/php_date.c

+6-6
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ ZEND_END_ARG_INFO()
399399
/* }}} */
400400

401401
/* {{{ Function table */
402-
const zend_function_entry date_functions[] = {
402+
static const zend_function_entry date_functions[] = {
403403
PHP_FE(strtotime, arginfo_strtotime)
404404
PHP_FE(date, arginfo_date)
405405
PHP_FE(idate, arginfo_idate)
@@ -474,7 +474,7 @@ static const zend_function_entry date_funcs_interface[] = {
474474
PHP_FE_END
475475
};
476476

477-
const zend_function_entry date_funcs_date[] = {
477+
static const zend_function_entry date_funcs_date[] = {
478478
PHP_ME(DateTime, __construct, arginfo_date_create, ZEND_ACC_CTOR|ZEND_ACC_PUBLIC)
479479
PHP_ME(DateTime, __wakeup, NULL, ZEND_ACC_PUBLIC)
480480
PHP_ME(DateTime, __set_state, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
@@ -497,7 +497,7 @@ const zend_function_entry date_funcs_date[] = {
497497
PHP_FE_END
498498
};
499499

500-
const zend_function_entry date_funcs_immutable[] = {
500+
static const zend_function_entry date_funcs_immutable[] = {
501501
PHP_ME(DateTimeImmutable, __construct, arginfo_date_create, ZEND_ACC_CTOR|ZEND_ACC_PUBLIC)
502502
PHP_ME(DateTime, __wakeup, NULL, ZEND_ACC_PUBLIC)
503503
PHP_ME(DateTimeImmutable, __set_state, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
@@ -520,7 +520,7 @@ const zend_function_entry date_funcs_immutable[] = {
520520
PHP_FE_END
521521
};
522522

523-
const zend_function_entry date_funcs_timezone[] = {
523+
static const zend_function_entry date_funcs_timezone[] = {
524524
PHP_ME(DateTimeZone, __construct, arginfo_timezone_open, ZEND_ACC_CTOR|ZEND_ACC_PUBLIC)
525525
PHP_ME(DateTimeZone, __wakeup, NULL, ZEND_ACC_PUBLIC)
526526
PHP_ME(DateTimeZone, __set_state, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
@@ -533,7 +533,7 @@ const zend_function_entry date_funcs_timezone[] = {
533533
PHP_FE_END
534534
};
535535

536-
const zend_function_entry date_funcs_interval[] = {
536+
static const zend_function_entry date_funcs_interval[] = {
537537
PHP_ME(DateInterval, __construct, arginfo_date_interval_construct, ZEND_ACC_CTOR|ZEND_ACC_PUBLIC)
538538
PHP_ME(DateInterval, __wakeup, NULL, ZEND_ACC_PUBLIC)
539539
PHP_ME(DateInterval, __set_state, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
@@ -542,7 +542,7 @@ const zend_function_entry date_funcs_interval[] = {
542542
PHP_FE_END
543543
};
544544

545-
const zend_function_entry date_funcs_period[] = {
545+
static const zend_function_entry date_funcs_period[] = {
546546
PHP_ME(DatePeriod, __construct, arginfo_date_period_construct, ZEND_ACC_CTOR|ZEND_ACC_PUBLIC)
547547
PHP_ME(DatePeriod, __wakeup, NULL, ZEND_ACC_PUBLIC)
548548
PHP_ME(DatePeriod, __set_state, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)

ext/dba/dba.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ ZEND_END_ARG_INFO()
131131

132132
/* {{{ dba_functions[]
133133
*/
134-
const zend_function_entry dba_functions[] = {
134+
static const zend_function_entry dba_functions[] = {
135135
PHP_FE(dba_open, arginfo_dba_open)
136136
PHP_FE(dba_popen, arginfo_dba_popen)
137137
PHP_FE(dba_close, arginfo_dba_close)

ext/enchant/enchant.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ ZEND_END_ARG_INFO()
122122
*
123123
* Every user visible function must have an entry in enchant_functions[].
124124
*/
125-
zend_function_entry enchant_functions[] = {
125+
static const zend_function_entry enchant_functions[] = {
126126
PHP_FE(enchant_broker_init, arginfo_enchant_broker_init)
127127
PHP_FE(enchant_broker_free, arginfo_enchant_broker_free)
128128
PHP_FE(enchant_broker_get_error, arginfo_enchant_broker_free)

ext/exif/exif.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ ZEND_END_ARG_INFO()
9797

9898
/* {{{ exif_functions[]
9999
*/
100-
const zend_function_entry exif_functions[] = {
100+
static const zend_function_entry exif_functions[] = {
101101
PHP_FE(exif_read_data, arginfo_exif_read_data)
102102
PHP_DEP_FALIAS(read_exif_data, exif_read_data, arginfo_exif_read_data)
103103
PHP_FE(exif_tagname, arginfo_exif_tagname)

ext/fileinfo/fileinfo.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ ZEND_END_ARG_INFO()
162162

163163
/* {{{ finfo_class_functions
164164
*/
165-
zend_function_entry finfo_class_functions[] = {
165+
static const zend_function_entry finfo_class_functions[] = {
166166
ZEND_ME_MAPPING(finfo, finfo_open, arginfo_finfo_open, ZEND_ACC_PUBLIC)
167167
ZEND_ME_MAPPING(set_flags, finfo_set_flags,arginfo_finfo_method_set_flags, ZEND_ACC_PUBLIC)
168168
ZEND_ME_MAPPING(file, finfo_file, arginfo_finfo_method_file, ZEND_ACC_PUBLIC)
@@ -196,7 +196,7 @@ void finfo_resource_destructor(zend_resource *rsrc) /* {{{ */
196196

197197
/* {{{ fileinfo_functions[]
198198
*/
199-
zend_function_entry fileinfo_functions[] = {
199+
static const zend_function_entry fileinfo_functions[] = {
200200
PHP_FE(finfo_open, arginfo_finfo_open)
201201
PHP_FE(finfo_close, arginfo_finfo_close)
202202
PHP_FE(finfo_set_flags, arginfo_finfo_set_flags)

ext/ftp/php_ftp.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ ZEND_END_ARG_INFO()
249249

250250
/* }}} */
251251

252-
const zend_function_entry php_ftp_functions[] = {
252+
static const zend_function_entry php_ftp_functions[] = {
253253
PHP_FE(ftp_connect, arginfo_ftp_connect)
254254
#ifdef HAVE_FTP_SSL
255255
PHP_FE(ftp_ssl_connect, arginfo_ftp_ssl_connect)

ext/gd/gd.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@ ZEND_END_ARG_INFO()
863863

864864
/* {{{ gd_functions[]
865865
*/
866-
const zend_function_entry gd_functions[] = {
866+
static const zend_function_entry gd_functions[] = {
867867
PHP_FE(gd_info, arginfo_gd_info)
868868
PHP_FE(imagearc, arginfo_imagearc)
869869
PHP_FE(imageellipse, arginfo_imageellipse)

ext/gettext/gettext.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ ZEND_END_ARG_INFO()
9292

9393
/* {{{ php_gettext_functions[]
9494
*/
95-
const zend_function_entry php_gettext_functions[] = {
95+
static const zend_function_entry php_gettext_functions[] = {
9696
PHP_NAMED_FE(textdomain, zif_textdomain, arginfo_textdomain)
9797
PHP_NAMED_FE(gettext, zif_gettext, arginfo_gettext)
9898
/* Alias for gettext() */

ext/gmp/gmp.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ static ZEND_GINIT_FUNCTION(gmp);
139139

140140
/* {{{ gmp_functions[]
141141
*/
142-
const zend_function_entry gmp_functions[] = {
142+
static const zend_function_entry gmp_functions[] = {
143143
ZEND_FE(gmp_init, arginfo_gmp_init)
144144
ZEND_FE(gmp_import, arginfo_gmp_import)
145145
ZEND_FE(gmp_export, arginfo_gmp_export)

ext/hash/hash.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ static PHP_METHOD(HashContext, __construct) {
887887
}
888888
/* }}} */
889889

890-
static zend_function_entry php_hashcontext_methods[] = {
890+
static const zend_function_entry php_hashcontext_methods[] = {
891891
PHP_ME(HashContext, __construct, NULL, ZEND_ACC_PRIVATE | ZEND_ACC_CTOR)
892892
PHP_FE_END
893893
};
@@ -1430,7 +1430,7 @@ ZEND_END_ARG_INFO()
14301430

14311431
/* {{{ hash_functions[]
14321432
*/
1433-
const zend_function_entry hash_functions[] = {
1433+
static const zend_function_entry hash_functions[] = {
14341434
PHP_FE(hash, arginfo_hash)
14351435
PHP_FE(hash_file, arginfo_hash_file)
14361436

ext/iconv/iconv.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ ZEND_END_ARG_INFO()
125125

126126
/* {{{ iconv_functions[]
127127
*/
128-
const zend_function_entry iconv_functions[] = {
128+
static const zend_function_entry iconv_functions[] = {
129129
PHP_RAW_NAMED_FE(iconv,php_if_iconv, arginfo_iconv)
130130
PHP_FE(iconv_get_encoding, arginfo_iconv_get_encoding)
131131
PHP_FE(iconv_set_encoding, arginfo_iconv_set_encoding)

ext/imap/php_imap.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ ZEND_END_ARG_INFO()
468468

469469
/* {{{ imap_functions[]
470470
*/
471-
const zend_function_entry imap_functions[] = {
471+
static const zend_function_entry imap_functions[] = {
472472
PHP_FE(imap_open, arginfo_imap_open)
473473
PHP_FE(imap_reopen, arginfo_imap_reopen)
474474
PHP_FE(imap_close, arginfo_imap_close)

ext/interbase/interbase.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ ZEND_END_ARG_INFO()
318318
/* }}} */
319319

320320
/* {{{ extension definition structures */
321-
const zend_function_entry ibase_functions[] = {
321+
static const zend_function_entry ibase_functions[] = {
322322
PHP_FE(ibase_connect, arginfo_ibase_connect)
323323
PHP_FE(ibase_pconnect, arginfo_ibase_pconnect)
324324
PHP_FE(ibase_close, arginfo_ibase_close)

ext/intl/collator/collator_class.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ ZEND_END_ARG_INFO()
9696
* Every 'Collator' class method has an entry in this table
9797
*/
9898

99-
zend_function_entry Collator_class_functions[] = {
99+
static const zend_function_entry Collator_class_functions[] = {
100100
PHP_ME( Collator, __construct, collator_1_arg, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR )
101101
ZEND_FENTRY( create, ZEND_FN( collator_create ), collator_1_arg, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC )
102102
PHP_NAMED_FE( compare, ZEND_FN( collator_compare ), collator_2_args )

ext/intl/common/common_enum.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ static PHP_METHOD(IntlIterator, valid)
296296
ZEND_BEGIN_ARG_INFO_EX(ainfo_se_void, 0, 0, 0)
297297
ZEND_END_ARG_INFO()
298298

299-
static zend_function_entry IntlIterator_class_functions[] = {
299+
static const zend_function_entry IntlIterator_class_functions[] = {
300300
PHP_ME(IntlIterator, current, ainfo_se_void, ZEND_ACC_PUBLIC)
301301
PHP_ME(IntlIterator, key, ainfo_se_void, ZEND_ACC_PUBLIC)
302302
PHP_ME(IntlIterator, next, ainfo_se_void, ZEND_ACC_PUBLIC)

ext/intl/converter/converter.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,7 @@ static PHP_METHOD(UConverter, getStandards) {
963963
}
964964
/* }}} */
965965

966-
static zend_function_entry php_converter_methods[] = {
966+
static const zend_function_entry php_converter_methods[] = {
967967
PHP_ME(UConverter, __construct, php_converter_arginfo, ZEND_ACC_PUBLIC | ZEND_ACC_CTOR)
968968

969969
/* Encoding selection */

ext/intl/dateformat/dateformat_class.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ ZEND_END_ARG_INFO()
157157
/* {{{ IntlDateFormatter_class_functions
158158
* Every 'IntlDateFormatter' class method has an entry in this table
159159
*/
160-
static zend_function_entry IntlDateFormatter_class_functions[] = {
160+
static const zend_function_entry IntlDateFormatter_class_functions[] = {
161161
PHP_ME( IntlDateFormatter, __construct, arginfo_intldateformatter___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR )
162162
ZEND_FENTRY( create, ZEND_FN( datefmt_create ), arginfo_intldateformatter___construct, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC )
163163
PHP_NAMED_FE( getDateType, ZEND_FN( datefmt_get_datetype ), arginfo_intldateformatter_getdatetype )

ext/intl/formatter/formatter_class.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ ZEND_END_ARG_INFO()
150150
/* {{{ NumberFormatter_class_functions
151151
* Every 'NumberFormatter' class method has an entry in this table
152152
*/
153-
static zend_function_entry NumberFormatter_class_functions[] = {
153+
static const zend_function_entry NumberFormatter_class_functions[] = {
154154
PHP_ME( NumberFormatter, __construct, arginfo_numberformatter___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR )
155155
ZEND_FENTRY( create, ZEND_FN( numfmt_create ), arginfo_numberformatter___construct, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC )
156156
PHP_NAMED_FE( format, ZEND_FN( numfmt_format ), arginfo_numberformatter_format )

ext/intl/locale/locale_class.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ ZEND_END_ARG_INFO()
7474
* Every 'Locale' class method has an entry in this table
7575
*/
7676

77-
zend_function_entry Locale_class_functions[] = {
77+
static const zend_function_entry Locale_class_functions[] = {
7878
ZEND_FENTRY( getDefault, zif_locale_get_default , locale_0_args , ZEND_ACC_PUBLIC|ZEND_ACC_STATIC )
7979
ZEND_FENTRY( setDefault, zif_locale_set_default , locale_arg_locale , ZEND_ACC_PUBLIC|ZEND_ACC_STATIC )
8080
ZEND_FENTRY( getPrimaryLanguage, ZEND_FN( locale_get_primary_language ), locale_arg_locale , ZEND_ACC_PUBLIC|ZEND_ACC_STATIC )

ext/intl/msgformat/msgformat_class.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ ZEND_END_ARG_INFO()
124124
/* {{{ MessageFormatter_class_functions
125125
* Every 'MessageFormatter' class method has an entry in this table
126126
*/
127-
static zend_function_entry MessageFormatter_class_functions[] = {
127+
static const zend_function_entry MessageFormatter_class_functions[] = {
128128
PHP_ME( MessageFormatter, __construct, arginfo_messageformatter___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR )
129129
ZEND_FENTRY( create, ZEND_FN( msgfmt_create ), arginfo_messageformatter___construct, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC )
130130
PHP_NAMED_FE( format, ZEND_FN( msgfmt_format ), arginfo_messageformatter_format )

0 commit comments

Comments
 (0)