1
0
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:
Sascha Schumann
2001-06-10 14:12:28 +00:00
parent 9a7c1f2ad6
commit 5ebe991cfe
+1 -1
View File
@@ -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);
}