Hi!

Sorry for wrong threading or if this solution was suggested before... i
currently don't have access to my mail client:)

> 3. There is no way for the magic methods to return a meaningfull error
> when a property doesn't "exist". Of course it is possible to throw an
> error with "trigger_error" or "throw" in case a property doesn't "exist"
> in a specific class, but the file and line numbers would not match the
> actually get/set action. debug_backtrace() can be used to retrieve the
> correct file and line, but as you have to do this for every class where
> you want to use setters and
> getters *and* you have to implement your own error message rendering
> function this is not really a suitable option either.

Don't know if this can be implemented... but what's about a 3rd boolean
"handled" call-by-reference-parameter which must be switched to "TRUE" if
the property could be handled? Should be TRUE if ommitted for bc reasons,
of course.

greets, Roland

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

Reply via email to