2004-10-23 05:42:14 +08:00
|
|
|
{%DEFINES%}
|
|
|
|
|
2012-05-26 23:53:13 +08:00
|
|
|
ZEND_API void {%EXECUTOR_NAME%}_ex(zend_execute_data *execute_data TSRMLS_DC)
|
|
|
|
{
|
|
|
|
DCL_OPLINE
|
|
|
|
|
|
|
|
{%HELPER_VARS%}
|
|
|
|
|
|
|
|
{%INTERNAL_LABELS%}
|
|
|
|
|
|
|
|
LOAD_OPLINE();
|
|
|
|
|
2004-10-23 05:42:14 +08:00
|
|
|
while (1) {
|
|
|
|
{%ZEND_VM_CONTINUE_LABEL%}
|
|
|
|
#ifdef ZEND_WIN32
|
|
|
|
if (EG(timed_out)) {
|
|
|
|
zend_timeout(0);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
{%ZEND_VM_DISPATCH%} {
|
2007-11-20 17:51:12 +08:00
|
|
|
{%INTERNAL_EXECUTOR%}
|
2004-10-23 05:42:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
zend_error_noreturn(E_ERROR, "Arrived at end of main loop which shouldn't happen");
|
|
|
|
}
|
|
|
|
|
2014-02-12 18:29:51 +08:00
|
|
|
ZEND_API void zend_{%EXECUTOR_NAME%}(zend_op_array *op_array, zval *return_value TSRMLS_DC)
|
2012-05-26 23:53:13 +08:00
|
|
|
{
|
2014-06-27 03:51:14 +08:00
|
|
|
zend_execute_data *execute_data;
|
|
|
|
|
2014-02-10 14:04:30 +08:00
|
|
|
if (EG(exception) != NULL) {
|
2012-11-04 12:48:35 +08:00
|
|
|
return;
|
2014-06-27 03:51:14 +08:00
|
|
|
}
|
|
|
|
|
2014-11-28 15:33:03 +08:00
|
|
|
execute_data = zend_vm_stack_push_call_frame(ZEND_CALL_TOP_CODE,
|
2014-10-07 21:12:12 +08:00
|
|
|
(zend_function*)op_array, 0, EG(current_execute_data) ? EG(current_execute_data)->called_scope : NULL, EG(current_execute_data) ? Z_OBJ(EG(current_execute_data)->This) : NULL, NULL TSRMLS_CC);
|
2014-07-07 19:50:44 +08:00
|
|
|
if (EG(current_execute_data)) {
|
|
|
|
execute_data->symbol_table = zend_rebuild_symbol_table(TSRMLS_C);
|
2014-06-27 03:51:14 +08:00
|
|
|
} else {
|
2014-07-04 22:03:45 +08:00
|
|
|
execute_data->symbol_table = &EG(symbol_table);
|
2014-06-27 03:51:14 +08:00
|
|
|
}
|
|
|
|
EX(prev_execute_data) = EG(current_execute_data);
|
2014-10-07 21:12:12 +08:00
|
|
|
i_init_execute_data(execute_data, op_array, return_value TSRMLS_CC);
|
2014-06-27 03:51:14 +08:00
|
|
|
zend_{%EXECUTOR_NAME%}_ex(execute_data TSRMLS_CC);
|
2012-05-26 23:53:13 +08:00
|
|
|
}
|
|
|
|
|
2004-10-23 05:42:14 +08:00
|
|
|
{%EXTERNAL_EXECUTOR%}
|
|
|
|
|
2007-07-21 08:35:15 +08:00
|
|
|
void {%INITIALIZER_NAME%}(void)
|
2004-10-23 05:42:14 +08:00
|
|
|
{
|
|
|
|
{%EXTERNAL_LABELS%}
|
|
|
|
}
|