mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
Check for http_session_vars != NULL.
This commit is contained in:
parent
dfa35a78e6
commit
b31801b249
@ -270,8 +270,10 @@ int php_get_session_var(char *name, size_t namelen, zval ***state_var PLS_DC PSL
|
||||
HashTable *ht = &EG(symbol_table);
|
||||
|
||||
if (!PG(register_globals))
|
||||
ht = Z_ARRVAL_P(PS(http_session_vars));
|
||||
ht = PS(http_session_vars) ? Z_ARRVAL_P(PS(http_session_vars)) : NULL;
|
||||
|
||||
if (!ht) return NULL;
|
||||
|
||||
return zend_hash_find(ht, name, namelen + 1, (void **)state_var);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user