com php-src: add info: empty strings are interned: UPGRADING.INTERNALS
| From: | Remi Collet | Date: | Thu, 20 Mar 2014 14:18:41 +0000 |
| Subject: | com php-src: add info: empty strings are interned: UPGRADING.INTERNALS | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-76558@lists.php.net to get a copy of this message | ||
Commit: 7f7c84d64f2cb6a1d8ac84d15788310eac580289
Author: Remi Collet <remi@php.net> Thu, 20 Mar 2014 15:18:41 +0100
Parents: e1fe76f28ae4d93306c53477968311924f83bb79
Branches: PHP-5.6 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=7f7c84d64f2cb6a1d8ac84d15788310eac580289
Log:
add info: empty strings are interned
Changed paths:
M UPGRADING.INTERNALS
Diff:
diff --git a/UPGRADING.INTERNALS b/UPGRADING.INTERNALS
index e8e0982..474aed5 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
========================