Re: [PHP-DEV] What gruntwork needs to be done

2010-04-07 Thread Martin Jansen
On 6.4.2010 19:54, Rasmus Lerdorf wrote: On 04/06/2010 10:47 AM, Scott MacVicar wrote: http://whisky.macvicar.net/patches/utf8-string.diff.txt My only issue with this is that it essentially duplicates the utf8 part of get_next_char() from html.c. I'd like to see cs parsing in one place

[PHP-DEV] SVN Account Request: looyao

2010-04-07 Thread looyao
Developing the PHP runtime -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] SVN Account Request: gron

2010-04-07 Thread Lukas Kahwe Smith
On 30.03.2010, at 22:08, Stefan Marr wrote: I would like to contribute my Traits implementation to PHP. BTW, there is no Grafts implementation at the moment, and as long as there is not any vote from the community that you want Grafts but not Traits, I would like to commit my work.

Re: [PHP-DEV] Named Parameters

2010-04-07 Thread Martin Jansen
On 5.4.2010 00:45, Pierre Joye wrote: On Mon, Apr 5, 2010 at 12:07 AM, Stanislav Malyshev s...@zend.com wrote: 3. Combining named and un-named params can get weird - i.e. foo(1,2,3) is simple, foo(1, 2, bar = 3) is doable, but foo(1, 2, bar = 3, 4) would be trouble, since it is not clear at

Re: [PHP-DEV] Output buffering patch

2010-04-07 Thread Michael Wallner
On 03/24/2010 09:41 PM, Lukas Kahwe Smith wrote: All I am asking is a single document in the central location we have dedicated for this (aka the rfc namespace on the wiki), that pulls together all relevant documentation. If all that is needed is a copy paste of a bunch of URL's all the better.

Re: [PHP-DEV] Output buffering patch

2010-04-07 Thread Michael Wallner
On 03/24/2010 09:41 PM, Lukas Kahwe Smith wrote: All I am asking is a single document in the central location we have dedicated for this (aka the rfc namespace on the wiki), that pulls together all relevant documentation. If all that is needed is a copy paste of a bunch of URL's all the better.

Re: [PHP-DEV] Named Parameters

2010-04-07 Thread Pierre Joye
On Wed, Apr 7, 2010 at 8:27 AM, Martin Jansen mar...@divbyzero.net wrote: On 5.4.2010 00:45, Pierre Joye wrote: On Mon, Apr 5, 2010 at 12:07 AM, Stanislav Malyshev s...@zend.com wrote: 3. Combining named and un-named params can get weird - i.e. foo(1,2,3) is simple, foo(1, 2, bar = 3) is

Re: [PHP-DEV] Named Parameters

2010-04-07 Thread Tjerk Anne Meesters
In the case whereby names parameters are plucked from the argument list and passed as a hash to the function it really shouldn't matter whether that's invalid in python; both (2, 'name' = 'test') and ('name' = 'test', 2) would yield the same results, albeit it's a highly dubious way of passing

Re: [PHP-DEV] Named Parameters

2010-04-07 Thread Christian Schneider
Tjerk Anne Meesters wrote: In the case whereby names parameters are plucked from the argument list and passed as a hash to the function it really shouldn't matter whether that's invalid in python; both (2, 'name' = 'test') and ('name' = 'test', 2) would yield the same results, albeit it's a

[PHP-DEV] GitHub mirror is not worked

2010-04-07 Thread Kousuke Ebihara
Hi, http://github.com/php/php-src is not updated for a long time. Probably, it has not worked correctly since removing trunk. I hope that it will work again. (Is this report suitable for this list?) Thanks. -- Kousuke Ebihara -- PHP Internals - PHP Runtime Development Mailing List To

Re: [PHP-DEV] Output buffering patch

