diff options
author | Sascha Schumann <sas@php.net> | 1999-12-12 14:22:55 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 1999-12-12 14:22:55 +0000 |
commit | 1627a57d968c4c1c76a33019516a1524d083d14a (patch) | |
tree | ae0cfc8d84c4cfc28f9c7f526dbea67a7f4095b9 | |
parent | 591cdd1cfbf918a7875ec63c6ea749669a3f8773 (diff) | |
download | php-git-1627a57d968c4c1c76a33019516a1524d083d14a.tar.gz |
Remove trailing white-spaces
-rw-r--r-- | ext/session/session.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/session/session.c b/ext/session/session.c index 3ff1e46bbc..bbbaff098d 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -1,4 +1,4 @@ -/* +/* +----------------------------------------------------------------------+ | PHP version 4.0 | +----------------------------------------------------------------------+ @@ -287,7 +287,7 @@ PS_SERIALIZER_ENCODE_FUNC(wddx) return SUCCESS; } -PS_SERIALIZER_DECODE_FUNC(wddx) +PS_SERIALIZER_DECODE_FUNC(wddx) { zval *retval; zval **ent; @@ -436,11 +436,11 @@ static void _php_session_save_current_state(PSLS_D) } static char *month_names[] = { - "Jan", "Feb", "Mar", "Apr", "May", "Jun", + "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }; -static char *week_days[] = { +static char *week_days[] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun" }; @@ -660,7 +660,7 @@ static void _php_session_start(PSLS_D) http://yoursite/<session-name>=<session-id>/script.php */ if(!PS(id) && - zend_hash_find(&EG(symbol_table), "REQUEST_URI", + zend_hash_find(&EG(symbol_table), "REQUEST_URI", sizeof("REQUEST_URI"), (void **) &data) == SUCCESS && (*data)->type == IS_STRING && (p = strstr((*data)->value.str.val, PS(session_name))) && @@ -675,7 +675,7 @@ static void _php_session_start(PSLS_D) /* check whether the current request was referred to by an external site which invalidates the previously found id */ - if(PS(id) && + if(PS(id) && PS(extern_referer_chk)[0] != '\0' && zend_hash_find(&EG(symbol_table), "HTTP_REFERER", sizeof("HTTP_REFERER"), (void **) &data) == SUCCESS && @@ -720,7 +720,7 @@ static void _php_session_start(PSLS_D) if(PS(mod_data) && PS(gc_probability) > 0) { srand(time(NULL)); nrand = (int) (100.0*rand()/RAND_MAX); - if(nrand < PS(gc_probability)) + if(nrand < PS(gc_probability)) PS(mod)->gc(&PS(mod_data), PS(gc_maxlifetime)); } } |