mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Better hot/cold code splitting
This commit is contained in:
parent
84333cad67
commit
1df9f238fe
7 changed files with 63 additions and 52 deletions
|
@ -1650,17 +1650,3 @@ ZEND_API int zend_set_local_var_str(const char *name, size_t len, zval *value, i
|
|||
return FAILURE;
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
ZEND_API int zend_forbid_dynamic_call(const char *func_name) /* {{{ */
|
||||
{
|
||||
zend_execute_data *ex = EG(current_execute_data);
|
||||
ZEND_ASSERT(ex != NULL && ex->func != NULL);
|
||||
|
||||
if (ZEND_CALL_INFO(ex) & ZEND_CALL_DYNAMIC) {
|
||||
zend_error(E_WARNING, "Cannot call %s dynamically", func_name);
|
||||
return FAILURE;
|
||||
}
|
||||
|
||||
return SUCCESS;
|
||||
}
|
||||
/* }}} */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue