Re: [RFC] -W option for CLI "strict mode"

From: Date: Wed, 06 Jul 2011 16:00:41 +0000
Subject: Re: [RFC] -W option for CLI "strict mode"
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-53766@lists.php.net to get a copy of this message
On Wed, 2011-07-06 at 16:46 +0100, Richard Quadling wrote: > 2011/7/6 Johannes Schlüter <johannes@schlueters.de>: > > 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 <?php print_r($argv); $ php -n t.php -n Array ( [0] => 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

« previous php.internals (#53766) next »