Re: RE: [PHP-QA] Re: [PHP-DEV] Re: [PHP-QA] Naming changes.
| From: | Sterling Hughes | Date: | Sat, 30 Dec 2000 21:38:04 +0000 |
| Subject: | Re: RE: [PHP-QA] Re: [PHP-DEV] Re: [PHP-QA] Naming changes. | ||
| References: | 1 2 3 | Groups: | php.dev php.qa |
| Request: | Send a blank email to php-dev+get-42539@lists.php.net to get a copy of this message | ||
> > We already have a capable warning system, are there sound reasons
> > to add anything to PHP besides E_NOTICE then E_WARNINGs on the
> > old names? Users can just change their error_reporting() in
> > their .ini and/or on a per page, or per-script (or per function!)
>
> per function?
>
> I didn't know that was possible...
>
its quite simple:
function foo()
{
$old_er = error_reporting(E_NOTICE);
// ...
error_reporting($old_er);
}
-sterling