diff options
author | Dmitry Stogov <dmitry@zend.com> | 2017-12-14 18:43:44 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2017-12-14 18:43:44 +0300 |
commit | 9e709e2fa02b85d0d10c864d6c996e3368e977ce (patch) | |
tree | 148bedd2674933ba40e59f15fcfa2981f7aead85 /ext/zend_test/test.c | |
parent | 71eaf0d97f173093253163db8c4720bd62387e34 (diff) | |
download | php-git-9e709e2fa02b85d0d10c864d6c996e3368e977ce.tar.gz |
Move constants into read-only data segment
Diffstat (limited to 'ext/zend_test/test.c')
-rw-r--r-- | ext/zend_test/test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/zend_test/test.c b/ext/zend_test/test.c index 773225a64d..15b6edb785 100644 --- a/ext/zend_test/test.c +++ b/ext/zend_test/test.c @@ -174,7 +174,7 @@ static ZEND_METHOD(_ZendTestTrait, testMethod) /* {{{ */ { } /* }}} */ -static zend_function_entry zend_test_trait_methods[] = { +static const zend_function_entry zend_test_trait_methods[] = { ZEND_ME(_ZendTestTrait, testMethod, NULL, ZEND_ACC_PUBLIC) ZEND_FE_END }; @@ -228,7 +228,7 @@ PHP_MINFO_FUNCTION(zend_test) php_info_print_table_end(); } -const zend_function_entry zend_test_functions[] = { +static const zend_function_entry zend_test_functions[] = { ZEND_FE(zend_test_array_return, arginfo_zend_test_array_return) ZEND_FE(zend_test_nullable_array_return, arginfo_zend_test_nullable_array_return) ZEND_FE(zend_create_unterminated_string, NULL) |