Skip to content

Commit

Permalink
Code cleanup. Thanks Andi.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilia Alshanetsky committed Oct 6, 2002
1 parent f32d63a commit 6b5575a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ext/session/session.c
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down

0 comments on commit 6b5575a

Please sign in to comment.