Skip to content

Commit e250ce6

Browse files
committed
Merge branch 'PHP-7.4' into PHP-8.0
* PHP-7.4: Fix persistent smart_str allocation
2 parents 5e3eaf1 + af8fcce commit e250ce6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_smart_str.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ ZEND_API void ZEND_FASTCALL smart_str_erealloc(smart_str *str, size_t len)
4343
ZEND_API void ZEND_FASTCALL smart_str_realloc(smart_str *str, size_t len)
4444
{
4545
if (UNEXPECTED(!str->s)) {
46-
str->a = len <= SMART_STR_START_SIZE
46+
str->a = len <= SMART_STR_START_LEN
4747
? SMART_STR_START_LEN
4848
: SMART_STR_NEW_LEN(len);
4949
str->s = zend_string_alloc(str->a, 1);

0 commit comments

Comments
 (0)