(php_get_session_var) Always return FAILURE if no data source was found.

Noticed by: Sebastian Bergmann
This commit is contained in:
Sascha Schumann 2002-09-23 14:04:50 +00:00
parent 9e84b3d5b5
commit ff12826fc1

View file

@ -287,11 +287,11 @@ 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) { if (zend_hash_find(Z_ARRVAL_P(PS(http_session_vars)), name, namelen+1, (void **) state_var)==SUCCESS) {
return SUCCESS; return SUCCESS;
} }
} else if (!PG(register_globals)) { }
/* register_globals is disabled, but we don't have http_session_vars */ /* register_globals is disabled, but we don't have http_session_vars */
return FAILURE; return FAILURE;
} }
}
#define PS_BIN_NR_OF_BITS 8 #define PS_BIN_NR_OF_BITS 8
#define PS_BIN_UNDEF (1<<(PS_BIN_NR_OF_BITS-1)) #define PS_BIN_UNDEF (1<<(PS_BIN_NR_OF_BITS-1))