Permalink
Browse files

mark empty_fcall_info and empty_fcall_info_cache as constant. a few l…

…ess bytes in the dirty page :P
  • Loading branch information...
1 parent 9f3cb0e commit f87d4530c299167f04a4d2cc076edb2432be3280 @nunoplopes nunoplopes committed Aug 12, 2008
Showing with 4 additions and 4 deletions.
  1. +2 −2 Zend/zend_API.h
  2. +2 −2 Zend/zend_execute_API.c
View
@@ -427,8 +427,8 @@ ZEND_API int add_property_zval_ex(zval *arg, const char *key, uint key_len, zval
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*
*
View
@@ -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 <process.h>

0 comments on commit f87d453

Please sign in to comment.