summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikita Popov <nikic@php.net>2014-09-19 23:54:58 +0200
committerNikita Popov <nikic@php.net>2014-09-19 23:54:58 +0200
commit0cd982f15c6d1df4672a927d0404caeb8380c193 (patch)
treeb58d522c9971a7561b36745326e30011b70ff40b
parent31e842472f46d8aa32e2ef316da245f18806589d (diff)
downloadphp-git-0cd982f15c6d1df4672a927d0404caeb8380c193.tar.gz
Make header C++ compatible
-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;