Hi list,

as we approach 2.0, we will have to think of a way to report deprecated
class or method calls to the developer. To help solve this issue, I created
the Zend_Deprecation proposal. It offers a static interface similar to PHP's
own error handling functionality and should therefore be easy to use for the
developer.

There is another way that we could use to report deprecations to the
developer, which is simply throwing a Zend_Deprecation_Exception. This would
leave the developer in charge about doing something with those exceptions,
and it would presumably lead to an annoying loop of "load page -> read
exception -> fix -> reload page -> read next exception...". To solve this,
Zend_Deprecation uses an error stack to report the errors to the developer
all at once.

You can find my proposal here:
http://framework.zend.com/wiki/display/ZFPROP/Zend_Deprecation+-+Tobias+Gies

Best regards
Tobias

Reply via email to