Isn’t PHP suppose to show an error is you call a non-existent CONSTANT? When I run the code below for a constant that is not defined, it shows on the screen “TEST” instead of any kind of error. Could I have a setting wrong in my php.ini file or is this something new? Im running PHP 5.3
<?php
echo TEST;
?>
It’s supposed to show a notice which you may not have set as visible (E_NOTICE). On default, if the constant is not defined, it shows the literal value.