mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Merge branch 'PHP-7.4' into PHP-8.0
* PHP-7.4: Fix persistent smart_str allocation
This commit is contained in:
commit
e250ce64e6
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ ZEND_API void ZEND_FASTCALL smart_str_erealloc(smart_str *str, size_t len)
|
|||
ZEND_API void ZEND_FASTCALL smart_str_realloc(smart_str *str, size_t len)
|
||||
{
|
||||
if (UNEXPECTED(!str->s)) {
|
||||
str->a = len <= SMART_STR_START_SIZE
|
||||
str->a = len <= SMART_STR_START_LEN
|
||||
? SMART_STR_START_LEN
|
||||
: SMART_STR_NEW_LEN(len);
|
||||
str->s = zend_string_alloc(str->a, 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue