cvs: php4 /ext/session session.c
| From: | Ilia Alshanetsky | Date: | Sun, 06 Oct 2002 17:17:38 +0000 |
| Subject: | cvs: php4 /ext/session session.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-14624@lists.php.net to get a copy of this message | ||
iliaa Sun Oct 6 13:17:38 2002 EDT
Modified files:
/php4/ext/session session.c
Log:
Code cleanup. Thanks Andi.
Index: php4/ext/session/session.c
diff -u php4/ext/session/session.c:1.332 php4/ext/session/session.c:1.333
--- php4/ext/session/session.c:1.332 Thu Oct 3 11:33:00 2002
+++ php4/ext/session/session.c Sun Oct 6 13:17:38 2002
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: session.c,v 1.332 2002/10/03 15:33:00 sas Exp $ */
+/* $Id: session.c,v 1.333 2002/10/06 17:17:38 iliaa Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -1011,10 +1011,8 @@
php_session_send_cookie(TSRMLS_C);
}
- /* check if SID constant exists, if it does destroy it. */
- if (zend_hash_find(EG(zend_constants), "sid", 4, (void **) &c) != FAILURE) {
- zend_hash_del(EG(zend_constants), "sid", 4);
- }
+ /* if the SID constant exists, destroy it. */
+ zend_hash_del(EG(zend_constants), "sid", sizeof("sid"));
if (define_sid) {
smart_str var = {0};