mirror of
https://github.com/php/php-src.git
synced 2026-04-04 22:52:40 +02:00
Make header C++ compatible
This commit is contained in:
@@ -66,7 +66,7 @@ static zend_always_inline size_t smart_str_alloc(smart_str *str, size_t len, zen
|
||||
newlen = str->s->len + len;
|
||||
if (newlen >= str->a) {
|
||||
str->a = newlen + SMART_STR_PREALLOC;
|
||||
str->s = perealloc(str->s, _STR_HEADER_SIZE + str->a + 1, persistent);
|
||||
str->s = (zend_string *) perealloc(str->s, _STR_HEADER_SIZE + str->a + 1, persistent);
|
||||
}
|
||||
}
|
||||
return newlen;
|
||||
|
||||
Reference in New Issue
Block a user