[PHP-DEV] STR_REALLOC definition in 5.6+

2014-09-04 Thread Remi Collet
For now: #define STR_REALLOC(ptr, size) \ ptr = (char *) erealloc(ptr, size); Dealing with https://github.com/phalcon/cphalcon/pull/2772 I switch from realloc to str_realloc. But this is not portable (str_realloc is 5.6+ only) STR_REALLOC should be better, as portable,

Re: [PHP-DEV] STR_REALLOC definition in 5.6+

2014-09-04 Thread Nikita Popov
On Thu, Sep 4, 2014 at 2:00 PM, Remi Collet r...@famillecollet.com wrote: For now: #define STR_REALLOC(ptr, size) \ ptr = (char *) erealloc(ptr, size); Dealing with https://github.com/phalcon/cphalcon/pull/2772 I switch from realloc to str_realloc. But this is