Re: [RFC] -W option for CLI "strict mode"
| From: | Felipe Pena | Date: | Tue, 05 Jul 2011 16:01:52 +0000 |
| Subject: | Re: [RFC] -W option for CLI "strict mode" | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-53747@lists.php.net to get a copy of this message | ||
Hi,
2011/7/5 Adam Harvey <aharvey@php.net>:
> 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 users that they should run "php -W script.php" as the
> preferred way of developing and running new, E_STRICT-compliant
> scripts.
>
> The RFC is at https://wiki.php.net/rfc/cli-strict, and comes
> with a
> patch, which is accessible at
> http://www.adamharvey.name/patches/php-cli-strict.patch.txt. If
> the
> response isn't overwhelmingly negative and we don't get caught up in
> discussions for the next few days, I'll look at calling for a vote in
> a week or so (given it's not a language-level change).
>
> Thanks,
>
> Adam
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
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.
However I guess it's more useful to have something like Perl does with -W.
--
Regards,
Felipe Pena