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

2011-07-07 Thread Richard Quadling
2011/7/7 Richard Quadling : > 2011/7/6 Johannes Schlüter : >> 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 >>> > >>

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

2011-07-07 Thread Richard Quadling
2011/7/6 Johannes Schlüter : > 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. >

RE: [PHP-DEV] [RFC] -W option for CLI "strict mode"

2011-07-06 Thread Mike Robinson
On July-06-11 11:49 AM Peter Cowburn [mailto:petercowb...@gmail.com] > On 6 July 2011 16:04, Richard Quadling wrote: > > > > What happens of both LOUD and quiet are used. Personally, I'd say > > this is an error and abort. > > > > An error, and abort silently. :) Whatever the consensus is. :)

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

2011-07-06 Thread Johannes Schlüter
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 > > >

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

2011-07-06 Thread Peter Cowburn
On 6 July 2011 16:04, Richard Quadling wrote: > On 6 July 2011 15:14, Mike Robinson wrote: >> On July-06-11 12:58 AM Adam Harvey wrote: >> >> >>> On 6 July 2011 06:00, Richard Quadling wrote: >>> > I'd also add in the display_startup_errors to this also. As I see it, >>> > the idea is to make th

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

2011-07-06 Thread Richard Quadling
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 scri

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

2011-07-06 Thread 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 > Non bikeshedding thought ... > > Being able to enable full error reporting at the command line has to > be c

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

2011-07-06 Thread Richard Quadling
On 6 July 2011 15:14, Mike Robinson wrote: > On July-06-11 12:58 AM Adam Harvey wrote: > > >> On 6 July 2011 06:00, Richard Quadling wrote: >> > I'd also add in the display_startup_errors to this also. As I see it, >> > the idea is to make things as noisy or as quiet as possible. >> >> Agreed. Th

RE: [PHP-DEV] [RFC] -W option for CLI "strict mode"

2011-07-06 Thread Mike Robinson
On July-06-11 12:58 AM Adam Harvey wrote: > On 6 July 2011 06:00, Richard Quadling wrote: > > I'd also add in the display_startup_errors to this also. As I see it, > > the idea is to make things as noisy or as quiet as possible. > > Agreed. That was an oversight on my part. I'll update the patc

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

2011-07-05 Thread Adam Harvey
On 6 July 2011 06:00, Richard Quadling wrote: > I'd also add in the display_startup_errors to this also. As I see it, > the idea is to make things as noisy or as quiet as possible. Agreed. That was an oversight on my part. I'll update the patches to handle that as well. Adam -- PHP Internals -

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

2011-07-05 Thread Adam Harvey
On 6 July 2011 05:08, Florian Anderiasch wrote: > On 05.07.2011 18:24, Adam Harvey wrote: >>> However I guess it's more useful to have something like Perl does with -W. >> >> It does really combine -w and -W from Perl, now I think about it. > > What would be the options of mimicking -W as closely

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

2011-07-05 Thread Richard Quadling
On 5 July 2011 17:22, Adam Harvey wrote: > On 5 July 2011 23:50, Richard Quadling wrote: >> 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 >

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

2011-07-05 Thread Florian Anderiasch
On 05.07.2011 18:24, Adam Harvey wrote: >> However I guess it's more useful to have something like Perl does with -W. > > It does really combine -w and -W from Perl, now I think about it. What would be the options of mimicking -W as closely as possible? There was this extension (iirc named screa

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

2011-07-05 Thread Adam Harvey
On 5 July 2011 23:50, Richard Quadling wrote: > Bikesheding thought ... > > -V, --verbose > > That could get interesting ... > > C:\php5\php.exe --verbose -f d:\docs\phd\render.php -- --verbose I like matching other languages as best we can (more on that in my reply to Felipe momentarily). > Non

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

2011-07-05 Thread Adam Harvey
On 6 July 2011 00:01, Felipe Pena wrote: > Just to inform, the Perl's -W enable all warnings regardless of > whether the script disable warnings. > > The Perl's -w one looks like your -W, but I know we already have used > -w in PHP to output source with stripped comments and whitespaces. That was

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

2011-07-05 Thread Felipe Pena
Hi, 2011/7/5 Adam Harvey : > Developers, Romans, countrymen, > > I'd like to propose the addition of a -W switch to the CLI SAPI which > would enable the display of errors and maximum error reporting. This > brings us into line with other languages such as Perl, and allows us > to evangelise to us

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

2011-07-05 Thread Richard Quadling
On 5 July 2011 16:33, Adam Harvey wrote: > Developers, Romans, countrymen, > > I'd like to propose the addition of a -W switch to the CLI SAPI which > would enable the display of errors and maximum error reporting. This > brings us into line with other languages such as Perl, and allows us > to ev