]> granicus.if.org Git - php/commitdiff
Make header C++ compatible
authorNikita Popov <nikic@php.net>
Fri, 19 Sep 2014 21:54:58 +0000 (23:54 +0200)
committerNikita Popov <nikic@php.net>
Fri, 19 Sep 2014 21:54:58 +0000 (23:54 +0200)
ext/standard/php_smart_str.h

index 1c8c41837030bf7bbc016cc3841be8da2ac322c0..e32def230710d879f63abc49c3c360872fe80daf 100644 (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;