From: Remi Collet Date: Thu, 20 Mar 2014 14:18:41 +0000 (+0100) Subject: add info: empty strings are interned X-Git-Tag: PRE_PHPNG_MERGE~453^2~2^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7f7c84d64f2cb6a1d8ac84d15788310eac580289;p=php add info: empty strings are interned --- diff --git a/UPGRADING.INTERNALS b/UPGRADING.INTERNALS index e8e0982042..474aed55f7 100644 --- a/UPGRADING.INTERNALS +++ b/UPGRADING.INTERNALS @@ -8,6 +8,7 @@ UPGRADE NOTES - PHP X.Y c. POST data handling d. Arginfo changes e. tsrm_virtual_cwd.h moved to zend_virtual_cwd.h + f. empty strings are interned 2. Build system changes a. Unix build system changes @@ -115,6 +116,13 @@ UPGRADE NOTES - PHP X.Y Memory allocation is now managed by emalloc/efree instead of malloc/free. + f. empty strings are interned + + String created using STR_EMPTY_ALLOC() are now interned. + convert_to_string use STR_EMPTY_ALLOC() for zval when IS_NULL. + STR_FREE() shoud be prefered as efree on such strings can raise memory corruption. + + ======================== 2. Build system changes ========================