7 ms·
One of my least favorite things is the behavior of undefined constants. Use an undefined constant: Get an exception? Nope. Get an empty string? Nope. PHP wil
by zbuc 14y ago
One of my least favorite things is the behavior of undefined constants.
Use an undefined constant:
Get an exception? Nope.
Get an empty string? Nope.
PHP will put the name of the constant in the rendered HTML. Arg.
- johnny22 14y agothere would be if an error if error_reporting(E_ALL) was used. Sadly you have to manually set an exception handler if you want it as an exception :(