Stanislav Malyshev wrote:

DR>>If it returns false, the engine can throw an error on the line where DR>>it was used, not inside the __get() method itself, as that doesn't DR>>help debugging your code (as you don't usually know where it was DR>>called from).

That I understand. However, you still don't have means to know _what_ was wrong in this line. BTW, how comes you don't know where it came from if you have backtrace?

Uhm Derick has said multiple times that he can get a backtrace, but that backtrace points at the wrong place just as manually triggering an error. Obviously this is somehow fixable with alot of magic inside a custom error handler. However I think the addition Derick is proposing is fairly reasonble and clear and doesnt introduce a new keyword or magic method.

regards,
Lukas

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to