1
0
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:
Nikita Popov
2014-09-19 23:54:58 +02:00
parent 31e842472f
commit 0cd982f15c

View File

@@ -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;