From 7f7c84d64f2cb6a1d8ac84d15788310eac580289 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 20 Mar 2014 15:18:41 +0100 Subject: [PATCH] add info: empty strings are interned --- UPGRADING.INTERNALS | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/UPGRADING.INTERNALS b/UPGRADING.INTERNALS index e8e09820429..474aed55f7d 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 ========================