On Nov 26, 12:27 pm, "Chris Meller" <[EMAIL PROTECTED]> wrote:
> Is there a particular reason you advocate changing the error_reporting
> level, rather than changing display_errors? Personally, I think everything
> should always be logged (error_reporting), but nothing should ever be
> displayed (display_errors). This is in line with what the php.net docs
> advise for production use...
>
>

By the same token, php.net says that the default error level is E_ALL
& ~ E_NOTICE and advises that one might want to turn E_NOTICE AND
E_STRICT on during developement, not on production sites, so I'm
having trouble understanding why error reporting should be set to a
high level on a production site. People just want their sites to work.
If the site is broken, they can give the developer an idea of the
symptoms of the problem, and the developer would take it from there
with debugging. Or maybe I'm naive.

Assume error reporting is set high, though, and error display is
turned off. What happens if there is a NOTICE or STRICT error. Does
the page just die without output,at the place where the error
occurred, or is the error ignored while the script goes it's merry
way? I really don't know.

Rick

>
> On Wed, Nov 26, 2008 at 12:18 PM, Owen Winkler <[EMAIL PROTECTED]> wrote:
>
> > Chris Meller wrote:
>
> > >     My inclination would be to do nothing to the PHP error level setting
> > by
> > >     default, leaving it to the php.ini to decide.
>
> > > I don't necessarily agree. Not only are the php.ini defaults often not
> > > satisfactory (think magic_quotes_gpc or register_globals), but they vary
> > > from install to install too much (each distro is a little bit different).
>
> > But we're not talking about magic_quotes_gpc or register_globals,
> > functions that would change the way the software operates.  We're simply
> > talking about the level of error that we want the system to allow to
> > pass or report.
>
> > > As with several other things, I think we should aim to hold our code to
> > > a higher standard. That means enforcing things like E_STRICT, rather
> > > than just going with whatever php.ini says.
>
> > We do enforce E_STRICT during development.  But as others have pointed
> > out, 3rd-party modules are not completely beholden to our ideals.
>
> > Users of Habari should be allowed to choose their reporting level, and
> > should be able to do it in a familiar location, their php.ini, unless
> > they specifically want to override it in their config file for that
> > single Habari site.  This would allow them to get by with, perhaps, less
> > than ideal plugins, but we're not building perfection, we're building
> > something usable, so I think that's ok.
>
> > > In any deployment scenario you're going to have to manage a config.php
> > > file for database settings. Why does including error reporting settings
> > > in there make deployment any more difficult?
>
> > It doesn't.  Maybe this got lost along the way, but I'm advocating
> > removing the E_STRICT (and any error reporting level change) from
> > index.php, and documenting how to apply it to config.php so that users
> > can set it how they like, if they choose.
>
> > Owen
>
> --
>
> Woody Allen  - "I will not eat oysters. I want my food dead. Not sick. Not
> wounded. Dead."
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/habari-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to