apcu
apcu copied to clipboard
Also reject negative format values in APCuIterator
This would affect applications that accidentally or deliberately pass in negative values for $format (e.g. PHP_INT_MIN on 64-bit builds)
if (format > APC_ITER_ALL) { /* 0xffffffff */
apc_error("APCUIterator format is invalid");
return;
}
Doesn't looks that this error condition is tested currently, add one?
Looks like apc_099.phpt is failing.