HashTable *static_members;
HashTable constants_table;
zend_function_entry *builtin_functions;
- struct _zend_class_entry *namespace;
+ struct _zend_class_entry *ns;
union _zend_function *constructor;
union _zend_function *destructor;
op_array.fn_flags = fn_flags;
op_array.scope = CG(active_class_entry);
- op_array.namespace = CG(active_namespace);
+ op_array.ns = CG(active_namespace);
if (is_method) {
char *short_class_name = CG(active_class_entry)->name;
ns->constructor = emalloc(sizeof(zend_op_array));
init_op_array((zend_op_array *)ns->constructor, ZEND_USER_FUNCTION, INITIAL_OP_ARRAY_SIZE TSRMLS_CC);
- ns->constructor->op_array.namespace = CG(active_namespace);
+ ns->constructor->op_array.ns = CG(active_namespace);
ns_token->u.op_array = CG(active_op_array);
void zend_do_end_namespace(znode *ns_token TSRMLS_DC)
{
- zend_namespace *ns = CG(active_op_array)->namespace;
+ zend_namespace *ns = CG(active_op_array)->ns;
int handle = CG(handle_op_arrays);
pass_two(CG(active_op_array) TSRMLS_CC);
CG(handle_op_arrays) = handle;
- CG(active_op_array)->namespace = CG(active_namespace);
+ CG(active_op_array)->ns = CG(active_namespace);
CG(active_namespace) = ns;
CG(active_op_array) = ns_token->u.op_array;
ce->create_object = NULL;
}
- ce->namespace = CG(active_namespace);
+ ce->ns = CG(active_namespace);
}
/*
char *function_name; /* MUST be the third element of this struct! */
zend_class_entry *scope; /* MUST be the fourth element of this struct! */
zend_uint fn_flags; /* MUST be the fifth element of this struct! */
- zend_namespace *namespace;
+ zend_namespace *ns;
zend_uint *refcount;
char *function_name; /* MUST be the third element of this struct! */
zend_class_entry *scope; /* MUST be the fourth element of this struct! */
zend_uint fn_flags; /* MUST be the fifth element of this struct! */
- zend_namespace *namespace;
+ zend_namespace *ns;
void (*handler)(INTERNAL_FUNCTION_PARAMETERS);
} zend_internal_function;
char *function_name;
zend_class_entry *scope;
zend_uint fn_flags;
- zend_namespace *namespace;
+ zend_namespace *ns;
} common;
zend_op_array op_array;
*/
EX(function_state).function_symbol_table = NULL;
#endif
- if(EG(active_namespace) != op_array->namespace) {
- zend_switch_namespace(op_array->namespace TSRMLS_CC);
+ if(EG(active_namespace) != op_array->ns) {
+ zend_switch_namespace(op_array->ns TSRMLS_CC);
}
while (1) {
init_op_array(op_array, ZEND_USER_FUNCTION, INITIAL_OP_ARRAY_SIZE TSRMLS_CC);
CG(in_compilation) = 1;
CG(active_op_array) = op_array;
- op_array->namespace = CG(active_namespace);
+ op_array->ns = CG(active_namespace);
compiler_result = zendparse(TSRMLS_C);
zend_do_return(&retval_znode, 0 TSRMLS_CC);
CG(in_compilation) = original_in_compilation;
} else {
init_op_array(op_array, ZEND_EVAL_CODE, INITIAL_OP_ARRAY_SIZE TSRMLS_CC);
CG(active_op_array) = op_array;
- op_array->namespace = CG(active_namespace);
+ op_array->ns = CG(active_namespace);
BEGIN(ST_IN_SCRIPTING);
compiler_result = zendparse(TSRMLS_C);
op_array->arg_types = NULL;
op_array->scope = NULL;
- op_array->namespace = NULL;
+ op_array->ns = NULL;
op_array->brk_cont_array = NULL;
op_array->last_brk_cont = 0;