mirror of
https://github.com/php/php-src.git
synced 2025-08-20 09:24:05 +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,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))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue