Skip to content

Commit a99fad3

Browse files
committed
MFB: move empty_fcall_info* to const table
1 parent 8a4e398 commit a99fad3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Zend/zend_API.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1556,8 +1556,8 @@ ZEND_API int add_property_zstrl_ex(zval *arg, char *key, uint key_len, zend_ucha
15561556
ZEND_API int call_user_function(HashTable *function_table, zval **object_pp, zval *function_name, zval *retval_ptr, zend_uint param_count, zval *params[] TSRMLS_DC);
15571557
ZEND_API int call_user_function_ex(HashTable *function_table, zval **object_pp, zval *function_name, zval **retval_ptr_ptr, zend_uint param_count, zval **params[], int no_separation, HashTable *symbol_table TSRMLS_DC);
15581558

1559-
ZEND_API extern zend_fcall_info empty_fcall_info;
1560-
ZEND_API extern zend_fcall_info_cache empty_fcall_info_cache;
1559+
ZEND_API extern const zend_fcall_info empty_fcall_info;
1560+
ZEND_API extern const zend_fcall_info_cache empty_fcall_info_cache;
15611561

15621562
/** Build zend_call_info/cache from a zval*
15631563
*

Zend/zend_execute_API.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ ZEND_API void (*zend_execute)(zend_op_array *op_array TSRMLS_DC);
4040
ZEND_API void (*zend_execute_internal)(zend_execute_data *execute_data_ptr, int return_value_used TSRMLS_DC);
4141

4242
/* true globals */
43-
ZEND_API zend_fcall_info empty_fcall_info = { 0, NULL, NULL, NULL, NULL, 0, NULL, NULL, 0 };
44-
ZEND_API zend_fcall_info_cache empty_fcall_info_cache = { 0, NULL, NULL, NULL, NULL };
43+
ZEND_API const zend_fcall_info empty_fcall_info = { 0, NULL, NULL, NULL, NULL, 0, NULL, NULL, 0 };
44+
ZEND_API const zend_fcall_info_cache empty_fcall_info_cache = { 0, NULL, NULL, NULL, NULL };
4545

4646
#ifdef ZEND_WIN32
4747
#include <process.h>

0 commit comments

Comments
 (0)