STR_REALLOC definition in 5.6+

From: Date: Thu, 04 Sep 2014 12:00:28 +0000
Subject: STR_REALLOC definition in 5.6+
Groups: php.internals 
Request: Send a blank email to internals+get-77052@lists.php.net to get a copy of this message
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, 5.0+ But should be defined as str_erealloc What do you think ? Probably too late, as if we fix this definition, it will portable in all versions > 5.0 except 5.6.0 :( Remi.

« previous php.internals (#77052) next »