Here's the problem.
PHP Code:
$val=123;
echo $val==intval($val); // Echo: 1
$val=123.123;
echo $val==intval($val); // Echo:
I seem to remember that the 2nd echo used to output 0 as expected. This changed recently but I'm not sure exactly why. Perhaps it was when we upgraded to PHP5? Is there something I can set in php.ini so that I'll get the correct output again? This problem is breaking a bunch of vB code and old custom scripts so I'd like to return PHP to it's former behaviour as quick as possible.
Thanks.
- Dan