Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 717 lines (551 sloc) 25.53 kb
573b4602 »
1999-04-07 Zend Library
1 /*
2 +----------------------------------------------------------------------+
3 | Zend Engine |
4 +----------------------------------------------------------------------+
916815b7 »
2005-08-03 Bump up the year
5 | Copyright (c) 1998-2005 Zend Technologies Ltd. (http://www.zend.com) |
573b4602 »
1999-04-07 Zend Library
6 +----------------------------------------------------------------------+
d863d52a »
2001-12-11 Update headers.
7 | This source file is subject to version 2.00 of the Zend license, |
b5b11177 »
1999-07-16 License update
8 | that is bundled with this package in the file LICENSE, and is |
f68c7ff2 »
2003-06-10 updating license information in the headers.
9 | available through the world-wide-web at the following url: |
d863d52a »
2001-12-11 Update headers.
10 | http://www.zend.com/license/2_00.txt. |
b5b11177 »
1999-07-16 License update
11 | If you did not receive a copy of the Zend license and are unable to |
12 | obtain it through the world-wide-web, please send a note to |
13 | license@zend.com so we can mail you a copy immediately. |
573b4602 »
1999-04-07 Zend Library
14 +----------------------------------------------------------------------+
15 | Authors: Andi Gutmans <andi@zend.com> |
16 | Zeev Suraski <zeev@zend.com> |
17 +----------------------------------------------------------------------+
18 */
19
333406bd »
2003-02-01 - Added some missing CVS $Id$ tags, headers and footers.
20 /* $Id$ */
b5b11177 »
1999-07-16 License update
21
a6172174 »
2000-07-03 Replace macros which begin with an underscore through an appropiately
22 #ifndef ZEND_COMPILE_H
23 #define ZEND_COMPILE_H
573b4602 »
1999-04-07 Zend Library
24
25 #include "zend.h"
fa76f0c9 »
1999-04-14 Compile fix
26
009025e0 »
1999-09-06 * header file cleanup
27 #ifdef HAVE_STDARG_H
28 # include <stdarg.h>
fa76f0c9 »
1999-04-14 Compile fix
29 #endif
30
573b4602 »
1999-04-07 Zend Library
31 #include "zend_llist.h"
32
33 #define DEBUG_ZEND 0
fcaf734f »
1999-05-02 - Don't support interactive mode when thread safe.
34
573b4602 »
1999-04-07 Zend Library
35 #define FREE_PNODE(znode) zval_dtor(&znode->u.constant);
36
1ccf9406 »
2000-11-11 - Move SET_UNUSED() to header
37 #define SET_UNUSED(op) (op).op_type = IS_UNUSED
573b4602 »
1999-04-07 Zend Library
38
85b4df53 »
2001-07-15 Improved interactive mode - it is now available in all builds, withou…
39 #define INC_BPC(op_array) if (CG(interactive)) { ((op_array)->backpatch_count++); }
40 #define DEC_BPC(op_array) if (CG(interactive)) { ((op_array)->backpatch_count--); }
b4f3b9d3 »
2001-07-28 Redesigned thread safety mechanism - nua nua
41 #define HANDLE_INTERACTIVE() if (CG(interactive)) { execute_new_code(TSRMLS_C); }
573b4602 »
1999-04-07 Zend Library
42
58a0ee09 »
2005-06-07 Fixed bug #26456 (Wrong results from Reflection-API getDocComment() w…
43 #define RESET_DOC_COMMENT() \
44 { \
45 if (CG(doc_comment)) { \
46 efree(CG(doc_comment)); \
47 CG(doc_comment) = NULL; \
48 } \
49 CG(doc_comment_len) = 0; \
1885d008 »
2003-04-02 Simplify.
50 }
bdd3b604 »
2003-04-02 Implement a different way to catch documentation comments.
51
573b4602 »
1999-04-07 Zend Library
52 typedef struct _zend_op_array zend_op_array;
80109314 »
2002-10-24 - Improve performance of part of the jmps. More to follow.
53 typedef struct _zend_op zend_op;
573b4602 »
1999-04-07 Zend Library
54
1250c43a »
1999-05-22 * Add struct name to all typedef's so that they can be debugged with …
55 typedef struct _znode {
573b4602 »
1999-04-07 Zend Library
56 int op_type;
57 union {
58 zval constant;
59
e92f6f15 »
2000-03-13 - define zend_uint and zend_uchar and use them in a few places
60 zend_uint var;
232b9045 »
2000-04-10 Clean up last/size definitions
61 zend_uint opline_num; /* Needs to be signed */
573b4602 »
1999-04-07 Zend Library
62 zend_op_array *op_array;
80109314 »
2002-10-24 - Improve performance of part of the jmps. More to follow.
63 zend_op *jmp_addr;
573b4602 »
1999-04-07 Zend Library
64 struct {
e92f6f15 »
2000-03-13 - define zend_uint and zend_uchar and use them in a few places
65 zend_uint var; /* dummy */
66 zend_uint type;
573b4602 »
1999-04-07 Zend Library
67 } EA;
68 } u;
69 } znode;
70
536d4d8a »
2002-10-19 - Improve opcode dispatching
71 typedef struct _zend_execute_data zend_execute_data;
72
edb7c7d4 »
2004-08-19 - Stop using garbage. Please let me know if you find any bugs resulting
73 #define ZEND_OPCODE_HANDLER_ARGS zend_execute_data *execute_data TSRMLS_DC
74 #define ZEND_OPCODE_HANDLER_ARGS_PASSTHRU execute_data TSRMLS_CC
536d4d8a »
2002-10-19 - Improve opcode dispatching
75
76 typedef int (*opcode_handler_t) (ZEND_OPCODE_HANDLER_ARGS);
77
f82ed136 »
2004-09-23 - Commit new VM architecture. This one allows people (aka Derick) to
78 extern ZEND_API opcode_handler_t *zend_opcode_handlers;
573b4602 »
1999-04-07 Zend Library
79
80109314 »
2002-10-24 - Improve performance of part of the jmps. More to follow.
80 struct _zend_op {
6f9bfe5c »
2002-11-05 - Shift around zend_op members
81 opcode_handler_t handler;
573b4602 »
1999-04-07 Zend Library
82 znode result;
83 znode op1;
84 znode op2;
39a7f4c3 »
1999-04-12 This patch is a go. Not fully optimized yet, but working properly.
85 ulong extended_value;
573b4602 »
1999-04-07 Zend Library
86 uint lineno;
6f9bfe5c »
2002-11-05 - Shift around zend_op members
87 zend_uchar opcode;
80109314 »
2002-10-24 - Improve performance of part of the jmps. More to follow.
88 };
573b4602 »
1999-04-07 Zend Library
89
90
1250c43a »
1999-05-22 * Add struct name to all typedef's so that they can be debugged with …
91 typedef struct _zend_brk_cont_element {
573b4602 »
1999-04-07 Zend Library
92 int cont;
93 int brk;
94 int parent;
95 } zend_brk_cont_element;
96
97
9e60cb55 »
2004-02-03 Rewrote exception support. Fixes a few limitations and bugs in the old
98 typedef struct _zend_try_catch_element {
99 zend_uint try_op;
100 zend_uint catch_op; /* ketchup! */
101 } zend_try_catch_element;
102
103
50ee116f »
2004-03-09 Clearify the different method/class flags (as discussed with Andi).
104 /* method flags (types) */
03381119 »
2003-03-06 Require abstract classes to be explicitly declared 'abstract', in ord…
105 #define ZEND_ACC_STATIC 0x01
106 #define ZEND_ACC_ABSTRACT 0x02
107 #define ZEND_ACC_FINAL 0x04
50ee116f »
2004-03-09 Clearify the different method/class flags (as discussed with Andi).
108 #define ZEND_ACC_IMPLEMENTED_ABSTRACT 0x08
6020ffd0 »
2004-01-23 Simplify detection of methods that must be called dynamic (with object)
109
50ee116f »
2004-03-09 Clearify the different method/class flags (as discussed with Andi).
110 /* class flags (types) */
111 /* ZEND_ACC_IMPLICIT_ABSTRACT_CLASS is used for abstract classes (since it is set by any abstract method even interfaces MAY have it set, too). */
112 /* ZEND_ACC_EXPLICIT_ABSTRACT_CLASS denotes that a class was explicitly defined as abstract by using the keyword. */
113 #define ZEND_ACC_IMPLICIT_ABSTRACT_CLASS 0x10
114 #define ZEND_ACC_EXPLICIT_ABSTRACT_CLASS 0x20
115 #define ZEND_ACC_FINAL_CLASS 0x40
116 #define ZEND_ACC_INTERFACE 0x80
e8214a33 »
2002-11-23 - Commit Marcus' cleanup of abstract and static inheritance and improve
117
50ee116f »
2004-03-09 Clearify the different method/class flags (as discussed with Andi).
118 /* method flags (visibility) */
32b100e6 »
2002-12-09 - Allow variables to have both 'static' modifier and an access level.
119 /* The order of those must be kept - public < protected < private */
03381119 »
2003-03-06 Require abstract classes to be explicitly declared 'abstract', in ord…
120 #define ZEND_ACC_PUBLIC 0x100
121 #define ZEND_ACC_PROTECTED 0x200
122 #define ZEND_ACC_PRIVATE 0x400
dc5c790a »
2002-12-08 Treat the absence of an access type just as if 'public' was supplied
123 #define ZEND_ACC_PPP_MASK (ZEND_ACC_PUBLIC | ZEND_ACC_PROTECTED | ZEND_ACC_PRIVATE)
e062dffe »
2002-12-06 - Implement public/protected/private methods.
124
03381119 »
2003-03-06 Require abstract classes to be explicitly declared 'abstract', in ord…
125 #define ZEND_ACC_CHANGED 0x800
126 #define ZEND_ACC_IMPLICIT_PUBLIC 0x1000
77208ec4 »
2003-01-02 Fix incorrect linkage of access-levels, when using private methods
127
50ee116f »
2004-03-09 Clearify the different method/class flags (as discussed with Andi).
128 /* method flags (special method detection) */
fbda310a »
2003-08-23 - Flag ctor/dtor methods
129 #define ZEND_ACC_CTOR 0x2000
7c2e02d3 »
2004-01-23 Disallow static declaration of clone
130 #define ZEND_ACC_DTOR 0x4000
131 #define ZEND_ACC_CLONE 0x8000
1c2512dd »
2003-08-24 - Add fn_flag ZEND_ACC_ALIAS
132
50ee116f »
2004-03-09 Clearify the different method/class flags (as discussed with Andi).
133 /* method flag (bc only), any method that has this flag can be used statically and non statically. */
134 #define ZEND_ACC_ALLOW_STATIC 0x10000
135
2cb52151 »
2005-06-09 MF50: fix #29689 and more private property problems
136 /* shadow of parent's private method/property */
137 #define ZEND_ACC_SHADOW 0x20000
138
e062dffe »
2002-12-06 - Implement public/protected/private methods.
139 char *zend_visibility_string(zend_uint fn_flags);
e8214a33 »
2002-11-23 - Commit Marcus' cleanup of abstract and static inheritance and improve
140
471947b1 »
2003-02-04 Reimplement PPP properties
141
142 typedef struct _zend_property_info {
143 zend_uint flags;
144 char *name;
145 int name_length;
146 ulong h;
67a226d9 »
2005-04-19 - Add ReflectionProperty::getDocComment()
147 char *doc_comment;
148 int doc_comment_len;
471947b1 »
2003-02-04 Reimplement PPP properties
149 } zend_property_info;
150
151
f8bbafd6 »
2003-08-03 ntroduce infrastructure for supplying information about arguments,
152 typedef struct _zend_arg_info {
153 char *name;
154 zend_uint name_len;
155 char *class_name;
156 zend_uint class_name_len;
1a723413 »
2005-05-26 Added array type hinting. (This patch requires full re-make)
157 zend_bool array_type_hint;
f8bbafd6 »
2003-08-03 ntroduce infrastructure for supplying information about arguments,
158 zend_bool allow_null;
159 zend_bool pass_by_reference;
e7e0f7d4 »
2004-02-12 - Check return-by-reference bit when implementing interface prototypes
160 zend_bool return_reference;
7086634a »
2004-02-25 - Improve ARG_INFO() macros to support supplying required_num_args
161 int required_num_args;
f8bbafd6 »
2003-08-03 ntroduce infrastructure for supplying information about arguments,
162 } zend_arg_info;
163
db507dd1 »
2004-10-04 - Commit the variable fetch optimization.
164 typedef struct _zend_compiled_variable {
165 char *name;
166 int name_len;
167 ulong hash_value;
168 } zend_compiled_variable;
169
573b4602 »
1999-04-07 Zend Library
170 struct _zend_op_array {
5097be30 »
2003-03-29 Initial support for enforcing prototype of abstract/interface method …
171 /* Common elements */
172 zend_uchar type;
173 char *function_name;
174 zend_class_entry *scope;
175 zend_uint fn_flags;
176 union _zend_function *prototype;
f8bbafd6 »
2003-08-03 ntroduce infrastructure for supplying information about arguments,
177 zend_uint num_args;
36a75184 »
2004-02-25 - Abstract methods cannot have defaults for arguments
178 zend_uint required_num_args;
f8bbafd6 »
2003-08-03 ntroduce infrastructure for supplying information about arguments,
179 zend_arg_info *arg_info;
180 zend_bool pass_rest_by_reference;
e7e0f7d4 »
2004-02-12 - Check return-by-reference bit when implementing interface prototypes
181 unsigned char return_reference;
5097be30 »
2003-03-29 Initial support for enforcing prototype of abstract/interface method …
182 /* END of common elements */
573b4602 »
1999-04-07 Zend Library
183
e92f6f15 »
2000-03-13 - define zend_uint and zend_uchar and use them in a few places
184 zend_uint *refcount;
573b4602 »
1999-04-07 Zend Library
185
186 zend_op *opcodes;
232b9045 »
2000-04-10 Clean up last/size definitions
187 zend_uint last, size;
573b4602 »
1999-04-07 Zend Library
188
db507dd1 »
2004-10-04 - Commit the variable fetch optimization.
189 zend_compiled_variable *vars;
190 int last_var, size_var;
191
e92f6f15 »
2000-03-13 - define zend_uint and zend_uchar and use them in a few places
192 zend_uint T;
573b4602 »
1999-04-07 Zend Library
193
194 zend_brk_cont_element *brk_cont_array;
e92f6f15 »
2000-03-13 - define zend_uint and zend_uchar and use them in a few places
195 zend_uint last_brk_cont;
196 zend_uint current_brk_cont;
573b4602 »
1999-04-07 Zend Library
197
9e60cb55 »
2004-02-03 Rewrote exception support. Fixes a few limitations and bugs in the old
198 zend_try_catch_element *try_catch_array;
199 int last_try_catch;
200
573b4602 »
1999-04-07 Zend Library
201 /* static variables support */
202 HashTable *static_variables;
203
85b4df53 »
2001-07-15 Improved interactive mode - it is now available in all builds, withou…
204 zend_op *start_op;
573b4602 »
1999-04-07 Zend Library
205 int backpatch_count;
85b4df53 »
2001-07-15 Improved interactive mode - it is now available in all builds, withou…
206
42d15298 »
2000-04-29 Fix possible bug with extension dtors being called without the ctors …
207 zend_bool done_pass_two;
0ce019f7 »
2002-03-15 - Fix issues with $this when using it by itself without indirection s…
208 zend_bool uses_this;
573b4602 »
1999-04-07 Zend Library
209
c06692e9 »
2000-08-09 The patch we promised - redesigned the compilation/execution API:
210 char *filename;
5657b836 »
2003-03-31 Multi-purpose patch:
211 zend_uint line_start;
212 zend_uint line_end;
213 char *doc_comment;
214 zend_uint doc_comment_len;
c06692e9 »
2000-08-09 The patch we promised - redesigned the compilation/execution API:
215
b5f5e9a6 »
1999-08-15 - Optimize the execute stack a bit.
216 void *reserved[ZEND_MAX_RESERVED_RESOURCES];
573b4602 »
1999-04-07 Zend Library
217 };
218
219
e7e0f7d4 »
2004-02-12 - Check return-by-reference bit when implementing interface prototypes
220 #define ZEND_RETURN_VALUE 0
221 #define ZEND_RETURN_REFERENCE 1
222
1250c43a »
1999-05-22 * Add struct name to all typedef's so that they can be debugged with …
223 typedef struct _zend_internal_function {
5097be30 »
2003-03-29 Initial support for enforcing prototype of abstract/interface method …
224 /* Common elements */
225 zend_uchar type;
226 char *function_name;
227 zend_class_entry *scope;
228 zend_uint fn_flags;
229 union _zend_function *prototype;
f8bbafd6 »
2003-08-03 ntroduce infrastructure for supplying information about arguments,
230 zend_uint num_args;
36a75184 »
2004-02-25 - Abstract methods cannot have defaults for arguments
231 zend_uint required_num_args;
f8bbafd6 »
2003-08-03 ntroduce infrastructure for supplying information about arguments,
232 zend_arg_info *arg_info;
233 zend_bool pass_rest_by_reference;
e7e0f7d4 »
2004-02-12 - Check return-by-reference bit when implementing interface prototypes
234 unsigned char return_reference;
5097be30 »
2003-03-29 Initial support for enforcing prototype of abstract/interface method …
235 /* END of common elements */
573b4602 »
1999-04-07 Zend Library
236
237 void (*handler)(INTERNAL_FUNCTION_PARAMETERS);
238 } zend_internal_function;
239
e062dffe »
2002-12-06 - Implement public/protected/private methods.
240 #define ZEND_FN_SCOPE_NAME(function) ((function) && (function)->common.scope ? (function)->common.scope->name : "")
e8214a33 »
2002-11-23 - Commit Marcus' cleanup of abstract and static inheritance and improve
241
1250c43a »
1999-05-22 * Add struct name to all typedef's so that they can be debugged with …
242 typedef union _zend_function {
e92f6f15 »
2000-03-13 - define zend_uint and zend_uchar and use them in a few places
243 zend_uchar type; /* MUST be the first element of this struct! */
d1eea3de »
2002-03-01 - Fix bug in nested try/catch's
244
573b4602 »
1999-04-07 Zend Library
245 struct {
e92f6f15 »
2000-03-13 - define zend_uint and zend_uchar and use them in a few places
246 zend_uchar type; /* never used */
7f35cfda »
1999-10-25 *** empty log message ***
247 char *function_name;
d1eea3de »
2002-03-01 - Fix bug in nested try/catch's
248 zend_class_entry *scope;
01e853c2 »
2002-11-23 - My personal cleanups
249 zend_uint fn_flags;
5097be30 »
2003-03-29 Initial support for enforcing prototype of abstract/interface method …
250 union _zend_function *prototype;
f8bbafd6 »
2003-08-03 ntroduce infrastructure for supplying information about arguments,
251 zend_uint num_args;
36a75184 »
2004-02-25 - Abstract methods cannot have defaults for arguments
252 zend_uint required_num_args;
f8bbafd6 »
2003-08-03 ntroduce infrastructure for supplying information about arguments,
253 zend_arg_info *arg_info;
254 zend_bool pass_rest_by_reference;
e7e0f7d4 »
2004-02-12 - Check return-by-reference bit when implementing interface prototypes
255 unsigned char return_reference;
573b4602 »
1999-04-07 Zend Library
256 } common;
257
258 zend_op_array op_array;
259 zend_internal_function internal_function;
260 } zend_function;
261
262
9cb2cf13 »
1999-05-20 Optimize allocations into uninitialized_zval assignments
263 typedef struct _zend_function_state {
573b4602 »
1999-04-07 Zend Library
264 HashTable *function_symbol_table;
265 zend_function *function;
b5f5e9a6 »
1999-08-15 - Optimize the execute stack a bit.
266 void *reserved[ZEND_MAX_RESERVED_RESOURCES];
573b4602 »
1999-04-07 Zend Library
267 } zend_function_state;
268
269
1250c43a »
1999-05-22 * Add struct name to all typedef's so that they can be debugged with …
270 typedef struct _zend_switch_entry {
573b4602 »
1999-04-07 Zend Library
271 znode cond;
272 int default_case;
273 int control_var;
274 } zend_switch_entry;
275
276
1250c43a »
1999-05-22 * Add struct name to all typedef's so that they can be debugged with …
277 typedef struct _list_llist_element {
573b4602 »
1999-04-07 Zend Library
278 znode var;
279 zend_llist dimensions;
280 znode value;
281 } list_llist_element;
282
7e5ec2d7 »
2002-05-02 Initial support for built-in backtracing.
283 union _temp_variable;
284
13274801 »
2002-10-19 - Fix compile warning.
285 struct _zend_execute_data {
7e5ec2d7 »
2002-05-02 Initial support for built-in backtracing.
286 struct _zend_op *opline;
287 zend_function_state function_state;
288 zend_function *fbc; /* Function Being Called */
41e3f4f0 »
2002-07-26 - Fix problem with debug_backtrace() reported by Stig. We weren't rep…
289 zend_op_array *op_array;
7e5ec2d7 »
2002-05-02 Initial support for built-in backtracing.
290 zval *object;
291 union _temp_variable *Ts;
db507dd1 »
2004-10-04 - Commit the variable fetch optimization.
292 zval ***CVs;
7e5ec2d7 »
2002-05-02 Initial support for built-in backtracing.
293 zend_bool original_in_execution;
294 zend_class_entry *calling_scope;
db507dd1 »
2004-10-04 - Commit the variable fetch optimization.
295 HashTable *symbol_table;
7e5ec2d7 »
2002-05-02 Initial support for built-in backtracing.
296 struct _zend_execute_data *prev_execute_data;
13274801 »
2002-10-19 - Fix compile warning.
297 };
573b4602 »
1999-04-07 Zend Library
298
b66c89c4 »
2002-05-07 - More debug backtrace work. It still doesn't work very well...
299 #define EX(element) execute_data.element
300
573b4602 »
1999-04-07 Zend Library
301
302 #define IS_CONST (1<<0)
303 #define IS_TMP_VAR (1<<1)
304 #define IS_VAR (1<<2)
305 #define IS_UNUSED (1<<3) /* Unused variable */
db507dd1 »
2004-10-04 - Commit the variable fetch optimization.
306 #define IS_CV (1<<4) /* Compiled variable */
573b4602 »
1999-04-07 Zend Library
307
308 #define EXT_TYPE_UNUSED (1<<0)
309
df74f1df »
2000-06-13 Add optional support for C0x inline semantics.
310 #include "zend_globals.h"
311
ad115d20 »
2000-01-29 Fix require()
312 BEGIN_EXTERN_C()
313
b4f3b9d3 »
2001-07-28 Redesigned thread safety mechanism - nua nua
314 void init_compiler(TSRMLS_D);
315 void shutdown_compiler(TSRMLS_D);
316 void zend_init_compiler_data_structures(TSRMLS_D);
573b4602 »
1999-04-07 Zend Library
317
b4f3b9d3 »
2001-07-28 Redesigned thread safety mechanism - nua nua
318 extern ZEND_API zend_op_array *(*zend_compile_file)(zend_file_handle *file_handle, int type TSRMLS_DC);
573b4602 »
1999-04-07 Zend Library
319
1fd542fd »
2002-02-10 Export lex_scan(). Both the PHPDoc and tokenizer extension need this.…
320 ZEND_API int lex_scan(zval *zendlval TSRMLS_DC);
b4f3b9d3 »
2001-07-28 Redesigned thread safety mechanism - nua nua
321 void startup_scanner(TSRMLS_D);
322 void shutdown_scanner(TSRMLS_D);
573b4602 »
1999-04-07 Zend Library
323
4187439c »
2001-07-30 More TSRMLS_FETCH work
324 ZEND_API char *zend_set_compiled_filename(char *new_compiled_filename TSRMLS_DC);
325 ZEND_API void zend_restore_compiled_filename(char *original_compiled_filename TSRMLS_DC);
b4f3b9d3 »
2001-07-28 Redesigned thread safety mechanism - nua nua
326 ZEND_API char *zend_get_compiled_filename(TSRMLS_D);
327 ZEND_API int zend_get_compiled_lineno(TSRMLS_D);
d33500ee »
2005-06-04 Thought I committed it ages ago... Anyway, without further delays, th…
328 ZEND_API int zend_get_scanned_file_offset(TSRMLS_D);
573b4602 »
1999-04-07 Zend Library
329
8838c0f8 »
2005-01-22 - Two new API calls for Derick (retreive CV name and value) by Dmitry
330 ZEND_API char* zend_get_compiled_variable_name(zend_op_array *op_array, zend_uint var, int* name_len);
331
1aa2c5c0 »
1999-04-23 Ok, call me crazy, because I probably am.
332 #ifdef ZTS
b4f3b9d3 »
2001-07-28 Redesigned thread safety mechanism - nua nua
333 const char *zend_get_zendtext(TSRMLS_D);
334 int zend_get_zendleng(TSRMLS_D);
1aa2c5c0 »
1999-04-23 Ok, call me crazy, because I probably am.
335 #endif
336
573b4602 »
1999-04-07 Zend Library
337
338 /* parser-driven code generators */
51e797f1 »
2002-04-23 some type cleanup work
339 void zend_do_binary_op(zend_uchar op, znode *result, znode *op1, znode *op2 TSRMLS_DC);
340 void zend_do_unary_op(zend_uchar op, znode *result, znode *op1 TSRMLS_DC);
341 void zend_do_binary_assign_op(zend_uchar op, znode *result, znode *op1, znode *op2 TSRMLS_DC);
b4f3b9d3 »
2001-07-28 Redesigned thread safety mechanism - nua nua
342 void zend_do_assign(znode *result, znode *variable, znode *value TSRMLS_DC);
343 void zend_do_assign_ref(znode *result, znode *lvar, znode *rvar TSRMLS_DC);
344 void fetch_simple_variable(znode *result, znode *varname, int bp TSRMLS_DC);
51e797f1 »
2002-04-23 some type cleanup work
345 void fetch_simple_variable_ex(znode *result, znode *varname, int bp, zend_uchar op TSRMLS_DC);
b4f3b9d3 »
2001-07-28 Redesigned thread safety mechanism - nua nua
346 void zend_do_indirect_references(znode *result, znode *num_references, znode *variable TSRMLS_DC);
830c2e0d »
2002-11-10 fix statics - make it behave like $this (fetch type "static")
347 void zend_do_fetch_static_variable(znode *varname, znode *static_assignment, int fetch_type TSRMLS_DC);
348 void zend_do_fetch_global_variable(znode *varname, znode *static_assignment, int fetch_type TSRMLS_DC);
b4f3b9d3 »
2001-07-28 Redesigned thread safety mechanism - nua nua
349
350 void fetch_array_begin(znode *result, znode *varname, znode *first_dim TSRMLS_DC);
351 void fetch_array_dim(znode *result, znode *parent, znode *dim TSRMLS_DC);
352 void fetch_string_offset(znode *result, znode *parent, znode *offset TSRMLS_DC);
db507dd1 »
2004-10-04 - Commit the variable fetch optimization.
353 void zend_do_fetch_static_member(znode *result, znode *class_znode TSRMLS_DC);
b4f3b9d3 »
2001-07-28 Redesigned thread safety mechanism - nua nua
354 void zend_do_print(znode *result, znode *arg TSRMLS_DC);
355 void zend_do_echo(znode *arg TSRMLS_DC);
88029643 »
1999-05-30 * fix some casts
356 typedef int (*unary_op_type)(zval *, zval *);
357 ZEND_API unary_op_type get_unary_op(int opcode);
573b4602 »
1999-04-07 Zend Library
358 ZEND_API void *get_binary_op(int opcode);
359
b4f3b9d3 »
2001-07-28 Redesigned thread safety mechanism - nua nua
360 void zend_do_while_cond(znode *expr, znode *close_bracket_token TSRMLS_DC);
361 void zend_do_while_end(znode *while_token, znode *close_bracket_token TSRMLS_DC);
362 void zend_do_do_while_begin(TSRMLS_D);
363 void zend_do_do_while_end(znode *do_token, znode *expr_open_bracket, znode *expr TSRMLS_DC);
573b4602 »
1999-04-07 Zend Library
364
365
b4f3b9d3 »
2001-07-28 Redesigned thread safety mechanism - nua nua
366 void zend_do_if_cond(znode *cond, znode *closing_bracket_token TSRMLS_DC);
367 void zend_do_if_after_statement(znode *closing_bracket_token, unsigned char initialize TSRMLS_DC);
368 void zend_do_if_end(TSRMLS_D);
573b4602 »
1999-04-07 Zend Library
369
b4f3b9d3 »
2001-07-28 Redesigned thread safety mechanism - nua nua
370 void zend_do_for_cond(znode *expr, znode *second_semicolon_token TSRMLS_DC);
371 void zend_do_for_before_statement(znode *cond_start, znode *second_semicolon_token TSRMLS_DC);
372 void zend_do_for_end(znode *second_semicolon_token TSRMLS_DC);
573b4602 »
1999-04-07 Zend Library
373
51e797f1 »
2002-04-23 some type cleanup work
374 void zend_do_pre_incdec(znode *result, znode *op1, zend_uchar op TSRMLS_DC);
375 void zend_do_post_incdec(znode *result, znode *op1, zend_uchar op TSRMLS_DC);
573b4602 »
1999-04-07 Zend Library
376
b4f3b9d3 »
2001-07-28 Redesigned thread safety mechanism - nua nua
377 void zend_do_begin_variable_parse(TSRMLS_D);
378 void zend_do_end_variable_parse(int type, int arg_offset TSRMLS_DC);
573b4602 »
1999-04-07 Zend Library
379
ac7ed464 »
2001-12-16 - Start adding parsed variable checks.
380 void zend_check_writable_variable(znode *variable);
381
b4f3b9d3 »
2001-07-28 Redesigned thread safety mechanism - nua nua
382 void zend_do_free(znode *op1 TSRMLS_DC);
573b4602 »
1999-04-07 Zend Library
383
b4f3b9d3 »
2001-07-28 Redesigned thread safety mechanism - nua nua
384 void zend_do_init_string(znode *result TSRMLS_DC);
385 void zend_do_add_char(znode *result, znode *op1, znode *op2 TSRMLS_DC);
386 void zend_do_add_string(znode *result, znode *op1, znode *op2 TSRMLS_DC);
387 void zend_do_add_variable(znode *result, znode *op1, znode *op2 TSRMLS_DC);
573b4602 »
1999-04-07 Zend Library
388
e062dffe »
2002-12-06 - Implement public/protected/private methods.
389 int zend_do_verify_access_types(znode *current_access_type, znode *new_modifier);
26dd8492 »
2003-03-05 Add support for interfaces
390 void zend_do_begin_function_declaration(znode *function_token, znode *function_name, int is_method, int return_reference, znode *fn_flags_znode TSRMLS_DC);
e6255b06 »
2003-04-02 Revert portions of the doc comment patch. There should be no parser
391 void zend_do_end_function_declaration(znode *function_token TSRMLS_DC);
f8bbafd6 »
2003-08-03 ntroduce infrastructure for supplying information about arguments,
392 void zend_do_receive_arg(zend_uchar op, znode *var, znode *offset, znode *initialization, znode *class_type, znode *varname, zend_bool pass_by_reference TSRMLS_DC);
b4f3b9d3 »
2001-07-28 Redesigned thread safety mechanism - nua nua
393 int zend_do_begin_function_call(znode *function_name TSRMLS_DC);
2ce4b476 »
2001-12-26 - Initial support for _clone()
394 void zend_do_begin_method_call(znode *left_bracket TSRMLS_DC);
8e30d96a »
2004-02-02 Redesign the clone() feature to fix some fundamental flaws in the pre…
395 void zend_do_clone(znode *result, znode *expr TSRMLS_DC);
b4f3b9d3 »
2001-07-28 Redesigned thread safety mechanism - nua nua
396 void zend_do_begin_dynamic_function_call(znode *function_name TSRMLS_DC);
f7f5a5ea »
2003-06-02 MEGA-patch: namespaces are R.I.P.
397 void zend_do_fetch_class(znode *result, znode *class_name TSRMLS_DC);
d344648b »
2003-11-24 - Fix __autoload() to preserve class case.
398 void zend_do_fetch_class_name(znode *result, znode *class_entry, znode *class_name TSRMLS_DC);
d8efe626 »
2004-09-16 - Fix bug #27669 (Dmitry).
399 void zend_do_begin_class_member_function_call(znode *class_name, znode *method_name TSRMLS_DC);
b4f3b9d3 »
2001-07-28 Redesigned thread safety mechanism - nua nua
400 void zend_do_end_function_call(znode *function_name, znode *result, znode *argument_list, int is_method, int is_dynamic_fcall TSRMLS_DC);
401 void zend_do_return(znode *expr, int do_end_vparse TSRMLS_DC);
9e60cb55 »
2004-02-03 Rewrote exception support. Fixes a few limitations and bugs in the old
402 void zend_do_handle_exception(TSRMLS_D);
29f5dbe1 »
2001-08-30 - Initial support for exceptions.
403
61970215 »
2001-08-30 - Make it compile in thread-safe mode.
404 void zend_do_try(znode *try_token TSRMLS_DC);
21b04ff2 »
2002-02-13 @ Allow a series of consecutive catch() statements (Andi, Zend Engine)
405 void zend_do_begin_catch(znode *try_token, znode *catch_class, znode *catch_var, zend_bool first_catch TSRMLS_DC);
61970215 »
2001-08-30 - Make it compile in thread-safe mode.
406 void zend_do_end_catch(znode *try_token TSRMLS_DC);
407 void zend_do_throw(znode *expr TSRMLS_DC);
29f5dbe1 »
2001-08-30 - Initial support for exceptions.
408
c5d84227 »
2004-02-04 Reinstate early-binding for classes.
409 ZEND_API int do_bind_function(zend_op *opline, HashTable *function_table, zend_bool compile_time);
410 ZEND_API zend_class_entry *do_bind_class(zend_op *opline, HashTable *class_table, zend_bool compile_time TSRMLS_DC);
411 ZEND_API zend_class_entry *do_bind_inherited_class(zend_op *opline, HashTable *class_table, zend_class_entry *parent_ce, zend_bool compile_time TSRMLS_DC);
3c62b3b5 »
2003-10-22 Expand Interface C API.
412 ZEND_API void zend_do_inherit_interfaces(zend_class_entry *ce, zend_class_entry *iface TSRMLS_DC);
413 ZEND_API void zend_do_implement_interface(zend_class_entry *ce, zend_class_entry *iface TSRMLS_DC);
26dd8492 »
2003-03-05 Add support for interfaces
414 void zend_do_implements_interface(znode *interface_znode TSRMLS_DC);
f78fa504 »
2002-09-24 - Megapatch to try and support inheritance from sub-classes. Things m…
415
4918b67a »
2005-05-28 - Make zend_do_inheritance ZEND_API
416 ZEND_API void zend_do_inheritance(zend_class_entry *ce, zend_class_entry *parent_ce TSRMLS_DC);
b4f3b9d3 »
2001-07-28 Redesigned thread safety mechanism - nua nua
417 void zend_do_early_binding(TSRMLS_D);
573b4602 »
1999-04-07 Zend Library
418
51e797f1 »
2002-04-23 some type cleanup work
419 void zend_do_pass_param(znode *param, zend_uchar op, int offset TSRMLS_DC);
573b4602 »
1999-04-07 Zend Library
420
421
b4f3b9d3 »
2001-07-28 Redesigned thread safety mechanism - nua nua
422 void zend_do_boolean_or_begin(znode *expr1, znode *op_token TSRMLS_DC);
423 void zend_do_boolean_or_end(znode *result, znode *expr1, znode *expr2, znode *op_token TSRMLS_DC);
333406bd »
2003-02-01 - Added some missing CVS $Id$ tags, headers and footers.
424 void zend_do_boolean_and_begin(znode *expr1, znode *op_token TSRMLS_DC);
b4f3b9d3 »
2001-07-28 Redesigned thread safety mechanism - nua nua
425 void zend_do_boolean_and_end(znode *result, znode *expr1, znode *expr2, znode *op_token TSRMLS_DC);
573b4602 »
1999-04-07 Zend Library
426
51e797f1 »
2002-04-23 some type cleanup work
427 void zend_do_brk_cont(zend_uchar op, znode *expr TSRMLS_DC);
573b4602 »
1999-04-07 Zend Library
428
b4f3b9d3 »
2001-07-28 Redesigned thread safety mechanism - nua nua
429 void zend_do_switch_cond(znode *cond TSRMLS_DC);
430 void zend_do_switch_end(znode *case_list TSRMLS_DC);
431 void zend_do_case_before_statement(znode *case_list, znode *case_token, znode *case_expr TSRMLS_DC);
432 void zend_do_case_after_statement(znode *result, znode *case_token TSRMLS_DC);
433 void zend_do_default_before_statement(znode *case_list, znode *default_token TSRMLS_DC);
573b4602 »
1999-04-07 Zend Library
434
74efc41f »
2001-12-12 - Make classes have scope and function/constant lookups default to th…
435 void zend_do_begin_class_declaration(znode *class_token, znode *class_name, znode *parent_class_name TSRMLS_DC);
e6255b06 »
2003-04-02 Revert portions of the doc comment patch. There should be no parser
436 void zend_do_end_class_declaration(znode *class_token, znode *parent_token TSRMLS_DC);
6317e265 »
2003-02-10 - Treat $this->foo inside class X as an implicit 'public $foo' if X::…
437 void zend_do_declare_property(znode *var_name, znode *value, zend_uint access_type TSRMLS_DC);
8d2a4e04 »
2003-06-09 Fix bogus implicit declarations of properties (squash bug #23671)
438 void zend_do_declare_implicit_property(TSRMLS_D);
e062dffe »
2002-12-06 - Implement public/protected/private methods.
439 void zend_do_declare_class_constant(znode *var_name, znode *value TSRMLS_DC);
573b4602 »
1999-04-07 Zend Library
440
b4f3b9d3 »
2001-07-28 Redesigned thread safety mechanism - nua nua
441 void zend_do_fetch_property(znode *result, znode *object, znode *property TSRMLS_DC);
573b4602 »
1999-04-07 Zend Library
442
443
b4f3b9d3 »
2001-07-28 Redesigned thread safety mechanism - nua nua
444 void zend_do_push_object(znode *object TSRMLS_DC);
445 void zend_do_pop_object(znode *object TSRMLS_DC);
573b4602 »
1999-04-07 Zend Library
446
447
a332f826 »
2001-11-04 - Support instantiation of nested class. The following script now should
448 void zend_do_begin_new_object(znode *new_token, znode *class_type TSRMLS_DC);
449 void zend_do_end_new_object(znode *result, znode *new_token, znode *argument_list TSRMLS_DC);
573b4602 »
1999-04-07 Zend Library
450
e858d278 »
2001-11-30 - Initial support for class constants. There are still a few semantic
451 void zend_do_fetch_constant(znode *result, znode *constant_container, znode *constant_name, int mode TSRMLS_DC);
573b4602 »
1999-04-07 Zend Library
452
b4f3b9d3 »
2001-07-28 Redesigned thread safety mechanism - nua nua
453 void zend_do_shell_exec(znode *result, znode *cmd TSRMLS_DC);
573b4602 »
1999-04-07 Zend Library
454
51e797f1 »
2002-04-23 some type cleanup work
455 void zend_do_init_array(znode *result, znode *expr, znode *offset, zend_bool is_ref TSRMLS_DC);
456 void zend_do_add_array_element(znode *result, znode *expr, znode *offset, zend_bool is_ref TSRMLS_DC);
f1a9920b »
2000-11-02 Maintain consistency
457 void zend_do_add_static_array_element(znode *result, znode *offset, znode *expr);
b4f3b9d3 »
2001-07-28 Redesigned thread safety mechanism - nua nua
458 void zend_do_list_init(TSRMLS_D);
459 void zend_do_list_end(znode *result, znode *expr TSRMLS_DC);
460 void zend_do_add_list_element(znode *element TSRMLS_DC);
461 void zend_do_new_list_begin(TSRMLS_D);
462 void zend_do_new_list_end(TSRMLS_D);
573b4602 »
1999-04-07 Zend Library
463
b4f3b9d3 »
2001-07-28 Redesigned thread safety mechanism - nua nua
464 void zend_do_cast(znode *result, znode *expr, int type TSRMLS_DC);
465 void zend_do_include_or_eval(int type, znode *result, znode *op1 TSRMLS_DC);
573b4602 »
1999-04-07 Zend Library
466
7b68f510 »
2002-07-14 - Nuke delete(). It was a big mistake to introduce it and I finally
467 void zend_do_unset(znode *variable TSRMLS_DC);
b4f3b9d3 »
2001-07-28 Redesigned thread safety mechanism - nua nua
468 void zend_do_isset_or_isempty(int type, znode *result, znode *variable TSRMLS_DC);
573b4602 »
1999-04-07 Zend Library
469
c073b76a »
2003-01-14 - Change "is" to "instanceof" as it explains better what the operator…
470 void zend_do_instanceof(znode *result, znode *expr, znode *class_znode, int type TSRMLS_DC);
82c72f27 »
2002-07-30 @- Adding 'is' operator that can be used to check the type of a varia…
471
a29f5391 »
2005-02-11 - Cleanup foreach handling
472 void zend_do_foreach_begin(znode *foreach_token, znode *open_brackets_token, znode *array, int variable TSRMLS_DC);
473 void zend_do_foreach_fetch(znode *foreach_token, znode *open_brackets_token, znode *as_token TSRMLS_DC);
474 void zend_do_foreach_cont(znode *foreach_token, znode *as_token, znode *value, znode *key TSRMLS_DC);
475 void zend_do_foreach_end(znode *foreach_token, znode *as_token TSRMLS_DC);
573b4602 »
1999-04-07 Zend Library
476
b4f3b9d3 »
2001-07-28 Redesigned thread safety mechanism - nua nua
477 void zend_do_declare_begin(TSRMLS_D);
478 void zend_do_declare_stmt(znode *var, znode *val TSRMLS_DC);
b806a8e2 »
2002-08-14 MFZE1 (use token instead of global for opcode counting)
479 void zend_do_declare_end(znode *declare_token TSRMLS_DC);
fafbf6d8 »
2000-01-24 - Implement declare() with declarables framework
480
b4f3b9d3 »
2001-07-28 Redesigned thread safety mechanism - nua nua
481 void zend_do_end_heredoc(TSRMLS_D);
573b4602 »
1999-04-07 Zend Library
482
b4f3b9d3 »
2001-07-28 Redesigned thread safety mechanism - nua nua
483 void zend_do_exit(znode *result, znode *message TSRMLS_DC);
573b4602 »
1999-04-07 Zend Library
484
b4f3b9d3 »
2001-07-28 Redesigned thread safety mechanism - nua nua
485 void zend_do_begin_silence(znode *strudel_token TSRMLS_DC);
486 void zend_do_end_silence(znode *strudel_token TSRMLS_DC);
573b4602 »
1999-04-07 Zend Library
487
b4f3b9d3 »
2001-07-28 Redesigned thread safety mechanism - nua nua
488 void zend_do_begin_qm_op(znode *cond, znode *qm_token TSRMLS_DC);
489 void zend_do_qm_true(znode *true_value, znode *qm_token, znode *colon_token TSRMLS_DC);
490 void zend_do_qm_false(znode *result, znode *false_value, znode *qm_token, znode *colon_token TSRMLS_DC);
573b4602 »
1999-04-07 Zend Library
491
b4f3b9d3 »
2001-07-28 Redesigned thread safety mechanism - nua nua
492 void zend_do_extended_info(TSRMLS_D);
493 void zend_do_extended_fcall_begin(TSRMLS_D);
494 void zend_do_extended_fcall_end(TSRMLS_D);
573b4602 »
1999-04-07 Zend Library
495
b4f3b9d3 »
2001-07-28 Redesigned thread safety mechanism - nua nua
496 void zend_do_ticks(TSRMLS_D);
fafbf6d8 »
2000-01-24 - Implement declare() with declarables framework
497
28145041 »
2003-02-11 Improve parser handling of 'abstract'
498 void zend_do_abstract_method(znode *function_name, znode *modifiers, znode *body TSRMLS_DC);
227f7838 »
2002-11-20 - Fix build (thanks Marcus)
499
727398b2 »
2000-06-13 Add to the API
500 ZEND_API void function_add_ref(zend_function *function);
0b7a9cea »
2000-06-03 - Fix Win32 compilation (Use winsock2.h from now on)
501
7c4a0838 »
1999-04-26 Various thread safety fixes and DLL updates
502 #define INITIAL_OP_ARRAY_SIZE 64
503
573b4602 »
1999-04-07 Zend Library
504
7b0d92dd »
2000-10-29 Unify the names of these last 3 files...
505 /* helper functions in zend_language_scanner.l */
b4f3b9d3 »
2001-07-28 Redesigned thread safety mechanism - nua nua
506 ZEND_API zend_op_array *compile_file(zend_file_handle *file_handle, int type TSRMLS_DC);
507 ZEND_API zend_op_array *compile_string(zval *source_string, char *filename TSRMLS_DC);
508 ZEND_API zend_op_array *compile_filename(int type, zval *filename TSRMLS_DC);
819ea51d »
2001-08-31 MFZE1
509 ZEND_API int zend_execute_scripts(int type TSRMLS_DC, zval **retval, int file_count, ...);
b4f3b9d3 »
2001-07-28 Redesigned thread safety mechanism - nua nua
510 ZEND_API int open_file_for_scanning(zend_file_handle *file_handle TSRMLS_DC);
51e797f1 »
2002-04-23 some type cleanup work
511 ZEND_API void init_op_array(zend_op_array *op_array, zend_uchar type, int initial_ops_size TSRMLS_DC);
3fc85282 »
2003-03-26 Eliminate TSRMLS_FETCH() calls in destroy_op_array() and zend_get_cla…
512 ZEND_API void destroy_op_array(zend_op_array *op_array TSRMLS_DC);
b4f3b9d3 »
2001-07-28 Redesigned thread safety mechanism - nua nua
513 ZEND_API void zend_destroy_file_handle(zend_file_handle *file_handle TSRMLS_DC);
5090b1e8 »
2000-08-13 Fix zend_fiel_handle handling. Should fix URL include
514 ZEND_API void zend_file_handle_dtor(zend_file_handle *fh);
03f88ac2 »
2003-01-29 Add additional stage to post-session cleanup.
515 ZEND_API int zend_cleanup_class_data(zend_class_entry **pce TSRMLS_DC);
516 ZEND_API int zend_cleanup_function_data(zend_function *function TSRMLS_DC);
573b4602 »
1999-04-07 Zend Library
517
3fc85282 »
2003-03-26 Eliminate TSRMLS_FETCH() calls in destroy_op_array() and zend_get_cla…
518 ZEND_API void destroy_zend_function(zend_function *function TSRMLS_DC);
fb5cb590 »
2004-06-06 Fixed Zend Function Destructor to use correct TSRM handle.
519 ZEND_API void zend_function_dtor(zend_function *function);
92dd5e61 »
2002-03-12 - make class tables contain class_entry *, not class_entry
520 ZEND_API void destroy_zend_class(zend_class_entry **pce);
c8c629b3 »
2002-03-12 - Fix bug introduced with latest class hash table change.
521 void zend_class_add_ref(zend_class_entry **ce);
7c4a0838 »
1999-04-26 Various thread safety fixes and DLL updates
522
6923a16c »
2004-01-03 - Fixed var_export() to show public, protected and private modifiers …
523 ZEND_API void zend_mangle_property_name(char **dest, int *dest_length, char *src1, int src1_length, char *src2, int src2_length, int internal);
524 ZEND_API void zend_unmangle_property_name(char *mangled_property, char **prop_name, char **class_name);
471947b1 »
2003-02-04 Reimplement PPP properties
525
fb5cb590 »
2004-06-06 Fixed Zend Function Destructor to use correct TSRM handle.
526 #define ZEND_FUNCTION_DTOR (void (*)(void *)) zend_function_dtor
62114c18 »
2000-01-17 Destructors no longer return ints, the low level problem it was inten…
527 #define ZEND_CLASS_DTOR (void (*)(void *)) destroy_zend_class
81d901b1 »
1999-07-09 Step 1 in nuking the garbage collector:
528
b4f3b9d3 »
2001-07-28 Redesigned thread safety mechanism - nua nua
529 zend_op *get_next_op(zend_op_array *op_array TSRMLS_DC);
530 void init_op(zend_op *op TSRMLS_DC);
573b4602 »
1999-04-07 Zend Library
531 int get_next_op_number(zend_op_array *op_array);
d76cf1da »
2001-07-31 More TSRMLS_FETCH work
532 int print_class(zend_class_entry *class_entry TSRMLS_DC);
573b4602 »
1999-04-07 Zend Library
533 void print_op_array(zend_op_array *op_array, int optimizations);
d76cf1da »
2001-07-31 More TSRMLS_FETCH work
534 int pass_two(zend_op_array *op_array TSRMLS_DC);
573b4602 »
1999-04-07 Zend Library
535 zend_brk_cont_element *get_next_brk_cont_element(zend_op_array *op_array);
9e60cb55 »
2004-02-03 Rewrote exception support. Fixes a few limitations and bugs in the old
536 void zend_do_first_catch(znode *open_parentheses TSRMLS_DC);
537 void zend_initialize_try_catch_element(znode *try_token TSRMLS_DC);
538 void zend_do_mark_last_catch(znode *first_catch, znode *last_additional_catch TSRMLS_DC);
4187439c »
2001-07-30 More TSRMLS_FETCH work
539 ZEND_API zend_bool zend_is_compiling(TSRMLS_D);
b5770382 »
2001-07-30 Avoid TSRMLS_FETCH()'s (still lots of work left)
540 ZEND_API char *zend_make_compiled_string_description(char *name TSRMLS_DC);
9c909f41 »
2003-12-16 Sync: Export externally used functions.
541 ZEND_API void zend_initialize_class_data(zend_class_entry *ce, zend_bool nullify_handlers TSRMLS_DC);
9d7122fb »
2003-08-03 Generalize fetch_class
542 int zend_get_class_fetch_type(char *class_name, uint class_name_len);
c17c7a2b »
2003-02-10 Centralize class initialization
543
f7b78004 »
2003-03-02 Add infrastructure for JIT initialization of auto globals
544 typedef zend_bool (*zend_auto_global_callback)(char *name, uint name_len TSRMLS_DC);
545 typedef struct _zend_auto_global {
546 char *name;
547 uint name_len;
548 zend_auto_global_callback auto_global_callback;
549 zend_bool armed;
550 } zend_auto_global;
573b4602 »
1999-04-07 Zend Library
551
f7b78004 »
2003-03-02 Add infrastructure for JIT initialization of auto globals
552 void zend_auto_global_dtor(zend_auto_global *auto_global);
170de9b9 »
2003-03-22 export functions needed by cli
553 ZEND_API int zend_register_auto_global(char *name, uint name_len, zend_auto_global_callback auto_global_callback TSRMLS_DC);
554 ZEND_API zend_bool zend_is_auto_global(char *name, uint name_len TSRMLS_DC);
e2a5ebf5 »
2004-03-16 Add ability to disable JIT for a particular auto global
555 ZEND_API int zend_auto_global_disable_jit(char *varname, zend_uint varname_length TSRMLS_DC);
9d11db12 »
2001-08-08 - Merge new $_GET, $_POST etc. patch from Engine 1 tree
556
b4f3b9d3 »
2001-07-28 Redesigned thread safety mechanism - nua nua
557 int zendlex(znode *zendlval TSRMLS_DC);
573b4602 »
1999-04-07 Zend Library
558
5ae7fa42 »
2003-04-07 add markers that make this file easy to parse for external sources
559 /* BEGIN: OPCODES */
f7f5a5ea »
2003-06-02 MEGA-patch: namespaces are R.I.P.
560
a904c1da »
2004-10-27 - Improve comments, docs, code...
561 #include "zend_vm_opcodes.h"
a4c3b2ce »
2003-02-16 Namespace patch. Big changes:
562
a904c1da »
2004-10-27 - Improve comments, docs, code...
563 #define ZEND_OP_DATA 137
9e60cb55 »
2004-02-03 Rewrote exception support. Fixes a few limitations and bugs in the old
564
5ae7fa42 »
2003-04-07 add markers that make this file easy to parse for external sources
565 /* END: OPCODES */
573b4602 »
1999-04-07 Zend Library
566
567
568
569
570 /* global/local fetches */
d2da63f6 »
2001-11-25 - Support static members. The following script works:
571 #define ZEND_FETCH_GLOBAL 0
572 #define ZEND_FETCH_LOCAL 1
573 #define ZEND_FETCH_STATIC 2
574 #define ZEND_FETCH_STATIC_MEMBER 3
343af548 »
2005-07-04 Fixed SIGSEGV on 'global ${"{$blah}_ID"};'
575 #define ZEND_FETCH_GLOBAL_LOCK 4
573b4602 »
1999-04-07 Zend Library
576
68fa4e50 »
2003-07-30 Get rid of an opcode
577
74efc41f »
2001-12-12 - Make classes have scope and function/constant lookups default to th…
578 /* class fetches */
579 #define ZEND_FETCH_CLASS_DEFAULT 0
580 #define ZEND_FETCH_CLASS_SELF 1
b3fd2faa »
2001-12-27 - Support parent:: again
581 #define ZEND_FETCH_CLASS_PARENT 2
582 #define ZEND_FETCH_CLASS_MAIN 3
a4c3b2ce »
2003-02-16 Namespace patch. Big changes:
583 #define ZEND_FETCH_CLASS_GLOBAL 4
9d7122fb »
2003-08-03 Generalize fetch_class
584 #define ZEND_FETCH_CLASS_AUTO 5
12b66c26 »
2005-06-24 Fixed bug #30519 (Interface not existing says Class not found)
585 #define ZEND_FETCH_CLASS_INTERFACE 6
9305339d »
2005-09-09 Changed "instanceof" and "catch" operators, is_a() and is_subclass_of…
586 #define ZEND_FETCH_CLASS_NO_AUTOLOAD 0x80
74efc41f »
2001-12-12 - Make classes have scope and function/constant lookups default to th…
587
880e7d8c »
2001-12-16 - Framework for knowing what kind of variable we just parsed.
588 /* variable parsing type (compile-time) */
03b6af07 »
2003-07-24 Support references in foreach()
589 #define ZEND_PARSED_MEMBER (1<<0)
590 #define ZEND_PARSED_METHOD_CALL (1<<1)
591 #define ZEND_PARSED_STATIC_MEMBER (1<<2)
592 #define ZEND_PARSED_FUNCTION_CALL (1<<3)
593 #define ZEND_PARSED_VARIABLE (1<<4)
594 #define ZEND_PARSED_REFERENCE_VARIABLE (1<<5)
880e7d8c »
2001-12-16 - Framework for knowing what kind of variable we just parsed.
595
596
5af7770a »
2001-08-07 - Sync Engine2 CVS with latest Engine CVS
597 /* unset types */
598 #define ZEND_UNSET_REG 0
599
573b4602 »
1999-04-07 Zend Library
600 /* var status for backpatching */
06d04d15 »
1999-09-29 - Fix SEND_VAR problem after fetch'ing a variable and not knowing the…
601 #define BP_VAR_R 0
602 #define BP_VAR_W 1
603 #define BP_VAR_RW 2
604 #define BP_VAR_IS 3
605 #define BP_VAR_NA 4 /* if not applicable */
606 #define BP_VAR_FUNC_ARG 5
7fa17e8e »
2000-02-14 - Put in the infrastructure for the unset() fix. Right now it has the…
607 #define BP_VAR_UNSET 6
573b4602 »
1999-04-07 Zend Library
608
609
49c4866a »
2003-08-18 - Improve tracking
610 #define ZEND_INTERNAL_FUNCTION 1
611 #define ZEND_USER_FUNCTION 2
612 #define ZEND_OVERLOADED_FUNCTION 3
613 #define ZEND_EVAL_CODE 4
614 #define ZEND_OVERLOADED_FUNCTION_TEMPORARY 5
573b4602 »
1999-04-07 Zend Library
615
62f9eb80 »
2003-04-01 Split ZEND_NAMESPACE into user and internal namespaces. Hope this is
616 #define ZEND_INTERNAL_CLASS 1
617 #define ZEND_USER_CLASS 2
573b4602 »
1999-04-07 Zend Library
618
619 #define ZEND_EVAL (1<<0)
620 #define ZEND_INCLUDE (1<<1)
9cc70442 »
2000-03-10 - Cleanup old IMPORT stuff
621 #define ZEND_INCLUDE_ONCE (1<<2)
67b4b3a6 »
1999-12-23 - require() of a dynamic expression now has the standard require() se…
622 #define ZEND_REQUIRE (1<<3)
c06692e9 »
2000-08-09 The patch we promised - redesigned the compilation/execution API:
623 #define ZEND_REQUIRE_ONCE (1<<4)
573b4602 »
1999-04-07 Zend Library
624
625 #define ZEND_ISSET (1<<0)
626 #define ZEND_ISEMPTY (1<<1)
627
628 #define ZEND_CT (1<<0)
629 #define ZEND_RT (1<<1)
630
631
58153dfe »
1999-11-26 - Improve the file handle closing code
632 #define ZEND_HANDLE_FILENAME 0
633 #define ZEND_HANDLE_FD 1
634 #define ZEND_HANDLE_FP 2
635 #define ZEND_HANDLE_STDIOSTREAM 3
636 #define ZEND_HANDLE_FSTREAM 4
e52aac94 »
2003-02-18 Implement simple stream support in the ZE scanners.
637 #define ZEND_HANDLE_STREAM 5
573b4602 »
1999-04-07 Zend Library
638
1250c43a »
1999-05-22 * Add struct name to all typedef's so that they can be debugged with …
639 #define ZEND_FETCH_STANDARD 0
cccd2445 »
1999-07-10 Get rid of AiCount completely
640 #define ZEND_FETCH_ADD_LOCK 1
1250c43a »
1999-05-22 * Add struct name to all typedef's so that they can be debugged with …
641
993f70c1 »
2004-08-12 - Don't use magic numbers
642 #define ZEND_FE_FETCH_BYREF 1
643 #define ZEND_FE_FETCH_WITH_KEY 2
644
741b8161 »
1999-05-28 * Support getThis() for internal functions.
645 #define ZEND_MEMBER_FUNC_CALL 1<<0
646
8d908256 »
2000-11-27 - Allow passing references which are returned from functions and new
647 #define ZEND_ARG_SEND_BY_REF (1<<0)
648 #define ZEND_ARG_COMPILE_TIME_BOUND (1<<1)
21e071be »
2005-06-22 Fixed bug #33257 (array_splice() inconsistent when passed function in…
649 #define ZEND_ARG_SEND_FUNCTION (1<<2)
6ec1acbe »
1999-07-09 Phase 3:
650
ebd4ab4d »
2005-08-10 Fixed bug #25359 (array_multisort() doesn't work in a function if arr…
651 #define ZEND_SEND_BY_VAL 0
652 #define ZEND_SEND_BY_REF 1
653 #define ZEND_SEND_PREFER_REF 2
654
6d988ec6 »
1999-11-03 - Add support for BYREF_FORCE_REST
655 /* Lost In Stupid Parentheses */
f8bbafd6 »
2003-08-03 ntroduce infrastructure for supplying information about arguments,
656 #define ARG_SHOULD_BE_SENT_BY_REF(zf, arg_num) \
657 ( \
658 zf \
659 && ((zend_function *) zf)->common.arg_info \
660 && \
661 ( \
662 ( \
663 arg_num<=((zend_function *) zf)->common.num_args \
ebd4ab4d »
2005-08-10 Fixed bug #25359 (array_multisort() doesn't work in a function if arr…
664 && ((zend_function *) zf)->common.arg_info[arg_num-1].pass_by_reference == ZEND_SEND_BY_REF \
f8bbafd6 »
2003-08-03 ntroduce infrastructure for supplying information about arguments,
665 ) \
666 || ( \
667 arg_num>((zend_function *) zf)->common.num_args \
ebd4ab4d »
2005-08-10 Fixed bug #25359 (array_multisort() doesn't work in a function if arr…
668 && ((zend_function *) zf)->common.pass_rest_by_reference == ZEND_SEND_BY_REF \
f8bbafd6 »
2003-08-03 ntroduce infrastructure for supplying information about arguments,
669 ) \
670 ) \
6d988ec6 »
1999-11-03 - Add support for BYREF_FORCE_REST
671 )
672
ebd4ab4d »
2005-08-10 Fixed bug #25359 (array_multisort() doesn't work in a function if arr…
673 #define ARG_MAY_BE_SENT_BY_REF(zf, arg_num) \
674 ( \
675 zf \
676 && ((zend_function *) zf)->common.arg_info \
677 && \
678 ( \
679 ( \
680 arg_num<=((zend_function *) zf)->common.num_args \
681 && ((zend_function *) zf)->common.arg_info[arg_num-1].pass_by_reference == ZEND_SEND_PREFER_REF \
682 ) \
683 || ( \
684 arg_num>((zend_function *) zf)->common.num_args \
685 && ((zend_function *) zf)->common.pass_rest_by_reference == ZEND_SEND_PREFER_REF \
686 ) \
687 ) \
688 )
f8bbafd6 »
2003-08-03 ntroduce infrastructure for supplying information about arguments,
689
ced9cee1 »
1999-12-15 - Implement return by reference:
690 #define ZEND_RETURN_VAL 0
691 #define ZEND_RETURN_REF 1
692
3a42baba »
2003-12-14 Fix behavior of return-by-reference functions. Remove erroneous warni…
693
694 #define ZEND_RETURNS_FUNCTION 1<<0
695
ad115d20 »
2000-01-29 Fix require()
696 END_EXTERN_C()
697
d8651c82 »
2002-09-04 Support for __get, __set and __call in classes.
698 #define ZEND_CLONE_FUNC_NAME "__clone"
699 #define ZEND_CONSTRUCTOR_FUNC_NAME "__construct"
700 #define ZEND_DESTRUCTOR_FUNC_NAME "__destruct"
701 #define ZEND_GET_FUNC_NAME "__get"
702 #define ZEND_SET_FUNC_NAME "__set"
345e0255 »
2005-07-07 Fixed bug #33512 (Add missing support for isset()/unset() overloading…
703 #define ZEND_UNSET_FUNC_NAME "__unset"
704 #define ZEND_ISSET_FUNC_NAME "__isset"
d8651c82 »
2002-09-04 Support for __get, __set and __call in classes.
705 #define ZEND_CALL_FUNC_NAME "__call"
5f0433db »
2004-08-02 MFB: Enforce protocol on magic methods/functions
706 #define ZEND_AUTOLOAD_FUNC_NAME "__autoload"
d8651c82 »
2002-09-04 Support for __get, __set and __call in classes.
707
a6172174 »
2000-07-03 Replace macros which begin with an underscore through an appropiately
708 #endif /* ZEND_COMPILE_H */
333406bd »
2003-02-01 - Added some missing CVS $Id$ tags, headers and footers.
709
710 /*
711 * Local variables:
712 * tab-width: 4
713 * c-basic-offset: 4
714 * indent-tabs-mode: t
715 * End:
716 */
Something went wrong with that request. Please try again.