Re: [PHP-DEV] [PATCH] Enable extension loading from .user.ini when run as CGI.

2012-07-27 Thread Pierre Joye
On Sat, Jul 28, 2012 at 8:34 AM, Pierre Joye wrote: >> Sure, I can split in two. Does PHP use pull requests? > > Yes, via github's php mirror, see https://wiki.php.net/vcs/gitworkflow https://github.com/php/php-src -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org -- PH

Re: [PHP-DEV] [PATCH] Enable extension loading from .user.ini when run as CGI.

2012-07-27 Thread Pierre Joye
On Sat, Jul 28, 2012 at 8:27 AM, Edward Z. Yang wrote: > Excerpts from Pierre Joye's message of Sat Jul 28 02:20:51 -0400 2012: >> > Functionality is not included for other SAPIs because they either do not >> > support .user.ini (e.g. CLI) or they serve multiple requests and thus >> > do not suppo

Re: [PHP-DEV] [PATCH] Enable extension loading from .user.ini when run as CGI.

2012-07-27 Thread Edward Z. Yang
Excerpts from Pierre Joye's message of Sat Jul 28 02:20:51 -0400 2012: > > Functionality is not included for other SAPIs because they either do not > > support .user.ini (e.g. CLI) or they serve multiple requests and thus > > do not support dl() (e.g. FastCGI). > > dl has been disabled in FastCGI

Re: [PHP-DEV] [PATCH] Enable extension loading from .user.ini when run as CGI.

2012-07-27 Thread Pierre Joye
Hi Edward, On Sat, Jul 28, 2012 at 12:57 AM, Edward Z. Yang wrote: > From: "Edward Z. Yang" > > Functionality is not included for other SAPIs because they either do not > support .user.ini (e.g. CLI) or they serve multiple requests and thus > do not support dl() (e.g. FastCGI). dl has been disa

Re: [PHP-DEV] Re: Generators in PHP

2012-07-27 Thread Rasmus Lerdorf
On 07/26/2012 11:36 PM, Alex Aulbach wrote: > 1) The bigger the language grows, the more we need to think about how > to implement new features. > I think it's a bad argument to say "we made this and that not so > ideal, so we can make this also. Don't be so idealistic." :) > I think it's a duty to

Re: [PHP-DEV] Run-tests.php JUnit format issue

2012-07-27 Thread Ferenc Kovacs
On Sat, Jul 7, 2012 at 4:41 PM, Anthony Ferrara wrote: > Hey all, > > I've run into an issue with run-tests.php with the junit format. The XML > that it generates can be invalid because of invalid UTF-8 characters and > invalid XML characters. This means that trying to parse it using something >

[PHP-DEV] [PATCH] Enable extension loading from .user.ini when run as CGI.

2012-07-27 Thread Edward Z. Yang
From: "Edward Z. Yang" Functionality is not included for other SAPIs because they either do not support .user.ini (e.g. CLI) or they serve multiple requests and thus do not support dl() (e.g. FastCGI). There is also a bugfix to invoke zlist_clean, to ensure extension_lists can be reused for the

[PHP-DEV] PHP test suite

2012-07-27 Thread Anatoliy Belsky
Hi internals, after working for some time with the PHP test suite I've realized - it needs an improvement of a special kind. What I'm talking about is the server based testing. Very urgent cases have shown them up working with APC. Most of the current bugs reported only reproduceable with tests wh

Re: [PHP-DEV] Generators in PHP

2012-07-27 Thread Nikita Popov
On Thu, Jul 26, 2012 at 2:20 AM, Stas Malyshev wrote: > Hi! > >> The implementation is outlined in the RFC-stub here: >> https://wiki.php.net/rfc/generators >> >> Before going any further I'd like to get some comments about what you >> think of adding generator support to PHP. > > Some notes on th

Re: [PHP-DEV] Re: Generators in PHP

2012-07-27 Thread Nikita Popov
On Wed, Jul 25, 2012 at 10:36 PM, Lester Caine wrote: > But WHY would you not simply put the function that is handling the returned > data in place of the yield? > Why do you want to keep exiting and re-entering the 'do loop' when the data > can simply be forwarded direct to a function to handle i

