diff options
author | Sascha Schumann <sas@php.net> | 2002-09-23 14:04:50 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 2002-09-23 14:04:50 +0000 |
commit | ff12826fc15a3a44440c47647b10b65718f8ea93 (patch) | |
tree | a3bb11652865d13bce27b430bdcb3a7a540e96a9 | |
parent | 9e84b3d5b584e9d98ff8b009bc7220245bee6df1 (diff) | |
download | php-git-ff12826fc15a3a44440c47647b10b65718f8ea93.tar.gz |
(php_get_session_var) Always return FAILURE if no data source was found.
Noticed by: Sebastian Bergmann
-rw-r--r-- | ext/session/session.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/session/session.c b/ext/session/session.c index 0b54c46029..453803603e 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -287,10 +287,10 @@ int php_get_session_var(char *name, size_t namelen, zval ***state_var TSRMLS_DC) if (zend_hash_find(Z_ARRVAL_P(PS(http_session_vars)), name, namelen+1, (void **) state_var)==SUCCESS) { return SUCCESS; } - } else if (!PG(register_globals)) { - /* register_globals is disabled, but we don't have http_session_vars */ - return FAILURE; - } + } + + /* register_globals is disabled, but we don't have http_session_vars */ + return FAILURE; } #define PS_BIN_NR_OF_BITS 8 |