Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 636 lines (481 sloc) 19.693 kb
573b4602 »
1999-04-07 Zend Library
1 /*
2 +----------------------------------------------------------------------+
3 | Zend Engine |
4 +----------------------------------------------------------------------+
d2c9e807 »
2001-02-26 - Update copyright year
5 | Copyright (c) 1998-2001 Zend Technologies Ltd. (http://www.zend.com) |
573b4602 »
1999-04-07 Zend Library
6 +----------------------------------------------------------------------+
5e55e47f »
2000-03-06 It's official now...
7 | This source file is subject to version 0.92 of the Zend license, |
b5b11177 »
1999-07-16 License update
8 | that is bundled with this package in the file LICENSE, and is |
9 | available at through the world-wide-web at |
5e55e47f »
2000-03-06 It's official now...
10 | http://www.zend.com/license/0_92.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
b5b11177 »
1999-07-16 License update
20
a6172174 »
2000-07-03 Replace macros which begin with an underscore through an appropiately
21 #ifndef ZEND_COMPILE_H
22 #define ZEND_COMPILE_H
573b4602 »
1999-04-07 Zend Library
23
24 #include "zend.h"
fa76f0c9 »
1999-04-14 Compile fix
25
009025e0 »
1999-09-06 * header file cleanup
26 #ifdef HAVE_STDARG_H
27 # include <stdarg.h>
fa76f0c9 »
1999-04-14 Compile fix
28 #endif
29
e95220e7 »
2000-07-11 - Include iostream.h in C++.
30 #ifdef __cplusplus
6f6e13de »
2000-12-26 Use iostream.h instead of istream.h (IBM's compiler doesn't come with…
31 #include <iostream.h>
e95220e7 »
2000-07-11 - Include iostream.h in C++.
32 #endif
33
573b4602 »
1999-04-07 Zend Library
34 #include "zend_llist.h"
35
36 #define DEBUG_ZEND 0
fcaf734f »
1999-05-02 - Don't support interactive mode when thread safe.
37
380af9a9 »
2001-06-07 - Avoid breaking op_array compatibility for 4.0.6
38 #ifndef ZTS
39 # define SUPPORT_INTERACTIVE 1
40 #else
41 # define SUPPORT_INTERACTIVE 0
42 #endif
573b4602 »
1999-04-07 Zend Library
43
44 #define FREE_PNODE(znode) zval_dtor(&znode->u.constant);
45 #define FREE_OP(op, should_free) if (should_free) zval_dtor(&Ts[(op)->u.var].tmp_var);
46
1ccf9406 »
2000-11-11 - Move SET_UNUSED() to header
47 #define SET_UNUSED(op) (op).op_type = IS_UNUSED
573b4602 »
1999-04-07 Zend Library
48
49 #if SUPPORT_INTERACTIVE
50 #define INC_BPC(op_array) ((op_array)->backpatch_count++)
51 #define DEC_BPC(op_array) ((op_array)->backpatch_count--)
52 #define HANDLE_INTERACTIVE() if (EG(interactive)) { execute_new_code(CLS_C); }
53 #else
54 #define INC_BPC(op_array)
55 #define DEC_BPC(op_array)
56 #define HANDLE_INTERACTIVE()
57 #endif
58
59 typedef struct _zend_op_array zend_op_array;
60
1250c43a »
1999-05-22 * Add struct name to all typedef's so that they can be debugged with …
61 typedef struct _znode {
573b4602 »
1999-04-07 Zend Library
62 int op_type;
63 union {
64 zval constant;
65
e92f6f15 »
2000-03-13 - define zend_uint and zend_uchar and use them in a few places
66 zend_uint var;
232b9045 »
2000-04-10 Clean up last/size definitions
67 zend_uint opline_num; /* Needs to be signed */
69eb908f »
2000-05-03 - Change fetch_type to be zend_uint
68 zend_uint fetch_type;
573b4602 »
1999-04-07 Zend Library
69 zend_op_array *op_array;
70 struct {
e92f6f15 »
2000-03-13 - define zend_uint and zend_uchar and use them in a few places
71 zend_uint var; /* dummy */
72 zend_uint type;
573b4602 »
1999-04-07 Zend Library
73 } EA;
74 } u;
75 } znode;
76
77
78 typedef struct _zend_op {
e92f6f15 »
2000-03-13 - define zend_uint and zend_uchar and use them in a few places
79 zend_uchar opcode;
573b4602 »
1999-04-07 Zend Library
80 znode result;
81 znode op1;
82 znode op2;
39a7f4c3 »
1999-04-12 This patch is a go. Not fully optimized yet, but working properly.
83 ulong extended_value;
573b4602 »
1999-04-07 Zend Library
84 uint lineno;
85 } zend_op;
86
87
1250c43a »
1999-05-22 * Add struct name to all typedef's so that they can be debugged with …
88 typedef struct _zend_brk_cont_element {
573b4602 »
1999-04-07 Zend Library
89 int cont;
90 int brk;
91 int parent;
92 } zend_brk_cont_element;
93
94
95 struct _zend_op_array {
e92f6f15 »
2000-03-13 - define zend_uint and zend_uchar and use them in a few places
96 zend_uchar type; /* MUST be the first element of this struct! */
573b4602 »
1999-04-07 Zend Library
97
e92f6f15 »
2000-03-13 - define zend_uint and zend_uchar and use them in a few places
98 zend_uchar *arg_types; /* MUST be the second element of this struct! */
7f35cfda »
1999-10-25 *** empty log message ***
99 char *function_name; /* MUST be the third element of this struct! */
573b4602 »
1999-04-07 Zend Library
100
e92f6f15 »
2000-03-13 - define zend_uint and zend_uchar and use them in a few places
101 zend_uint *refcount;
573b4602 »
1999-04-07 Zend Library
102
103 zend_op *opcodes;
232b9045 »
2000-04-10 Clean up last/size definitions
104 zend_uint last, size;
573b4602 »
1999-04-07 Zend Library
105
e92f6f15 »
2000-03-13 - define zend_uint and zend_uchar and use them in a few places
106 zend_uint T;
573b4602 »
1999-04-07 Zend Library
107
108 zend_brk_cont_element *brk_cont_array;
e92f6f15 »
2000-03-13 - define zend_uint and zend_uchar and use them in a few places
109 zend_uint last_brk_cont;
110 zend_uint current_brk_cont;
111 zend_bool uses_globals;
573b4602 »
1999-04-07 Zend Library
112
113 /* static variables support */
114 HashTable *static_variables;
115
116 #if SUPPORT_INTERACTIVE
117 int start_op_number, end_op_number;
118 int last_executed_op_number;
119 int backpatch_count;
120 #endif
ced9cee1 »
1999-12-15 - Implement return by reference:
121 zend_bool return_reference;
42d15298 »
2000-04-29 Fix possible bug with extension dtors being called without the ctors …
122 zend_bool done_pass_two;
573b4602 »
1999-04-07 Zend Library
123
c06692e9 »
2000-08-09 The patch we promised - redesigned the compilation/execution API:
124 char *filename;
125
b5f5e9a6 »
1999-08-15 - Optimize the execute stack a bit.
126 void *reserved[ZEND_MAX_RESERVED_RESOURCES];
573b4602 »
1999-04-07 Zend Library
127 };
128
129
1250c43a »
1999-05-22 * Add struct name to all typedef's so that they can be debugged with …
130 typedef struct _zend_internal_function {
e92f6f15 »
2000-03-13 - define zend_uint and zend_uchar and use them in a few places
131 zend_uchar type; /* MUST be the first element of this struct! */
573b4602 »
1999-04-07 Zend Library
132
e92f6f15 »
2000-03-13 - define zend_uint and zend_uchar and use them in a few places
133 zend_uchar *arg_types; /* MUST be the second element of this struct */
7f35cfda »
1999-10-25 *** empty log message ***
134 char *function_name; /* MUST be the third element of this struct */
573b4602 »
1999-04-07 Zend Library
135
136 void (*handler)(INTERNAL_FUNCTION_PARAMETERS);
137 } zend_internal_function;
138
139
e663d856 »
2000-04-10 Fix object overloading support
140 typedef struct _zend_overloaded_function {
141 zend_uchar type; /* MUST be the first element of this struct! */
142
143 zend_uchar *arg_types; /* MUST be the second element of this struct */
144 char *function_name; /* MUST be the third element of this struct */
145
146 zend_uint var;
147 } zend_overloaded_function;
148
149
1250c43a »
1999-05-22 * Add struct name to all typedef's so that they can be debugged with …
150 typedef union _zend_function {
e92f6f15 »
2000-03-13 - define zend_uint and zend_uchar and use them in a few places
151 zend_uchar type; /* MUST be the first element of this struct! */
573b4602 »
1999-04-07 Zend Library
152 struct {
e92f6f15 »
2000-03-13 - define zend_uint and zend_uchar and use them in a few places
153 zend_uchar type; /* never used */
154 zend_uchar *arg_types;
7f35cfda »
1999-10-25 *** empty log message ***
155 char *function_name;
573b4602 »
1999-04-07 Zend Library
156 } common;
157
158 zend_op_array op_array;
159 zend_internal_function internal_function;
e663d856 »
2000-04-10 Fix object overloading support
160 zend_overloaded_function overloaded_function;
573b4602 »
1999-04-07 Zend Library
161 } zend_function;
162
163
9cb2cf13 »
1999-05-20 Optimize allocations into uninitialized_zval assignments
164 typedef struct _zend_function_state {
573b4602 »
1999-04-07 Zend Library
165 HashTable *function_symbol_table;
166 zend_function *function;
b5f5e9a6 »
1999-08-15 - Optimize the execute stack a bit.
167 void *reserved[ZEND_MAX_RESERVED_RESOURCES];
573b4602 »
1999-04-07 Zend Library
168 } zend_function_state;
169
170
1250c43a »
1999-05-22 * Add struct name to all typedef's so that they can be debugged with …
171 typedef struct _zend_switch_entry {
573b4602 »
1999-04-07 Zend Library
172 znode cond;
173 int default_case;
174 int control_var;
175 } zend_switch_entry;
176
177
1250c43a »
1999-05-22 * Add struct name to all typedef's so that they can be debugged with …
178 typedef struct _list_llist_element {
573b4602 »
1999-04-07 Zend Library
179 znode var;
180 zend_llist dimensions;
181 znode value;
182 } list_llist_element;
183
184
39f9487e »
1999-04-14 -Tiny patches
185 typedef struct _zend_file_handle {
61379fe0 »
2000-03-13 - Another zend_uchar
186 zend_uchar type;
573b4602 »
1999-04-07 Zend Library
187 char *filename;
5463dd5b »
1999-11-30 - Add use support (behaves like require, but will not use the same fi…
188 char *opened_path;
573b4602 »
1999-04-07 Zend Library
189 union {
190 int fd;
191 FILE *fp;
192 #ifdef __cplusplus
193 istream *is;
194 #endif
195 } handle;
9baad804 »
1999-12-04 - Break the zend->PHP dependency introduced by the .php extension for…
196 zend_bool free_filename;
573b4602 »
1999-04-07 Zend Library
197 } zend_file_handle;
198
199
200
201 #define IS_CONST (1<<0)
202 #define IS_TMP_VAR (1<<1)
203 #define IS_VAR (1<<2)
204 #define IS_UNUSED (1<<3) /* Unused variable */
205
206
207 #define EXT_TYPE_UNUSED (1<<0)
208
df74f1df »
2000-06-13 Add optional support for C0x inline semantics.
209 #include "zend_globals.h"
210
ad115d20 »
2000-01-29 Fix require()
211 BEGIN_EXTERN_C()
212
573b4602 »
1999-04-07 Zend Library
213 void init_compiler(CLS_D ELS_DC);
214 void shutdown_compiler(CLS_D);
bda9c83a »
2001-05-06 Recover from a parse error in include files (before, it could result …
215 void zend_init_compiler_data_structures(CLS_D);
573b4602 »
1999-04-07 Zend Library
216
7795aca4 »
2000-08-15 Fix warning issue (compile errors inside require()'d files were incor…
217 extern ZEND_API zend_op_array *(*zend_compile_file)(zend_file_handle *file_handle, int type CLS_DC);
573b4602 »
1999-04-07 Zend Library
218
ed06a70f »
1999-06-05 * Centralized shutdown
219 void zend_activate(CLS_D ELS_DC);
220 void zend_deactivate(CLS_D ELS_DC);
3b88c31b »
2000-03-19 kill warning
221 void zend_activate_modules(void);
a8b0d960 »
2000-05-21 - Fix Apache php source highlighting mode. It was crashing due to the
222 void zend_deactivate_modules(void);
dc0e6632 »
2000-01-16 Allow module startup to be separate from the compiler/executor startup
223
ed06a70f »
1999-06-05 * Centralized shutdown
224
573b4602 »
1999-04-07 Zend Library
225 int lex_scan(zval *zendlval CLS_DC);
226 void startup_scanner(CLS_D);
227 void shutdown_scanner(CLS_D);
228
07e08855 »
1999-08-02 Make set_compiled_filename() return a pointer to the allocated file name
229 ZEND_API char *zend_set_compiled_filename(char *new_compiled_filename);
573b4602 »
1999-04-07 Zend Library
230 ZEND_API void zend_restore_compiled_filename(char *original_compiled_filename);
b6197bcf »
2000-02-04 Maintain a state of whether we're compiling and/or executing
231 ZEND_API char *zend_get_compiled_filename(CLS_D);
232 ZEND_API int zend_get_compiled_lineno(CLS_D);
573b4602 »
1999-04-07 Zend Library
233
1aa2c5c0 »
1999-04-23 Ok, call me crazy, because I probably am.
234 #ifdef ZTS
235 const char *zend_get_zendtext(CLS_D);
236 int zend_get_zendleng(CLS_D);
237 #endif
238
573b4602 »
1999-04-07 Zend Library
239
240 /* parser-driven code generators */
f1a9920b »
2000-11-02 Maintain consistency
241 void zend_do_binary_op(int op, znode *result, znode *op1, znode *op2 CLS_DC);
242 void zend_do_unary_op(int op, znode *result, znode *op1 CLS_DC);
243 void zend_do_binary_assign_op(int op, znode *result, znode *op1, znode *op2 CLS_DC);
244 void zend_do_assign(znode *result, znode *variable, znode *value CLS_DC);
245 void zend_do_assign_ref(znode *result, znode *lvar, znode *rvar CLS_DC);
573b4602 »
1999-04-07 Zend Library
246 void fetch_simple_variable(znode *result, znode *varname, int bp CLS_DC);
82c8a9e7 »
1999-09-20 - Indirect references had all of the fetches by mistakenly backpatched.
247 void fetch_simple_variable_ex(znode *result, znode *varname, int bp, int op CLS_DC);
f1a9920b »
2000-11-02 Maintain consistency
248 void zend_do_indirect_references(znode *result, znode *num_references, znode *variable CLS_DC);
249 void zend_do_fetch_global_or_static_variable(znode *varname, znode *static_assignment, int fetch_type CLS_DC);
250 void zend_do_fetch_globals(znode *varname CLS_DC);
573b4602 »
1999-04-07 Zend Library
251
252 void fetch_array_begin(znode *result, znode *varname, znode *first_dim CLS_DC);
253 void fetch_array_dim(znode *result, znode *parent, znode *dim CLS_DC);
7663e4f6 »
2000-01-29 - Add parser support for string offsets. This added three shift/reduce
254 void fetch_string_offset(znode *result, znode *parent, znode *offset CLS_DC);
f1a9920b »
2000-11-02 Maintain consistency
255 void zend_do_print(znode *result, znode *arg CLS_DC);
256 void zend_do_echo(znode *arg CLS_DC);
88029643 »
1999-05-30 * fix some casts
257 typedef int (*unary_op_type)(zval *, zval *);
258 ZEND_API unary_op_type get_unary_op(int opcode);
573b4602 »
1999-04-07 Zend Library
259 ZEND_API void *get_binary_op(int opcode);
260
f1a9920b »
2000-11-02 Maintain consistency
261 void zend_do_while_cond(znode *expr, znode *close_bracket_token CLS_DC);
262 void zend_do_while_end(znode *while_token, znode *close_bracket_token CLS_DC);
263 void zend_do_do_while_begin(CLS_D);
264 void zend_do_do_while_end(znode *do_token, znode *expr_open_bracket, znode *expr CLS_DC);
573b4602 »
1999-04-07 Zend Library
265
266
f1a9920b »
2000-11-02 Maintain consistency
267 void zend_do_if_cond(znode *cond, znode *closing_bracket_token CLS_DC);
268 void zend_do_if_after_statement(znode *closing_bracket_token, unsigned char initialize CLS_DC);
269 void zend_do_if_end(CLS_D);
573b4602 »
1999-04-07 Zend Library
270
f1a9920b »
2000-11-02 Maintain consistency
271 void zend_do_for_cond(znode *expr, znode *second_semicolon_token CLS_DC);
272 void zend_do_for_before_statement(znode *cond_start, znode *second_semicolon_token CLS_DC);
273 void zend_do_for_end(znode *second_semicolon_token CLS_DC);
573b4602 »
1999-04-07 Zend Library
274
f1a9920b »
2000-11-02 Maintain consistency
275 void zend_do_pre_incdec(znode *result, znode *op1, int op CLS_DC);
276 void zend_do_post_incdec(znode *result, znode *op1, int op CLS_DC);
573b4602 »
1999-04-07 Zend Library
277
f1a9920b »
2000-11-02 Maintain consistency
278 void zend_do_begin_variable_parse(CLS_D);
279 void zend_do_end_variable_parse(int type, int arg_offset CLS_DC);
573b4602 »
1999-04-07 Zend Library
280
f1a9920b »
2000-11-02 Maintain consistency
281 void zend_do_free(znode *op1 CLS_DC);
573b4602 »
1999-04-07 Zend Library
282
f1a9920b »
2000-11-02 Maintain consistency
283 void zend_do_init_string(znode *result CLS_DC);
284 void zend_do_add_char(znode *result, znode *op1, znode *op2 CLS_DC);
285 void zend_do_add_string(znode *result, znode *op1, znode *op2 CLS_DC);
286 void zend_do_add_variable(znode *result, znode *op1, znode *op2 CLS_DC);
573b4602 »
1999-04-07 Zend Library
287
f1a9920b »
2000-11-02 Maintain consistency
288 void zend_do_begin_function_declaration(znode *function_token, znode *function_name, int is_method, int return_reference CLS_DC);
289 void zend_do_end_function_declaration(znode *function_token CLS_DC);
290 void zend_do_receive_arg(int op, znode *var, znode *offset, znode *initialization, unsigned char pass_type CLS_DC);
291 int zend_do_begin_function_call(znode *function_name CLS_DC);
292 void zend_do_begin_dynamic_function_call(znode *function_name CLS_DC);
293 void zend_do_begin_class_member_function_call(znode *class_name, znode *function_name CLS_DC);
294 void zend_do_end_function_call(znode *function_name, znode *result, znode *argument_list, int is_method, int is_dynamic_fcall CLS_DC);
295 void zend_do_return(znode *expr, int do_end_vparse CLS_DC);
ef5b7e21 »
1999-08-14 Generate better warnings for class/function redefinitions
296 ZEND_API int do_bind_function_or_class(zend_op *opline, HashTable *function_table, HashTable *class_table, int compile_time);
f1a9920b »
2000-11-02 Maintain consistency
297 void zend_do_inheritance(zend_class_entry *ce, zend_class_entry *parent_ce);
298 void zend_do_early_binding(CLS_D);
573b4602 »
1999-04-07 Zend Library
299
f1a9920b »
2000-11-02 Maintain consistency
300 void zend_do_pass_param(znode *param, int op, int offset CLS_DC);
573b4602 »
1999-04-07 Zend Library
301
302
f1a9920b »
2000-11-02 Maintain consistency
303 void zend_do_boolean_or_begin(znode *expr1, znode *op_token CLS_DC);
304 void zend_do_boolean_or_end(znode *result, znode *expr1, znode *expr2, znode *op_token CLS_DC);
305 void zend_do_boolean_and_begin(znode *expr1, znode *op_token CLS_DC);
306 void zend_do_boolean_and_end(znode *result, znode *expr1, znode *expr2, znode *op_token CLS_DC);
573b4602 »
1999-04-07 Zend Library
307
f1a9920b »
2000-11-02 Maintain consistency
308 void zend_do_brk_cont(int op, znode *expr CLS_DC);
573b4602 »
1999-04-07 Zend Library
309
f1a9920b »
2000-11-02 Maintain consistency
310 void zend_do_switch_cond(znode *cond CLS_DC);
311 void zend_do_switch_end(znode *case_list CLS_DC);
312 void zend_do_case_before_statement(znode *case_list, znode *case_token, znode *case_expr CLS_DC);
313 void zend_do_case_after_statement(znode *result, znode *case_token CLS_DC);
314 void zend_do_default_before_statement(znode *case_list, znode *default_token CLS_DC);
573b4602 »
1999-04-07 Zend Library
315
f1a9920b »
2000-11-02 Maintain consistency
316 void zend_do_begin_class_declaration(znode *class_name, znode *parent_class_name CLS_DC);
317 void zend_do_end_class_declaration(CLS_D);
318 void zend_do_declare_property(znode *var_name, znode *value CLS_DC);
573b4602 »
1999-04-07 Zend Library
319
f1a9920b »
2000-11-02 Maintain consistency
320 void zend_do_fetch_property(znode *result, znode *object, znode *property CLS_DC);
573b4602 »
1999-04-07 Zend Library
321
322
f1a9920b »
2000-11-02 Maintain consistency
323 void zend_do_push_object(znode *object CLS_DC);
324 void zend_do_pop_object(znode *object CLS_DC);
573b4602 »
1999-04-07 Zend Library
325
326
f1a9920b »
2000-11-02 Maintain consistency
327 void zend_do_begin_new_object(znode *new_token, znode *class_name CLS_DC);
328 void zend_do_end_new_object(znode *result, znode *class_name, znode *new_token, znode *argument_list CLS_DC);
573b4602 »
1999-04-07 Zend Library
329
f1a9920b »
2000-11-02 Maintain consistency
330 void zend_do_fetch_constant(znode *result, znode *constant_name, int mode CLS_DC);
573b4602 »
1999-04-07 Zend Library
331
f1a9920b »
2000-11-02 Maintain consistency
332 void zend_do_shell_exec(znode *result, znode *cmd CLS_DC);
573b4602 »
1999-04-07 Zend Library
333
f1a9920b »
2000-11-02 Maintain consistency
334 void zend_do_init_array(znode *result, znode *expr, znode *offset, int is_ref CLS_DC);
335 void zend_do_add_array_element(znode *result, znode *expr, znode *offset, int is_ref CLS_DC);
336 void zend_do_add_static_array_element(znode *result, znode *offset, znode *expr);
337 void zend_do_list_init(CLS_D);
338 void zend_do_list_end(znode *result, znode *expr CLS_DC);
339 void zend_do_add_list_element(znode *element CLS_DC);
340 void zend_do_new_list_begin(CLS_D);
341 void zend_do_new_list_end(CLS_D);
573b4602 »
1999-04-07 Zend Library
342
f1a9920b »
2000-11-02 Maintain consistency
343 void zend_do_cast(znode *result, znode *expr, int type CLS_DC);
344 void zend_do_include_or_eval(int type, znode *result, znode *op1 CLS_DC);
573b4602 »
1999-04-07 Zend Library
345
f1a9920b »
2000-11-02 Maintain consistency
346 void zend_do_unset(znode *variable CLS_DC);
347 void zend_do_isset_or_isempty(int type, znode *result, znode *variable CLS_DC);
573b4602 »
1999-04-07 Zend Library
348
f1a9920b »
2000-11-02 Maintain consistency
349 void zend_do_foreach_begin(znode *foreach_token, znode *array, znode *open_brackets_token, znode *as_token, int variable CLS_DC);
350 void zend_do_foreach_cont(znode *value, znode *key, znode *as_token CLS_DC);
351 void zend_do_foreach_end(znode *foreach_token, znode *open_brackets_token CLS_DC);
573b4602 »
1999-04-07 Zend Library
352
f1a9920b »
2000-11-02 Maintain consistency
353 void zend_do_declare_begin(CLS_D);
354 void zend_do_declare_stmt(znode *var, znode *val CLS_DC);
355 void zend_do_declare_end(CLS_D);
fafbf6d8 »
2000-01-24 - Implement declare() with declarables framework
356
f1a9920b »
2000-11-02 Maintain consistency
357 void zend_do_end_heredoc(CLS_D);
573b4602 »
1999-04-07 Zend Library
358
ce501c78 »
2000-11-02 - Replace do_exit() with zend_do_exit().
359 void zend_do_exit(znode *result, znode *message CLS_DC);
573b4602 »
1999-04-07 Zend Library
360
f1a9920b »
2000-11-02 Maintain consistency
361 void zend_do_begin_silence(znode *strudel_token CLS_DC);
362 void zend_do_end_silence(znode *strudel_token CLS_DC);
573b4602 »
1999-04-07 Zend Library
363
f1a9920b »
2000-11-02 Maintain consistency
364 void zend_do_begin_qm_op(znode *cond, znode *qm_token CLS_DC);
365 void zend_do_qm_true(znode *true_value, znode *qm_token, znode *colon_token CLS_DC);
366 void zend_do_qm_false(znode *result, znode *false_value, znode *qm_token, znode *colon_token CLS_DC);
573b4602 »
1999-04-07 Zend Library
367
f1a9920b »
2000-11-02 Maintain consistency
368 void zend_do_extended_info(CLS_D);
369 void zend_do_extended_fcall_begin(CLS_D);
370 void zend_do_extended_fcall_end(CLS_D);
573b4602 »
1999-04-07 Zend Library
371
f1a9920b »
2000-11-02 Maintain consistency
372 void zend_do_ticks(CLS_D);
fafbf6d8 »
2000-01-24 - Implement declare() with declarables framework
373
727398b2 »
2000-06-13 Add to the API
374 ZEND_API void function_add_ref(zend_function *function);
0b7a9cea »
2000-06-03 - Fix Win32 compilation (Use winsock2.h from now on)
375
7c4a0838 »
1999-04-26 Various thread safety fixes and DLL updates
376 #define INITIAL_OP_ARRAY_SIZE 64
377
573b4602 »
1999-04-07 Zend Library
378
7b0d92dd »
2000-10-29 Unify the names of these last 3 files...
379 /* helper functions in zend_language_scanner.l */
7795aca4 »
2000-08-15 Fix warning issue (compile errors inside require()'d files were incor…
380 ZEND_API zend_op_array *compile_file(zend_file_handle *file_handle, int type CLS_DC);
5286b397 »
2000-09-12 Make compile_string() accept a description of the code
381 ZEND_API zend_op_array *compile_string(zval *source_string, char *filename CLS_DC);
4b6594c5 »
2000-04-27 Change to using the #define's
382 ZEND_API zend_op_array *compile_filename(int type, zval *filename CLS_DC ELS_DC);
c06692e9 »
2000-08-09 The patch we promised - redesigned the compilation/execution API:
383 ZEND_API int zend_execute_scripts(int type CLS_DC ELS_DC, int file_count, ...);
1877b077 »
1999-10-05 This causes link problems with anything higher than -O0.
384 ZEND_API int open_file_for_scanning(zend_file_handle *file_handle CLS_DC);
c06692e9 »
2000-08-09 The patch we promised - redesigned the compilation/execution API:
385 ZEND_API void init_op_array(zend_op_array *op_array, int type, int initial_ops_size CLS_DC);
573b4602 »
1999-04-07 Zend Library
386 ZEND_API void destroy_op_array(zend_op_array *op_array);
5090b1e8 »
2000-08-13 Fix zend_fiel_handle handling. Should fix URL include
387 ZEND_API void zend_destroy_file_handle(zend_file_handle *file_handle CLS_DC);
388 ZEND_API void zend_file_handle_dtor(zend_file_handle *fh);
573b4602 »
1999-04-07 Zend Library
389
62114c18 »
2000-01-17 Destructors no longer return ints, the low level problem it was inten…
390 ZEND_API void destroy_zend_function(zend_function *function);
391 ZEND_API void destroy_zend_class(zend_class_entry *ce);
7c4a0838 »
1999-04-26 Various thread safety fixes and DLL updates
392 void zend_class_add_ref(zend_class_entry *ce);
393
62114c18 »
2000-01-17 Destructors no longer return ints, the low level problem it was inten…
394 #define ZEND_FUNCTION_DTOR (void (*)(void *)) destroy_zend_function
395 #define ZEND_CLASS_DTOR (void (*)(void *)) destroy_zend_class
81d901b1 »
1999-07-09 Step 1 in nuking the garbage collector:
396
573b4602 »
1999-04-07 Zend Library
397 zend_op *get_next_op(zend_op_array *op_array CLS_DC);
babad269 »
1999-09-20 - First step in fixing locking problem. Array fetches are now always …
398 void init_op(zend_op *op CLS_DC);
573b4602 »
1999-04-07 Zend Library
399 int get_next_op_number(zend_op_array *op_array);
400 int print_class(zend_class_entry *class_entry);
401 void print_op_array(zend_op_array *op_array, int optimizations);
402 int pass_two(zend_op_array *op_array);
403 zend_brk_cont_element *get_next_brk_cont_element(zend_op_array *op_array);
b6197bcf »
2000-02-04 Maintain a state of whether we're compiling and/or executing
404 ZEND_API zend_bool zend_is_compiling(void);
5286b397 »
2000-09-12 Make compile_string() accept a description of the code
405 ZEND_API char *zend_make_compiled_string_description(char *name);
573b4602 »
1999-04-07 Zend Library
406
407 int zendlex(znode *zendlval CLS_DC);
408
409 #define ZEND_NOP 0
410
411 #define ZEND_ADD 1
412 #define ZEND_SUB 2
413 #define ZEND_MUL 3
414 #define ZEND_DIV 4
415 #define ZEND_MOD 5
416 #define ZEND_SL 6
417 #define ZEND_SR 7
418 #define ZEND_CONCAT 8
419 #define ZEND_BW_OR 9
420 #define ZEND_BW_AND 10
421 #define ZEND_BW_XOR 11
422 #define ZEND_BW_NOT 12
423 #define ZEND_BOOL_NOT 13
424 #define ZEND_BOOL_XOR 14
98f02543 »
1999-10-19 - Move IS_IDENTICAL next to IS_EQUAL
425 #define ZEND_IS_IDENTICAL 15
521c8af6 »
2000-03-29 Added !== (is not identical) operator.
426 #define ZEND_IS_NOT_IDENTICAL 16
427 #define ZEND_IS_EQUAL 17
428 #define ZEND_IS_NOT_EQUAL 18
429 #define ZEND_IS_SMALLER 19
430 #define ZEND_IS_SMALLER_OR_EQUAL 20
431 #define ZEND_CAST 21
432 #define ZEND_QM_ASSIGN 22
433
434 #define ZEND_ASSIGN_ADD 23
435 #define ZEND_ASSIGN_SUB 24
436 #define ZEND_ASSIGN_MUL 25
437 #define ZEND_ASSIGN_DIV 26
438 #define ZEND_ASSIGN_MOD 27
439 #define ZEND_ASSIGN_SL 28
440 #define ZEND_ASSIGN_SR 29
441 #define ZEND_ASSIGN_CONCAT 30
442 #define ZEND_ASSIGN_BW_OR 31
443 #define ZEND_ASSIGN_BW_AND 32
444 #define ZEND_ASSIGN_BW_XOR 33
573b4602 »
1999-04-07 Zend Library
445
521c8af6 »
2000-03-29 Added !== (is not identical) operator.
446 #define ZEND_PRE_INC 34
447 #define ZEND_PRE_DEC 35
448 #define ZEND_POST_INC 36
449 #define ZEND_POST_DEC 37
450
451 #define ZEND_ASSIGN 38
452 #define ZEND_ASSIGN_REF 39
453
454 #define ZEND_ECHO 40
455 #define ZEND_PRINT 41
456
457 #define ZEND_JMP 42
458 #define ZEND_JMPZ 43
459 #define ZEND_JMPNZ 44
460 #define ZEND_JMPZNZ 45
461 #define ZEND_JMPZ_EX 46
462 #define ZEND_JMPNZ_EX 47
463 #define ZEND_CASE 48
464 #define ZEND_SWITCH_FREE 49
465 #define ZEND_BRK 50
466 #define ZEND_CONT 51
467 #define ZEND_BOOL 52
468
469 #define ZEND_INIT_STRING 53
470 #define ZEND_ADD_CHAR 54
471 #define ZEND_ADD_STRING 55
472 #define ZEND_ADD_VAR 56
473
474 #define ZEND_BEGIN_SILENCE 57
475 #define ZEND_END_SILENCE 58
476
477 #define ZEND_INIT_FCALL_BY_NAME 59
478 #define ZEND_DO_FCALL 60
479 #define ZEND_DO_FCALL_BY_NAME 61
480 #define ZEND_RETURN 62
481
482 #define ZEND_RECV 63
483 #define ZEND_RECV_INIT 64
573b4602 »
1999-04-07 Zend Library
484
521c8af6 »
2000-03-29 Added !== (is not identical) operator.
485 #define ZEND_SEND_VAL 65
486 #define ZEND_SEND_VAR 66
487 #define ZEND_SEND_REF 67
573b4602 »
1999-04-07 Zend Library
488
521c8af6 »
2000-03-29 Added !== (is not identical) operator.
489 #define ZEND_NEW 68
490 #define ZEND_JMP_NO_CTOR 69
491 #define ZEND_FREE 70
573b4602 »
1999-04-07 Zend Library
492
521c8af6 »
2000-03-29 Added !== (is not identical) operator.
493 #define ZEND_INIT_ARRAY 71
494 #define ZEND_ADD_ARRAY_ELEMENT 72
573b4602 »
1999-04-07 Zend Library
495
521c8af6 »
2000-03-29 Added !== (is not identical) operator.
496 #define ZEND_INCLUDE_OR_EVAL 73
573b4602 »
1999-04-07 Zend Library
497
521c8af6 »
2000-03-29 Added !== (is not identical) operator.
498 #define ZEND_UNSET_VAR 74
499 #define ZEND_UNSET_DIM_OBJ 75
500 #define ZEND_ISSET_ISEMPTY 76
573b4602 »
1999-04-07 Zend Library
501
521c8af6 »
2000-03-29 Added !== (is not identical) operator.
502 #define ZEND_FE_RESET 77
503 #define ZEND_FE_FETCH 78
573b4602 »
1999-04-07 Zend Library
504
521c8af6 »
2000-03-29 Added !== (is not identical) operator.
505 #define ZEND_EXIT 79
573b4602 »
1999-04-07 Zend Library
506
507
7fa17e8e »
2000-02-14 - Put in the infrastructure for the unset() fix. Right now it has the…
508 /* the following 18 opcodes are 6 groups of 3 opcodes each, and must
573b4602 »
1999-04-07 Zend Library
509 * remain in that order!
510 */
521c8af6 »
2000-03-29 Added !== (is not identical) operator.
511 #define ZEND_FETCH_R 80
512 #define ZEND_FETCH_DIM_R 81
513 #define ZEND_FETCH_OBJ_R 82
514 #define ZEND_FETCH_W 83
515 #define ZEND_FETCH_DIM_W 84
516 #define ZEND_FETCH_OBJ_W 85
517 #define ZEND_FETCH_RW 86
518 #define ZEND_FETCH_DIM_RW 87
519 #define ZEND_FETCH_OBJ_RW 88
520 #define ZEND_FETCH_IS 89
521 #define ZEND_FETCH_DIM_IS 90
522 #define ZEND_FETCH_OBJ_IS 91
523 #define ZEND_FETCH_FUNC_ARG 92
524 #define ZEND_FETCH_DIM_FUNC_ARG 93
525 #define ZEND_FETCH_OBJ_FUNC_ARG 94
526 #define ZEND_FETCH_UNSET 95
527 #define ZEND_FETCH_DIM_UNSET 96
528 #define ZEND_FETCH_OBJ_UNSET 97
529
530 #define ZEND_FETCH_DIM_TMP_VAR 98
531 #define ZEND_FETCH_CONSTANT 99
532
533 #define ZEND_DECLARE_FUNCTION_OR_CLASS 100
534
535 #define ZEND_EXT_STMT 101
536 #define ZEND_EXT_FCALL_BEGIN 102
537 #define ZEND_EXT_FCALL_END 103
538 #define ZEND_EXT_NOP 104
539
540 #define ZEND_TICKS 105
fafbf6d8 »
2000-01-24 - Implement declare() with declarables framework
541
d0fbddcc »
2000-10-29 Fix a corruption bug, when erroneously allowing to send non-variables…
542 #define ZEND_SEND_VAR_NO_REF 106
543
573b4602 »
1999-04-07 Zend Library
544 /* end of block */
545
546
547
548
549 /* global/local fetches */
550 #define ZEND_FETCH_GLOBAL 0
551 #define ZEND_FETCH_LOCAL 1
552 #define ZEND_FETCH_STATIC 2
553
554 /* var status for backpatching */
06d04d15 »
1999-09-29 - Fix SEND_VAR problem after fetch'ing a variable and not knowing the…
555 #define BP_VAR_R 0
556 #define BP_VAR_W 1
557 #define BP_VAR_RW 2
558 #define BP_VAR_IS 3
559 #define BP_VAR_NA 4 /* if not applicable */
560 #define BP_VAR_FUNC_ARG 5
7fa17e8e »
2000-02-14 - Put in the infrastructure for the unset() fix. Right now it has the…
561 #define BP_VAR_UNSET 6
573b4602 »
1999-04-07 Zend Library
562
563
564 #define ZEND_INTERNAL_FUNCTION 1
565 #define ZEND_USER_FUNCTION 2
566 #define ZEND_OVERLOADED_FUNCTION 3
2493f680 »
1999-04-27 * Fix debugger+interactive mode bug
567 #define ZEND_EVAL_CODE 4
573b4602 »
1999-04-07 Zend Library
568
569 #define ZEND_INTERNAL_CLASS 1
570 #define ZEND_USER_CLASS 2
571
572 #define ZEND_EVAL (1<<0)
573 #define ZEND_INCLUDE (1<<1)
9cc70442 »
2000-03-10 - Cleanup old IMPORT stuff
574 #define ZEND_INCLUDE_ONCE (1<<2)
67b4b3a6 »
1999-12-23 - require() of a dynamic expression now has the standard require() se…
575 #define ZEND_REQUIRE (1<<3)
c06692e9 »
2000-08-09 The patch we promised - redesigned the compilation/execution API:
576 #define ZEND_REQUIRE_ONCE (1<<4)
573b4602 »
1999-04-07 Zend Library
577
578 #define ZEND_ISSET (1<<0)
579 #define ZEND_ISEMPTY (1<<1)
580
581 #define ZEND_CT (1<<0)
582 #define ZEND_RT (1<<1)
583
584
58153dfe »
1999-11-26 - Improve the file handle closing code
585 #define ZEND_HANDLE_FILENAME 0
586 #define ZEND_HANDLE_FD 1
587 #define ZEND_HANDLE_FP 2
588 #define ZEND_HANDLE_STDIOSTREAM 3
589 #define ZEND_HANDLE_FSTREAM 4
573b4602 »
1999-04-07 Zend Library
590
d894cf44 »
1999-07-08 Support definition of classes that are derived from classes that are …
591 #define ZEND_DECLARE_CLASS 1
592 #define ZEND_DECLARE_FUNCTION 2
593 #define ZEND_DECLARE_INHERITED_CLASS 3
b0bfa458 »
1999-05-15 * Fix all hash checks that checked Bucket.arKey for NULL, when it was…
594
1250c43a »
1999-05-22 * Add struct name to all typedef's so that they can be debugged with …
595 #define ZEND_FETCH_STANDARD 0
cccd2445 »
1999-07-10 Get rid of AiCount completely
596 #define ZEND_FETCH_ADD_LOCK 1
1250c43a »
1999-05-22 * Add struct name to all typedef's so that they can be debugged with …
597
741b8161 »
1999-05-28 * Support getThis() for internal functions.
598 #define ZEND_MEMBER_FUNC_CALL 1<<0
599 #define ZEND_CTOR_CALL 1<<1
600
8d908256 »
2000-11-27 - Allow passing references which are returned from functions and new
601 #define ZEND_ARG_SEND_BY_REF (1<<0)
602 #define ZEND_ARG_COMPILE_TIME_BOUND (1<<1)
6ec1acbe »
1999-07-09 Phase 3:
603
59d5462a »
1999-09-28 - Stop using the locking mechanism and start using refcount.
604 #define AI_USE_PTR(ai) \
605 if ((ai).ptr_ptr) { \
606 (ai).ptr = *((ai).ptr_ptr); \
607 (ai).ptr_ptr = &((ai).ptr); \
608 } else { \
609 (ai).ptr = NULL; \
610 }
611
6d988ec6 »
1999-11-03 - Add support for BYREF_FORCE_REST
612 /* Lost In Stupid Parentheses */
613 #define ARG_SHOULD_BE_SENT_BY_REF(offset, conduct_check, arg_types) \
614 ( \
615 conduct_check \
616 && arg_types \
617 && \
618 ( \
619 ( \
620 offset<=arg_types[0] \
621 && arg_types[offset]==BYREF_FORCE \
622 ) \
623 || ( \
624 offset>=arg_types[0] \
625 && arg_types[arg_types[0]]==BYREF_FORCE_REST \
626 ) \
627 ) \
628 )
629
ced9cee1 »
1999-12-15 - Implement return by reference:
630 #define ZEND_RETURN_VAL 0
631 #define ZEND_RETURN_REF 1
632
ad115d20 »
2000-01-29 Fix require()
633 END_EXTERN_C()
634
a6172174 »
2000-07-03 Replace macros which begin with an underscore through an appropiately
635 #endif /* ZEND_COMPILE_H */
Something went wrong with that request. Please try again.