Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58189 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52606 invoked from network); 27 Feb 2012 20:22:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Feb 2012 20:22:18 -0000 Authentication-Results: pb1.pair.com smtp.mail=simonsimcity@googlemail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=simonsimcity@googlemail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 209.85.214.170 as permitted sender) X-PHP-List-Original-Sender: simonsimcity@googlemail.com X-Host-Fingerprint: 209.85.214.170 mail-tul01m020-f170.google.com Received: from [209.85.214.170] ([209.85.214.170:58642] helo=mail-tul01m020-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 75/05-29394-9F5EB4F4 for ; Mon, 27 Feb 2012 15:22:17 -0500 Received: by obbup3 with SMTP id up3so6032814obb.29 for ; Mon, 27 Feb 2012 12:22:15 -0800 (PST) Received-SPF: pass (google.com: domain of simonsimcity@googlemail.com designates 10.182.124.41 as permitted sender) client-ip=10.182.124.41; Authentication-Results: mr.google.com; spf=pass (google.com: domain of simonsimcity@googlemail.com designates 10.182.124.41 as permitted sender) smtp.mail=simonsimcity@googlemail.com; dkim=pass header.i=simonsimcity@googlemail.com Received: from mr.google.com ([10.182.124.41]) by 10.182.124.41 with SMTP id mf9mr5587334obb.65.1330374135006 (num_hops = 1); Mon, 27 Feb 2012 12:22:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=2FsdigOmGJsdzzq/isT+gCJhTXb/DIey+5rOYN2OElI=; b=DbO9sO17EDRBuWFiGgX55vGhJ7UBlOFY7mW5Dyii6UStz4zO3OJw686nD90/f/iqrO wA1JgTebM9f4XyDLs74++IgihTzx2z+FRBDcxmCkdqENCsS8jToZufDzo2sWpBt4l2It 7ZeNvQFwprRs39mQcfaxr+bS6wbAI6d3xH5dQ= MIME-Version: 1.0 Received: by 10.182.124.41 with SMTP id mf9mr4929741obb.65.1330374134919; Mon, 27 Feb 2012 12:22:14 -0800 (PST) Received: by 10.60.7.229 with HTTP; Mon, 27 Feb 2012 12:22:14 -0800 (PST) In-Reply-To: <139e388dc03896c57b5c36d059f23597.squirrel@www.l-i-e.com> References: <139e388dc03896c57b5c36d059f23597.squirrel@www.l-i-e.com> Date: Mon, 27 Feb 2012 21:22:14 +0100 Message-ID: To: Richard Lynch Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=f46d0444eebbbaf01d04b9f7dd62 Subject: Re: [PHP-DEV] RFC: PHP 6 include E_NOTICE in default php.ini From: simonsimcity@googlemail.com (Simon Schick) --f46d0444eebbbaf01d04b9f7dd62 Content-Type: text/plain; charset=UTF-8 Hei, Richard I've looked into the php.ini.* files of PHP 5.4 for windows and saw the following line in *production*: error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT display_errors = On log_errors = On and the following line in *development*: error_reporting = E_ALL display_errors = Off log_errors = On I also looked up the function error_reporting and came around that: http://no.php.net/manual/en/errorfunc.configuration.php#ini.error-reporting http://php.net/manual/en/function.error-reporting.php#refsect1-function.error-reporting-changelog The first link seems to contain some out-dated information ... That was the reason why you raised the RFC, right? Here's how I understood the second link and the settings I found in the windows version: You'll get every message reported by the php-parser in your log by default if you're working using the development version and won't get any deprecated and strict messages in *production*. If this messages are written into a log-file or passed to the output is up to the rest of the settings where in both environments both they're written into the error-log-file but only *development *it is additionally visible to the user. So for the windows environment (if you'd ask me) this seems solved. I have not looked into the other environments yet. If they are not the same we should work to keep the default-configuration in one way, whatever OS you're working on. Bye Simon 2012/2/27 Richard Lynch > On Mon, February 27, 2012 1:33 pm, Kris Craig wrote: > > I think it's a good idea, though I'm not sure it should be done in the > > production one as well. I'm not sure, but I think these errors are > > generally suppressed in production because of potential security > > concerns > > involved in making those errors public. > > I would contend that if you have any errors at any level of E_* going > out over HTTP, you have done it "wrong". > > It is true that in the days of register_globals, the E_NOTICE going to > the HTML was a gold-mine for abusers of potential security threats. > > But all of E_* messages are also goldmines of the same ilk. > > That said, > > > I would suggest amending the RFC so that it only applies to > > php.ini-development. Other than that, I like it. > > If most cheap webhosts chose php.ini-development, I'd be okay with > this, as it probably is not suitable for PRODUCTION environments for > the experts. > > Unfortunately, most cheap webhosts go with php.ini-production, as they > are production environments, and the unwashed masses of users of said > cheap webhosts are the target audience of the proposal. > > As stated in the RFC, the experts can and will change their php.ini to > their taste in each environment: It's the masses of users who don't > even know there is a choice that are being hurt by the current default > setting, writing bad code, asking questions of obvious typos that > E_NOTICE would catch, and remaining un-educated for too long that they > develop bad habits. > > Not that I think this will eliminate newbie postings. There will > always be those who don't even read or comprehend the most clear error > messages. > > But I think it will reduce the number of postings by newbies who are > tripped up by the typical mistakes E_NOTICE exposes. > > > PS > I want to thank you for your reasoned response, especially given the > other thread we are involved in! > > -- > brain cancer update: > http://richardlynch.blogspot.com/search/label/brain%20tumor > Donate: > > https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FS9NLTNEEKWBE > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --f46d0444eebbbaf01d04b9f7dd62--