My dev server is currently running PHP 5.3.29. When trying to run the is_bool() function on a variable, I receive the error:
Fatal error: Call to undefined function is_bool() in...
Running echo function_exists("is_bool"); returns true.
Running the commands on my local machine with 5.3.28 yield the same results, but works correctly on my coworker's local machine running 5.5.14.
Although the official PHP documentation says that this function is available in PHP 4 and 5, is there an issue with my PHP versions preventing me from using this function? This is also happening with is_int(), is_null(), etc.
<?php
$Value = "random"; // Also tried integers and booleans
echo function_exists("is_bool"); // prints 1
echo is_bool($Value) ? "true" : "false"; // Fatal error