summaryrefslogtreecommitdiff
path: root/ext/session/mod_user_class.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2013-12-26 14:47:13 +0400
committerDmitry Stogov <dmitry@zend.com>2013-12-26 14:47:13 +0400
commit03a37de9b3c4b9dc02aeeb5c5331ff89eac62515 (patch)
treeaf2bddce7eea0c93b06e1bbfd6c9b06b2b7e43db /ext/session/mod_user_class.c
parent0ff0e82f26fcae352007c08873ab408c12948ad9 (diff)
downloadphp-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.c2
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;
}
/* }}} */