possible error in the script?
Closed this issue · 3 comments
ComradePashka commented
I tried to run script and got:
A non well formed numeric value encountered
Line
gets last symbol and transforms it to lowercase, but whole string in such case is not transformed and contain that symbol!And next lines:
realpath_cache_tuner/realpath_cache_tuner.php
Lines 13 to 20 in 86b60d3
what is the difference? any case inside switch do exactly same task.
UPD oops, I missed there are no break
statement. ok, anyway $value
is still seems incorrect for calculations.
UPD2 I think next code after line #12 may fix that issue:
if ($last) $value = substr($value, 0, strlen($value) - 1);
samdark commented
What do you have in $value
when it errors?
ComradePashka commented
4096K
-- string returned by ini_get('realpath_cache_size')