diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2002-10-06 17:17:38 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2002-10-06 17:17:38 +0000 |
| commit | 6b5575a1010cd919fd4b5458899b346be5204112 (patch) | |
| tree | cb75e9021435f5f18f828afc3b2a0afaacfc282e /ext/session | |
| parent | f32d63a3b31003f07a3b69b5c94aa8e93548ca32 (diff) | |
| download | php-git-6b5575a1010cd919fd4b5458899b346be5204112.tar.gz | |
Code cleanup. Thanks Andi.
Diffstat (limited to 'ext/session')
| -rw-r--r-- | ext/session/session.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ext/session/session.c b/ext/session/session.c index ac688ac830..c5741085f8 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -1011,10 +1011,8 @@ PHPAPI void php_session_start(TSRMLS_D) 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}; |
