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
|
2012-08-26 02:07:01 +08:00
|
|
|
zend_bool original_in_execution;
|
2012-05-26 23:53:13 +08:00
|
|
|
|
|
|
|
{%HELPER_VARS%}
|
|
|
|
|
|
|
|
{%INTERNAL_LABELS%}
|
|
|
|
|
2012-08-26 02:07:01 +08:00
|
|
|
original_in_execution = EG(in_execution);
|
2012-05-26 23:53:13 +08:00
|
|
|
EG(in_execution) = 1;
|
|
|
|
|
|
|
|
LOAD_REGS();
|
|
|
|
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-02-10 14:04:30 +08:00
|
|
|
if (EG(exception) != NULL) {
|
2012-11-04 12:48:35 +08:00
|
|
|
return;
|
|
|
|
}
|
2014-02-12 18:29:51 +08:00
|
|
|
zend_{%EXECUTOR_NAME%}_ex(i_create_execute_data_from_op_array(op_array, return_value, 0 TSRMLS_CC) 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%}
|
|
|
|
}
|