mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
(php_get_session_var) Always return FAILURE if no data source was found.
Noticed by: Sebastian Bergmann
This commit is contained in:
parent
9e84b3d5b5
commit
ff12826fc1
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue