mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Get rid of ELS_*(), and use TSRMLS_*() instead.
This patch is *bound* to break some files, as I must have had typos somewhere. If you use any uncommon extension, please try to build it...
This commit is contained in:
parent
736b4ae43d
commit
2c254ba762
23 changed files with 251 additions and 259 deletions
|
@ -426,7 +426,7 @@ ZEND_FUNCTION(define)
|
|||
c.flags = case_sensitive; /* non persistent */
|
||||
c.name = zend_strndup((*var)->value.str.val, (*var)->value.str.len);
|
||||
c.name_len = (*var)->value.str.len+1;
|
||||
if (zend_register_constant(&c ELS_CC) == SUCCESS) {
|
||||
if (zend_register_constant(&c TSRMLS_CC) == SUCCESS) {
|
||||
RETURN_TRUE;
|
||||
} else {
|
||||
RETURN_FALSE;
|
||||
|
@ -945,7 +945,7 @@ ZEND_FUNCTION(create_function)
|
|||
sprintf(eval_code, "function " LAMBDA_TEMP_FUNCNAME "(%s){%s}", Z_STRVAL_PP(z_function_args), Z_STRVAL_PP(z_function_code));
|
||||
|
||||
eval_name = zend_make_compiled_string_description("runtime-created function");
|
||||
retval = zend_eval_string(eval_code, NULL, eval_name CLS_CC ELS_CC);
|
||||
retval = zend_eval_string(eval_code, NULL, eval_name CLS_CC TSRMLS_CC);
|
||||
efree(eval_code);
|
||||
efree(eval_name);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue