mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix invalid read in zend_use_undefined_constant()
This commit is contained in:
parent
251c1b1a44
commit
10900a89ad
1 changed files with 2 additions and 1 deletions
|
@ -568,8 +568,9 @@ ZEND_API int zend_use_undefined_constant(zend_string *name, zend_ast_attr attr,
|
|||
if (EG(exception)) {
|
||||
return FAILURE;
|
||||
} else {
|
||||
zend_string *result_str = zend_string_init(actual, actual_len, 0);
|
||||
zval_ptr_dtor_nogc(result);
|
||||
ZVAL_STRINGL(result, actual, actual_len);
|
||||
ZVAL_NEW_STR(result, result_str);
|
||||
}
|
||||
}
|
||||
return SUCCESS;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue