[PHP-DEV] foreach statement add list supporting

2011-07-05 Thread Xinchen Hui
Hi: T_LIST is not allowed to used with foreach before. and then there comes a freature request: #10203 allow foreach($array as list($a,$b) I have work on it, and now submit patch to internal. I have set up a rfc page in wiki.php.net: https://wiki.php.net/foreachlist do you

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] FR #54098 -> default FPM values for processes

2011-07-05 Thread Jérôme Loyet
Le 2 juillet 2011 19:58, Rasmus Lerdorf a écrit : > On 07/02/2011 10:53 AM, Jérôme Loyet wrote: >> Hi there, >> >> in the following request https://bugs.php.net/bug.php?id=54098, the >> user ask to lower the FPM pm.max_children configuration item. As pm.* >> configuration items are very specific t

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

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

2011-07-05 Thread 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 users that they should run "php -W script

[PHP-DEV] [RFC] Allow multiple simultaneous syslog connections

2011-07-05 Thread Jérôme Loyet
Hi there, a while ago I submitted a patch to allow multiple simultaneous syslog connections (http://marc.info/?l=php-internals&m=129639452805700&w=2). I've written a RFC for inclusion in 5.4: https://wiki.php.net/rfc/allow_multiple_simultaneous_syslog_connections Any thoughts? Thanks ++ Jerome