2010-04-07 Thread Zeev Suraski
At 09:58 07/04/2010, Michael Wallner wrote: Here you go: http://wiki.php.net/rfc/new-output-api Thanks Mike - that's very helpful! Quick question - other than fixing the issues mentioned in the intro section of the RFC, are there any changes to the behavior of userland-accessible functions

[PHP-DEV] Repetitive calling of Z_STRLEN_P(value) in ext/filter/logical_filter.c

2010-04-07 Thread Justin Dearing
Hey, Sorry for pestering with excessive questions, but I've not done a lot of C programming. In filter.c, specificalyl in php_filter_validate_ip(), Z_STRLEN_P(value) gets called a lot. I know compilers tend to inline short functions, but are they smart enough to assign a variable to a repetive

Re: [PHP-DEV] Repetitive calling of Z_STRLEN_P(value) in ext/filter/logical_filter.c

2010-04-07 Thread Michael Maclean
Justin Dearing wrote: Hey, Sorry for pestering with excessive questions, but I've not done a lot of C programming. In filter.c, specificalyl in php_filter_validate_ip(), Z_STRLEN_P(value) gets called a lot. I know compilers tend to inline short functions, but are they smart enough to

[PHP-DEV] Mysql completing Query fast but mysql-query() takes long time to return even single selects/updates

2010-04-07 Thread David Murphy
As you can see PHP claims it took 20 seconds for mysql-query() to return but mysql think is took around 1.0s This is from our application I enabled profile in mysql to determine why an update took 20seconds. As you can see MySQL reported no where near that amount of duration took place.

[PHP-DEV] Bug 47435[Was]: Re: [PHP-DEV] What gruntwork needs to be done

2010-04-07 Thread Justin Dearing
Ramus, On Tue, Apr 6, 2010 at 1:34 PM, Rasmus Lerdorf ras...@lerdorf.com wrote: Here is a straightforward (but not easy) one: http://bugs.php.net/bug.php?id=47435 I actually found it easy, slightly tedious, and not straightforward. I guess its perspective. I am CCing my former colleague

Re: [PHP-DEV] Output buffering patch

2010-04-07 Thread Michael Wallner
Am 07.04.2010 16:37, schrieb Zeev Suraski: At 09:58 07/04/2010, Michael Wallner wrote: Here you go: http://wiki.php.net/rfc/new-output-api Thanks Mike - that's very helpful! Quick question - other than fixing the issues mentioned in the intro section of the RFC, are there any changes to the

[PHP-DEV] Re: Bug 47435[Was]: Re: [PHP-DEV] What gruntwork needs to be done

2010-04-07 Thread Justin Dearing
On Wed, Apr 7, 2010 at 3:39 PM, Rasmus Lerdorf ras...@lerdorf.com wrote: I'm ok with these. Like you say, this stuff is a bit tedious to sort through, and anything we can do to make it easier on users is a good thing. I'm trying to get the filter extension beefed up in the next version of

[PHP-DEV] Re: Bug 47435[Was]: Re: [PHP-DEV] What gruntwork needs to be done

2010-04-07 Thread Michael Graziano
Ramus, On Tue, Apr 6, 2010 at 1:34 PM, Rasmus Lerdorf ras...@lerdorf.com wrote: Here is a straightforward (but not easy) one: http://bugs.php.net/bug.php?id=47435 I actually found it easy, slightly tedious, and not straightforward. I guess its perspective. I am CCing my former

Re: [PHP-DEV] Re: Bug 47435[Was]: Re: [PHP-DEV] What gruntwork needs to be done

2010-04-07 Thread Ferenc Kovacs
I want both!!! :) Tyrael On Wed, Apr 7, 2010 at 11:18 PM, Michael Graziano mi...@bsd-box.net wrote: Ramus, On Tue, Apr 6, 2010 at 1:34 PM, Rasmus Lerdorf ras...@lerdorf.com wrote: Here is a straightforward (but not easy) one: http://bugs.php.net/bug.php?id=47435 I actually