PHP => Call to non-existing class constants, way to handle?
<p>just like the <code>__call</code> magic method we can use in PHP to hook a call to a non defined method, is there a way to hook a call to an undefined constant or variable?</p>

<p>Like <code>A::B</code>, where <code>B</code> doesn't exist.</p>
