Open boesing opened 2 months ago
Hey there,
I am using APCu on PHP 8.1 with v5.1.23. When I execute apcu_fetch with a key which does not exist, $success flag is being set to true and false is returned.
APCu
apcu_fetch
$success
true
false
$value = apcu_fetch(bin2hex(random_bytes(10)), $success); var_dump($value, $success);
bool(false) bool(true)
Do I miss something? AFAIR apcu_fetch returned false on success when cache key did not exist?
success
I can't reproduce this. For me this prints false two times.
Maybe this is related to MacOS and/or patches of shivammathur. Will double check that. Sorry for creating noise.
Hey there,
I am using
APCu
on PHP 8.1 with v5.1.23. When I executeapcu_fetch
with a key which does not exist,$success
flag is being set totrue
andfalse
is returned.Do I miss something? AFAIR
apcu_fetch
returnedfalse
onsuccess
when cache key did not exist?