Look, it's not rocket science. Just store the file name and line number with each item in the Config. I propose the attribute in the config item is called 'meta' but feel free to call it what you like.

As an optimisation you could normalize the data a bit.

monk.e.boy

Posted by Rob Allen (rob) on 2011-10-14T09:23:40.000+0000

The current operation of Zend_Config is that $config->b doesn't generate any errors if b doesn't exit. (though $config->a->b will do as Frank notes). Any change to this behaviour has to be added as a configurable option as we cannot break B/C on ZF 1.

If we are going to generate an error message on property not found, then it should be an Exception, not an echoed message.

If you have signed the CLA, please provide a patch that meets these criteria.