mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Use per-request heap instead of system one
This commit is contained in:
parent
8e01026b82
commit
cf67a421e9
7 changed files with 14 additions and 14 deletions
|
@ -1025,7 +1025,7 @@ ZEND_API int zend_eval_stringl(char *str, size_t str_len, zval *retval_ptr, char
|
|||
int retval;
|
||||
|
||||
if (retval_ptr) {
|
||||
ZVAL_NEW_STR(&pv, zend_string_alloc(str_len + sizeof("return ;")-1, 1));
|
||||
ZVAL_NEW_STR(&pv, zend_string_alloc(str_len + sizeof("return ;")-1, 0));
|
||||
memcpy(Z_STRVAL(pv), "return ", sizeof("return ") - 1);
|
||||
memcpy(Z_STRVAL(pv) + sizeof("return ") - 1, str, str_len);
|
||||
Z_STRVAL(pv)[Z_STRLEN(pv) - 1] = ';';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue