From: Nuno Lopes Date: Tue, 12 Aug 2008 21:52:54 +0000 (+0000) Subject: MFB: move empty_fcall_info* to const table X-Git-Tag: BEFORE_HEAD_NS_CHANGE~746 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a99fad3b160e89fdea2928fd377decc2afca6ebb;p=php MFB: move empty_fcall_info* to const table --- diff --git a/Zend/zend_API.h b/Zend/zend_API.h index e04716a218..169b6ac588 100644 --- a/Zend/zend_API.h +++ b/Zend/zend_API.h @@ -1556,8 +1556,8 @@ ZEND_API int add_property_zstrl_ex(zval *arg, char *key, uint key_len, zend_ucha 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); 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); -ZEND_API extern zend_fcall_info empty_fcall_info; -ZEND_API extern zend_fcall_info_cache empty_fcall_info_cache; +ZEND_API extern const zend_fcall_info empty_fcall_info; +ZEND_API extern const zend_fcall_info_cache empty_fcall_info_cache; /** Build zend_call_info/cache from a zval* * diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index 5a164e8544..7abf272872 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -40,8 +40,8 @@ ZEND_API void (*zend_execute)(zend_op_array *op_array TSRMLS_DC); ZEND_API void (*zend_execute_internal)(zend_execute_data *execute_data_ptr, int return_value_used TSRMLS_DC); /* true globals */ -ZEND_API zend_fcall_info empty_fcall_info = { 0, NULL, NULL, NULL, NULL, 0, NULL, NULL, 0 }; -ZEND_API zend_fcall_info_cache empty_fcall_info_cache = { 0, NULL, NULL, NULL, NULL }; +ZEND_API const zend_fcall_info empty_fcall_info = { 0, NULL, NULL, NULL, NULL, 0, NULL, NULL, 0 }; +ZEND_API const zend_fcall_info_cache empty_fcall_info_cache = { 0, NULL, NULL, NULL, NULL }; #ifdef ZEND_WIN32 #include