Lines Matching refs:ex

599 	zend_execute_data *ex = EG(current_execute_data);  in zend_get_executed_filename()  local
601 while (ex && (!ex->func || !ZEND_USER_CODE(ex->func->type))) { in zend_get_executed_filename()
602 ex = ex->prev_execute_data; in zend_get_executed_filename()
604 if (ex) { in zend_get_executed_filename()
605 return ZSTR_VAL(ex->func->op_array.filename); in zend_get_executed_filename()
614 zend_execute_data *ex = EG(current_execute_data); in zend_get_executed_filename_ex() local
616 while (ex && (!ex->func || !ZEND_USER_CODE(ex->func->type))) { in zend_get_executed_filename_ex()
617 ex = ex->prev_execute_data; in zend_get_executed_filename_ex()
619 if (ex) { in zend_get_executed_filename_ex()
620 return ex->func->op_array.filename; in zend_get_executed_filename_ex()
629 zend_execute_data *ex = EG(current_execute_data); in zend_get_executed_lineno() local
631 while (ex && (!ex->func || !ZEND_USER_CODE(ex->func->type))) { in zend_get_executed_lineno()
632 ex = ex->prev_execute_data; in zend_get_executed_lineno()
634 if (ex) { in zend_get_executed_lineno()
635 if (!ex->opline) { in zend_get_executed_lineno()
637 return ex->func->op_array.opcodes[0].lineno; in zend_get_executed_lineno()
639 if (EG(exception) && ex->opline->opcode == ZEND_HANDLE_EXCEPTION && in zend_get_executed_lineno()
640 ex->opline->lineno == 0 && EG(opline_before_exception)) { in zend_get_executed_lineno()
643 return ex->opline->lineno; in zend_get_executed_lineno()
652 zend_execute_data *ex = EG(current_execute_data); in zend_get_executed_scope() local
655 if (!ex) { in zend_get_executed_scope()
657 } else if (ex->func && (ZEND_USER_CODE(ex->func->type) || ex->func->common.scope)) { in zend_get_executed_scope()
658 return ex->func->common.scope; in zend_get_executed_scope()
660 ex = ex->prev_execute_data; in zend_get_executed_scope()
1189 ZEND_API zend_class_entry *zend_get_called_scope(zend_execute_data *ex) /* {{{ */ in zend_get_called_scope() argument
1191 while (ex) { in zend_get_called_scope()
1192 if (Z_TYPE(ex->This) == IS_OBJECT) { in zend_get_called_scope()
1193 return Z_OBJCE(ex->This); in zend_get_called_scope()
1194 } else if (Z_CE(ex->This)) { in zend_get_called_scope()
1195 return Z_CE(ex->This); in zend_get_called_scope()
1196 } else if (ex->func) { in zend_get_called_scope()
1197 if (ex->func->type != ZEND_INTERNAL_FUNCTION || ex->func->common.scope) { in zend_get_called_scope()
1201 ex = ex->prev_execute_data; in zend_get_called_scope()
1207 ZEND_API zend_object *zend_get_this_object(zend_execute_data *ex) /* {{{ */ in zend_get_this_object() argument
1209 while (ex) { in zend_get_this_object()
1210 if (Z_TYPE(ex->This) == IS_OBJECT) { in zend_get_this_object()
1211 return Z_OBJ(ex->This); in zend_get_this_object()
1212 } else if (ex->func) { in zend_get_this_object()
1213 if (ex->func->type != ZEND_INTERNAL_FUNCTION || ex->func->common.scope) { in zend_get_this_object()
1217 ex = ex->prev_execute_data; in zend_get_this_object()
1677 zend_execute_data *ex; in zend_rebuild_symbol_table() local
1681 ex = EG(current_execute_data); in zend_rebuild_symbol_table()
1682 while (ex && (!ex->func || !ZEND_USER_CODE(ex->func->common.type))) { in zend_rebuild_symbol_table()
1683 ex = ex->prev_execute_data; in zend_rebuild_symbol_table()
1685 if (!ex) { in zend_rebuild_symbol_table()
1688 if (ZEND_CALL_INFO(ex) & ZEND_CALL_HAS_SYMBOL_TABLE) { in zend_rebuild_symbol_table()
1689 return ex->symbol_table; in zend_rebuild_symbol_table()
1692 ZEND_ADD_CALL_FLAG(ex, ZEND_CALL_HAS_SYMBOL_TABLE); in zend_rebuild_symbol_table()
1694 symbol_table = ex->symbol_table = *(--EG(symtable_cache_ptr)); in zend_rebuild_symbol_table()
1695 if (!ex->func->op_array.last_var) { in zend_rebuild_symbol_table()
1698 zend_hash_extend(symbol_table, ex->func->op_array.last_var, 0); in zend_rebuild_symbol_table()
1700 symbol_table = ex->symbol_table = zend_new_array(ex->func->op_array.last_var); in zend_rebuild_symbol_table()
1701 if (!ex->func->op_array.last_var) { in zend_rebuild_symbol_table()
1707 if (EXPECTED(ex->func->op_array.last_var)) { in zend_rebuild_symbol_table()
1708 zend_string **str = ex->func->op_array.vars; in zend_rebuild_symbol_table()
1709 zend_string **end = str + ex->func->op_array.last_var; in zend_rebuild_symbol_table()
1710 zval *var = ZEND_CALL_VAR_NUM(ex, 0); in zend_rebuild_symbol_table()