cvs: ZendEngine2 / zend_execute_API.c
| From: | Marcus Boerger | Date: | Thu, 07 Aug 2003 07:17:34 +0000 |
| Subject: | cvs: ZendEngine2 / zend_execute_API.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-1613@lists.php.net to get a copy of this message | ||
helly Thu Aug 7 03:17:34 2003 EDT
Modified files:
/ZendEngine2 zend_execute_API.c
Log:
- Fix warnings
- Fix code
Index: ZendEngine2/zend_execute_API.c
diff -u ZendEngine2/zend_execute_API.c:1.229 ZendEngine2/zend_execute_API.c:1.230
--- ZendEngine2/zend_execute_API.c:1.229 Wed Aug 6 03:38:56 2003
+++ ZendEngine2/zend_execute_API.c Thu Aug 7 03:17:34 2003
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_execute_API.c,v 1.229 2003/08/06 07:38:56 zeev Exp $ */
+/* $Id: zend_execute_API.c,v 1.230 2003/08/07 07:17:34 helly Exp $ */
#include <stdio.h>
#include <signal.h>
@@ -37,7 +37,7 @@
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_cache empty_fcall_info_cache = { NULL, NULL, NULL, 0 };
+ZEND_API zend_fcall_info_cache empty_fcall_info_cache = { 0, NULL, NULL, NULL };
#ifdef ZEND_WIN32
#include <process.h>
@@ -526,6 +526,8 @@
break;
}
+ original_function_state_ptr = EG(function_state_ptr);
+
/* Initialize execute_data */
EX(fbc) = NULL;
EX(object) = NULL;
@@ -565,11 +567,7 @@
calling_scope = Z_OBJCE_PP(fci->object_pp);
fci->function_table = &calling_scope->function_table;
EX(object) = *fci->object_pp;
- }
- }
-
- if (fci->object_pp) {
- if (Z_TYPE_PP(fci->object_pp) == IS_STRING) {
+ } else if (Z_TYPE_PP(fci->object_pp) == IS_STRING) {
zend_class_entry **ce;
char *lc_class;
int found = FAILURE;
@@ -604,7 +602,6 @@
function_name_lc = zend_str_tolower_dup(fci->function_name->value.str.val,
fci->function_name->value.str.len);
- original_function_state_ptr = EG(function_state_ptr);
if (zend_hash_find(fci->function_table, function_name_lc,
fci->function_name->value.str.len+1, (void **) &EX(function_state).function)==FAILURE) {
/* try calling __call */
if (calling_scope && calling_scope->__call) {
@@ -622,7 +619,6 @@
}
}
efree(function_name_lc);
- EX(function_state).function;
if (fci_cache) {
fci_cache->function_handler = EX(function_state).function;
fci_cache->object_pp = fci->object_pp;