diff options
| author | Nikita Popov <nikic@php.net> | 2013-09-13 18:45:02 +0200 |
|---|---|---|
| committer | Nikita Popov <nikic@php.net> | 2013-09-13 19:42:10 +0200 |
| commit | 96b1c2145c2cd5e616dea191648c2d73af0239c9 (patch) | |
| tree | c9c8ae54ec95874143310c11f05337d7b7de06ad /Zend/zend_variables.c | |
| parent | d2950ac2791cd03559a58e78f5cd626283b9ee4d (diff) | |
| download | php-git-96b1c2145c2cd5e616dea191648c2d73af0239c9.tar.gz | |
Provide more macros for handling of interned strings
* str_erealloc behaves like erealloc for normal strings, but will
use emalloc+memcpy for interned strings.
* str_estrndup behaves like estrndup for normal strings, but will
not copy interned strings.
* str_strndup behaves like zend_strndup for normal strings, but
will not copy interned strings.
* str_efree_rel behaves like efree_rel for normal strings, but
will not free interned strings.
* str_hash will return INTERNED_HASH for interned strings and
compute it using zend_hash_func for normal strings.
Diffstat (limited to 'Zend/zend_variables.c')
| -rw-r--r-- | Zend/zend_variables.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_variables.c b/Zend/zend_variables.c index c0e1849eef..d82e1642e7 100644 --- a/Zend/zend_variables.c +++ b/Zend/zend_variables.c @@ -33,7 +33,7 @@ ZEND_API void _zval_dtor_func(zval *zvalue ZEND_FILE_LINE_DC) case IS_STRING: case IS_CONSTANT: CHECK_ZVAL_STRING_REL(zvalue); - STR_FREE_REL(zvalue->value.str.val); + str_efree_rel(zvalue->value.str.val); break; case IS_ARRAY: case IS_CONSTANT_ARRAY: { |