Re: [PHP-DEV] Re: Generators in PHP

2012-07-27 Thread Sara Golemon
> > >> The micro benchmark is just that, and is not as far as I can see testing > the sort of iterating process that would happen normally when going through > a data set. It simply times the iterator, but does not compare like with > like! > > I hear your concerns about performance, and you're goo

Re: [PHP-DEV] Re: Generators in PHP

2012-07-27 Thread Lester Caine
Sherif Ramadan wrote: https://wiki.php.net/rfc/generators#performance "You can find a small micro benchmark at https://gist.github.com/2975796. It compares several ways of iterating ranges:" What part of this discussion led you to believe such a ridiculous argument as to why generator were intr

Re: [PHP-DEV] Re: Generators in PHP

2012-07-27 Thread Andrew Faulds
On 27/07/12 13:23, Lester Caine wrote: Nikita Popov wrote: I'll ask again since no one has answered ... > >In a different way ... >Is the only thing that changes the 'function' into a 'generator' replacing >the call to process the data with 'yield'? ( That would be 'SUSPEND' in an >SQL proced

Re: [PHP-DEV] Re: Generators in PHP

2012-07-27 Thread Sherif Ramadan
> > > Nikita - I am looking for a well reasoned argument as to why generator has > to be added at all! 'Just because it can be' is not a valid argument, but > perhaps you could add to the RFC the performance implication or advantage of > what is being proposed. That would at least be some compariso

Re: [PHP-DEV] RFCs and organisation

2012-07-27 Thread Sherif Ramadan
On Fri, Jul 27, 2012 at 8:55 AM, Ferenc Kovacs wrote: > On Fri, Jul 27, 2012 at 1:41 PM, Gábor Fási wrote: > >> On 27 July 2012 13:15, Laupretre François >> wrote: >> >> How about using git for the actual documents too.. No better way to >> >> collaborate imho. >> > >> > Do you mean using github

Re: [PHP-DEV] RFCs and organisation

2012-07-27 Thread Ferenc Kovacs
On Fri, Jul 27, 2012 at 1:41 PM, Gábor Fási wrote: > On 27 July 2012 13:15, Laupretre François > wrote: > >> How about using git for the actual documents too.. No better way to > >> collaborate imho. > > > > Do you mean using github or integrating git VCS in a RFC app ? If you > mean using githu

Re: [PHP-DEV] Re: Generators in PHP

2012-07-27 Thread Lester Caine
Nikita Popov wrote: I'll ask again since no one has answered ... > >In a different way ... >Is the only thing that changes the 'function' into a 'generator' replacing >the call to process the data with 'yield'? ( That would be 'SUSPEND' in an >SQL procedure ) ... > >So how DOES an IDE work out th

Re: [PHP-DEV] RFCs and organisation

2012-07-27 Thread Gábor Fási
On 27 July 2012 13:15, Laupretre François wrote: >> How about using git for the actual documents too.. No better way to >> collaborate imho. > > Do you mean using github or integrating git VCS in a RFC app ? If you mean > using github, it is a convenient way to store document evolution and > com

RE: [PHP-DEV] RFCs and organisation

2012-07-27 Thread Laupretre François
> How about using git for the actual documents too.. No better way to > collaborate imho. Do you mean using github or integrating git VCS in a RFC app ? If you mean using github, it is a convenient way to store document evolution and comments, but what about the voting process, let alone RFC num

Re: [PHP-DEV] Re: Generators in PHP

2012-07-27 Thread Nikita Popov
On Fri, Jul 27, 2012 at 9:56 AM, Lester Caine wrote: > I'll ask again since no one has answered ... > > In a different way ... > Is the only thing that changes the 'function' into a 'generator' replacing > the call to process the data with 'yield'? ( That would be 'SUSPEND' in an > SQL procedure )

Re: [PHP-DEV] Re: Generators in PHP

2012-07-27 Thread Lester Caine
Lester Caine wrote: Fact: yield makes functions some kind of "different". > Yes, they turn normal functions into continuation functions (functions which can be exited and reentered dynamically). But WHY would you not simply put the function that is handling the returned data in place of the y