cvs: ZendEngine2(PHP_5_3) / zend_API.h zend_execute_API.c

"Nuno Lopes" <[email protected]>
Newsgroups gmane.comp.php.cvs.zend
Message-ID <cvsnlopess1218577552@cvsserver>
nlopess		Tue Aug 12 21:45:52 2008 UTC

  Modified files:              (Branch: PHP_5_3)
    /ZendEngine2	zend_API.h zend_execute_API.c 
  Log:
  mark empty_fcall_info and empty_fcall_info_cache as constant. a few less bytes in the dirty page :P
  
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_API.h?r1=1.207.2.8.2.8.2.17&r2=1.207.2.8.2.8.2.18&diff_format=u
Index: ZendEngine2/zend_API.h
diff -u ZendEngine2/zend_API.h:1.207.2.8.2.8.2.17 ZendEngine2/zend_API.h:1.207.2.8.2.8.2.18
--- ZendEngine2/zend_API.h:1.207.2.8.2.8.2.17	Tue Aug 12 17:20:24 2008
+++ ZendEngine2/zend_API.h	Tue Aug 12 21:45:52 2008
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: zend_API.h,v 1.207.2.8.2.8.2.17 2008/08/12 17:20:24 felipe Exp $ */
+/* $Id: zend_API.h,v 1.207.2.8.2.8.2.18 2008/08/12 21:45:52 nlopess Exp $ */
 
 #ifndef ZEND_API_H
 #define ZEND_API_H
@@ -427,8 +427,8 @@
 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*
  *
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_execute_API.c?r1=1.331.2.20.2.24.2.53&r2=1.331.2.20.2.24.2.54&diff_format=u
Index: ZendEngine2/zend_execute_API.c
diff -u ZendEngine2/zend_execute_API.c:1.331.2.20.2.24.2.53 ZendEngine2/zend_execute_API.c:1.331.2.20.2.24.2.54
--- ZendEngine2/zend_execute_API.c:1.331.2.20.2.24.2.53	Mon Aug 11 17:44:15 2008
+++ ZendEngine2/zend_execute_API.c	Tue Aug 12 21:45:52 2008
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: zend_execute_API.c,v 1.331.2.20.2.24.2.53 2008/08/11 17:44:15 helly Exp $ */
+/* $Id: zend_execute_API.c,v 1.331.2.20.2.24.2.54 2008/08/12 21:45:52 nlopess Exp $ */
 
 #include <stdio.h>
 #include <signal.h>
@@ -40,8 +40,8 @@
 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>



-- 
Zend Engine CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.