Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53766 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 12124 invoked from network); 6 Jul 2011 16:00:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Jul 2011 16:00:47 -0000 Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlueters.de from 217.114.211.66 cause and error) X-PHP-List-Original-Sender: johannes@schlueters.de X-Host-Fingerprint: 217.114.211.66 config.schlueters.de Received: from [217.114.211.66] ([217.114.211.66:41380] helo=config.schlueters.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 75/B3-25581-EA6841E4 for ; Wed, 06 Jul 2011 12:00:46 -0400 Received: from [192.168.2.230] (ppp-93-104-45-86.dynamic.mnet-online.de [93.104.45.86]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by config.schlueters.de (Postfix) with ESMTPSA id D903574830; Wed, 6 Jul 2011 18:00:42 +0200 (CEST) To: RQuadling@GMail.com Cc: Adam Harvey , PHP internals In-Reply-To: References: <1309966833.3580.5.camel@guybrush> Content-Type: text/plain; charset="UTF-8" Date: Wed, 06 Jul 2011 18:00:41 +0200 Message-ID: <1309968041.3580.21.camel@guybrush> Mime-Version: 1.0 X-Mailer: Evolution 2.30.2 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] [RFC] -W option for CLI "strict mode" From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) On Wed, 2011-07-06 at 16:46 +0100, Richard Quadling wrote: > 2011/7/6 Johannes Schlüter : > > On Tue, 2011-07-05 at 16:50 +0100, Richard Quadling wrote: > >> C:\php5\php.exe --verbose -f d:\docs\phd\render.php -- --verbose > > > > That happens with all options. > > $ php -n run-tests.php -n > > > > You missed out the -- > > That separates arguments from php.exe and the script. > > As long as one remembers that, they should be OK. This is not needed usually: $ cat t.php t.php [1] => -n ) > >> Non bikeshedding thought ... > >> > >> Being able to enable full error reporting at the command line has to > >> be complimented though by fully disabling error reporting ... > >> > >> -Q, --quiet or -S, --silent > > > > What would happen with logging then? Will that be switched off, too? > > If error_reporting() is set to 0, what errors can be generated? Well that's exactly the question: Is that expected or is it just supposed to be silent on the console only? (same for -W btw.) johannes