On Thu, Jul 17, 2008 at 1:42 PM, Bill Karwin <[EMAIL PROTECTED]> wrote:
>
>
>
> Tobias Gies wrote:
>>
>> as we approach 2.0, we will have to think of a way to report deprecated
>> class or method calls to the developer.
>>
>
> Does this really need a new component?  What's wrong with
> trigger_error(E_USER_NOTICE)?  This seems a lot simpler and more concise.
>
> It also satisfies your goal of eliminating the tedium of resolving one
> exception at a time.  Notices are not fatal; you can get a bunch of them
> during one execution.
>
> People who want to filter out the notices can do:
>  error_reporting(error_reporting() & ~E_USER_NOTICE);
> ...either in their bootstrap or else in php.ini.
>
> Regards,
> Bill Karwin

You can also use @deprecated.

<http://manual.phpdoc.org/HTMLSmartyConverter/HandS/phpDocumentor/tutorial_tags.deprecated.pkg.html>

Till

Reply via email to