diff options
author | Dmitry Stogov <dmitry@zend.com> | 2013-12-26 14:47:13 +0400 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2013-12-26 14:47:13 +0400 |
commit | 03a37de9b3c4b9dc02aeeb5c5331ff89eac62515 (patch) | |
tree | af2bddce7eea0c93b06e1bbfd6c9b06b2b7e43db /ext/session/mod_user_class.c | |
parent | 0ff0e82f26fcae352007c08873ab408c12948ad9 (diff) | |
download | php-git-03a37de9b3c4b9dc02aeeb5c5331ff89eac62515.tar.gz |
Improved empty string handling. Now ZE uses an interned string instead of allocation new empty string each time. (Some extensions might need to be fixed using str_efree() instead of efree() to support interned strings).
Diffstat (limited to 'ext/session/mod_user_class.c')
-rw-r--r-- | ext/session/mod_user_class.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/session/mod_user_class.c b/ext/session/mod_user_class.c index ea53af9ebe..3f97f7c830 100644 --- a/ext/session/mod_user_class.c +++ b/ext/session/mod_user_class.c @@ -86,7 +86,7 @@ PHP_METHOD(SessionHandler, read) } RETVAL_STRINGL(val, val_len, 1); - efree(val); + str_efree(val); return; } /* }}} */ |