2004-10-22 21:42:14 +00:00
|
|
|
{%DEFINES%}
|
|
|
|
|
2015-03-13 00:28:21 +00:00
|
|
|
ZEND_API void {%EXECUTOR_NAME%}_ex(zend_execute_data *ex)
|
2012-05-26 15:53:13 +00:00
|
|
|
{
|
|
|
|
DCL_OPLINE
|
|
|
|
|
|
|
|
{%HELPER_VARS%}
|
|
|
|
|
|
|
|
{%INTERNAL_LABELS%}
|
|
|
|
|
|
|
|
LOAD_OPLINE();
|
|
|
|
|
2004-10-22 21:42:14 +00:00
|
|
|
while (1) {
|
|
|
|
{%ZEND_VM_CONTINUE_LABEL%}
|
|
|
|
{%ZEND_VM_DISPATCH%} {
|
2007-11-20 09:51:12 +00:00
|
|
|
{%INTERNAL_EXECUTOR%}
|
2004-10-22 21:42:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2015-04-02 10:07:17 +00:00
|
|
|
zend_error_noreturn(E_CORE_ERROR, "Arrived at end of main loop which shouldn't happen");
|
2004-10-22 21:42:14 +00:00
|
|
|
}
|
|
|
|
|
2014-12-13 22:06:14 +00:00
|
|
|
ZEND_API void zend_{%EXECUTOR_NAME%}(zend_op_array *op_array, zval *return_value)
|
2012-05-26 15:53:13 +00:00
|
|
|
{
|
2014-06-26 19:51:14 +00:00
|
|
|
zend_execute_data *execute_data;
|
|
|
|
|
2014-02-10 06:04:30 +00:00
|
|
|
if (EG(exception) != NULL) {
|
2012-11-04 04:48:35 +00:00
|
|
|
return;
|
2014-06-26 19:51:14 +00:00
|
|
|
}
|
|
|
|
|
2014-11-28 07:33:03 +00:00
|
|
|
execute_data = zend_vm_stack_push_call_frame(ZEND_CALL_TOP_CODE,
|
2015-04-23 09:16:37 +00:00
|
|
|
(zend_function*)op_array, 0, zend_get_called_scope(EG(current_execute_data)), zend_get_this_object(EG(current_execute_data)));
|
2014-07-07 11:50:44 +00:00
|
|
|
if (EG(current_execute_data)) {
|
2014-12-13 22:06:14 +00:00
|
|
|
execute_data->symbol_table = zend_rebuild_symbol_table();
|
2014-06-26 19:51:14 +00:00
|
|
|
} else {
|
2014-07-04 14:03:45 +00:00
|
|
|
execute_data->symbol_table = &EG(symbol_table);
|
2014-06-26 19:51:14 +00:00
|
|
|
}
|
|
|
|
EX(prev_execute_data) = EG(current_execute_data);
|
2014-12-13 22:06:14 +00:00
|
|
|
i_init_execute_data(execute_data, op_array, return_value);
|
|
|
|
zend_{%EXECUTOR_NAME%}_ex(execute_data);
|
2015-05-18 09:44:40 +00:00
|
|
|
zend_vm_stack_free_call_frame(execute_data);
|
2012-05-26 15:53:13 +00:00
|
|
|
}
|
|
|
|
|
2004-10-22 21:42:14 +00:00
|
|
|
{%EXTERNAL_EXECUTOR%}
|
|
|
|
|
2007-07-21 00:35:15 +00:00
|
|
|
void {%INITIALIZER_NAME%}(void)
|
2004-10-22 21:42:14 +00:00
|
|
|
{
|
|
|
|
{%EXTERNAL_LABELS%}
|
|
|
|
}
|