mirror of
https://github.com/php/php-src.git
synced 2026-04-29 19:23:22 +02:00
Signal that no entry was found
This commit is contained in:
@@ -272,7 +272,7 @@ int php_get_session_var(char *name, size_t namelen, zval ***state_var PLS_DC PSL
|
||||
if (!PG(register_globals))
|
||||
ht = PS(http_session_vars) ? Z_ARRVAL_P(PS(http_session_vars)) : NULL;
|
||||
|
||||
if (!ht) return NULL;
|
||||
if (!ht) return HASH_KEY_NON_EXISTANT;
|
||||
|
||||
return zend_hash_find(ht, name, namelen + 1, (void **)state_var);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user