I'm debugging the PHP code of a big CMS, and I came across the fact that the following code
echo _NONEXISTING_CONSTANT_;
does not trigger any warning although the constant does not exist. Here is what I've tried to figure out why the warning is not displayed:
- I've checked that
error_reporting() & E_WARNING
returns a non-zero value. ob_get_level()
returns 1.- If I put the same statement in the beginning of the first
index.php
, the error is displayed, so it's not a config setting.
What are possible mechanisms in PHP in which this code would not trigger a warning?