summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/standard/php_smart_str.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/php_smart_str.h b/ext/standard/php_smart_str.h
index 1c8c418370..e32def2307 100644
--- a/ext/standard/php_smart_str.h
+++ b/ext/standard/php_smart_str.h
@@ -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;