cvs: Zend / zend_execute.c zend_execute.h zend_execute_globals.h zend_globals.h
| From: | Sterling Hughes | Date: | Thu, 16 May 2002 04:28:18 +0000 |
| Subject: | cvs: Zend / zend_execute.c zend_execute.h zend_execute_globals.h zend_globals.h | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-127@lists.php.net to get a copy of this message | ||
sterling Thu May 16 00:28:18 2002 EDT
Added files:
/Zend zend_execute_globals.h
Modified files:
/Zend zend_execute.c zend_execute.h zend_globals.h
Log:
expose zend_execute_data
Index: Zend/zend_execute.c
diff -u Zend/zend_execute.c:1.295 Zend/zend_execute.c:1.296
--- Zend/zend_execute.c:1.295 Sat May 4 13:29:01 2002
+++ Zend/zend_execute.c Thu May 16 00:28:18 2002
@@ -990,24 +990,13 @@
EX(opline)++; \
continue;
-typedef struct _object_info {
- zval *ptr;
-} object_info;
-
-typedef struct _zend_execute_data {
- zend_op *opline;
- zend_function_state function_state;
- zend_function *fbc; /* Function Being Called */
- object_info object;
- temp_variable *Ts;
- zend_bool original_in_execution;
-} zend_execute_data;
-
#define EX(element) execute_data.element
ZEND_API void execute(zend_op_array *op_array TSRMLS_DC)
{
zend_execute_data execute_data;
+
+ EG(execute_data_ptr) = &execute_data;
/* Initialize execute_data */
EX(fbc) = NULL;
Index: Zend/zend_execute.h
diff -u Zend/zend_execute.h:1.42 Zend/zend_execute.h:1.43
--- Zend/zend_execute.h:1.42 Sun Jan 6 10:21:09 2002
+++ Zend/zend_execute.h Thu May 16 00:28:18 2002
@@ -25,28 +25,7 @@
#include "zend_hash.h"
#include "zend_variables.h"
#include "zend_operators.h"
-
-typedef union _temp_variable {
- zval tmp_var;
- struct {
- zval **ptr_ptr;
- zval *ptr;
- } var;
- struct {
- zval tmp_var; /* a dummy */
-
- union {
- struct {
- zval *str;
- int offset;
- } str_offset;
- zend_property_reference overloaded_element;
- } data;
-
- unsigned char type;
- } EA;
-} temp_variable;
-
+#include "zend_execute_globals.h"
ZEND_API extern void (*zend_execute)(zend_op_array *op_array TSRMLS_DC);
Index: Zend/zend_globals.h
diff -u Zend/zend_globals.h:1.83 Zend/zend_globals.h:1.84
--- Zend/zend_globals.h:1.83 Wed May 8 08:29:51 2002
+++ Zend/zend_globals.h Thu May 16 00:28:18 2002
@@ -31,6 +31,7 @@
#include "zend_hash.h"
#include "zend_llist.h"
#include "zend_fast_cache.h"
+#include "zend_execute_globals.h"
#ifdef ZEND_MULTIBYTE
#include "zend_multibyte.h"
@@ -151,6 +152,8 @@
zend_op **opline_ptr;
+ zend_execute_data *execute_data_ptr;
+
HashTable *active_symbol_table;
HashTable symbol_table; /* main symbol table */
Index: Zend/zend_execute_globals.h
+++ Zend/zend_execute_globals.h
/*
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2002 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
| available at through the world-wide-web at |
| http://www.zend.com/license/2_00.txt.
|
| If you did not receive a copy of the Zend license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| license@zend.com so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Authors: Andi Gutmans <andi@zend.com> |
| Zeev Suraski <zeev@zend.com> |
+----------------------------------------------------------------------+
*/
#ifndef ZEND_EXECUTE_GLOBALS_H
#define ZEND_EXECUTE_GLOBALS_H
#include "zend_compile.h"
#include "zend_hash.h"
#include "zend_variables.h"
#include "zend_operators.h"
typedef union _temp_variable {
zval tmp_var;
struct {
zval **ptr_ptr;
zval *ptr;
} var;
struct {
zval tmp_var; /* a dummy */
union {
struct {
zval *str;
int offset;
} str_offset;
zend_property_reference overloaded_element;
} data;
unsigned char type;
} EA;
} temp_variable;
typedef struct _object_info {
zval *ptr;
} object_info;
typedef struct _zend_execute_data {
zend_op *opline;
zend_function_state function_state;
zend_function *fbc; /* Function Being Called */
object_info object;
temp_variable *Ts;
zend_bool original_in_execution;
} zend_execute_data;
#endif