RE: [PHP-DEV] [PATCH] Major optimization for heredocs/interpolated strings

2007-05-16 Thread Dmitry Stogov
The patch mainly improves not the parser, but generated code. It builds near optimal ZEND_ADD_STRING, ZEND_ADD_VAR sequence for quoted strings and heredoc. You can see a small difference even on Zend/bench.php. Thanks. Dmitry. > -Original Message- > From: Stanislav Malyshev [mailto:[EMAIL

RE: [PHP-DEV] [PATCH] Major optimization for heredocs/interpolated strings

2007-05-16 Thread Dmitry Stogov
Yes. Right. Usage of number eliminates runtime conversion. Dmitry. > -Original Message- > From: Stanislav Malyshev [mailto:[EMAIL PROTECTED] > Sent: Wednesday, May 16, 2007 9:23 PM > To: Matt Wilmas > Cc: internals@lists.php.net; Dmitry Stogov; 'Andi Gutmans' > Subject: Re: [PHP-DEV] [P

Re: [PHP-DEV] PHP 6 Preview

2007-05-16 Thread Marcus Boerger
Hello Pierre, thanks for the clarification. best regards marcus Wednesday, May 16, 2007, 9:56:25 PM, you wrote: > On 5/16/07, Marcus Boerger <[EMAIL PROTECTED]> wrote: >> Hello internals, >> >> I don't see any progress for PHP 6 in the last several months. And we >> head more and more into

Re: [PHP-DEV] [PATCH] Major optimization for heredocs/interpolated strings

2007-05-16 Thread Stanislav Malyshev
Do we have any good performance testcases for the patch that show how it improves the parser? The updated 5.2 patch is at the same address, http://realplain.com/php/scanner_optimizations_5_2.diff, and the original was moved to http://realplain.com/php/scanner_optimizations_5_2-v1.diff -- Stan

[PHP-DEV] delete_global_variable & session_unset

2007-05-16 Thread Stanislav Malyshev
/* Sorry if you see this email twice, I sent it to a wrong list initially. */ I recently noticed that session_unset in 5.2 (and probably in 6) uses delete_global_variable which looks up global scope and then deletes variable from it. Fine so far, but it does it in a loop - meaning it looks for t

Re: [PHP-DEV] PHP 6 Preview

2007-05-16 Thread Pierre
On 5/16/07, Marcus Boerger <[EMAIL PROTECTED]> wrote: Hello internals, I don't see any progress for PHP 6 in the last several months. And we head more and more into a situation where people no longer develop in HEAD and instead develop in 5.2 without caring to MFB. Please tell these "people"

[PHP-DEV] comment to Bug #41408

2007-05-16 Thread Carsten Wiedmann
Sorry for writing here, but can't comment a closed bug. PHPIniDir "C:\Program Files\PHP\" Quoting (all) filesystem paths is always a good idea. For a correct solution you should allways use forwardslashs in the Apache config files, also on Windows: | PHPIniDir "C:/Program Files/PHP" Regards,

Re: [PHP-DEV] PHP 6 Preview

2007-05-16 Thread Antony Dovgal
On 16.05.2007 18:21, Marcus Boerger wrote: Hello internals, I don't see any progress for PHP 6 in the last several months. And we head more and more into a situation where people no longer develop in HEAD and instead develop in 5.2 without caring to MFB. All I know is that we are waiting for

Re: [PHP-DEV] PHP 6 Preview

2007-05-16 Thread Johannes Schlüter
Hi Marcus, for making HEAD the main development branch we should try to reduce the number of failing tests. Running run-tests.php -n currently still shows 42 tests failing on my current setup. As long as that many tests fail it's hard to see if a patch breaks anything in there. I recently spent so

[PHP-DEV] Re: RE : [RFC] Starting 5.3

2007-05-16 Thread Greg Beaver
LAUPRETRE François (P) wrote: >> From: Stanislav Malyshev [mailto:[EMAIL PROTECTED] >> >> Actually, I would say it would be better to have some "minimized" >> version which is extract-only, has all the comments stripped, etc. >> for inclusion in the archives. > > There's a difference between pha

Re: [PHP-DEV] PHP 6 Preview

2007-05-16 Thread l0t3k
"Michael Wallner" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > l0t3k wrote: >>> Where? Will it be "eat it or die" when you're done? >>> There've been no replies from core developers to my postings on >>> php-i18n about providing ResourceBundle API except a single notice >>> from

Re: [PHP-DEV] [PATCH] Major optimization for heredocs/interpolated strings

2007-05-16 Thread Stanislav Malyshev
The updated 5.2 patch is at the same address, http://realplain.com/php/scanner_optimizations_5_2.diff, and the original was moved to http://realplain.com/php/scanner_optimizations_5_2-v1.diff I've noticed a slight difference between how PHP worked without and with this patch. Previously, if you

Re: [PHP-DEV] PHP 6 Preview

2007-05-16 Thread Michael Wallner
l0t3k wrote: > "Michael Wallner" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >> Where? Will it be "eat it or die" when you're done? >> There've been no replies from core developers to my postings on >> php-i18n about providing ResourceBundle API except a single notice >> from

Re: [PHP-DEV] PHP 6 Preview

2007-05-16 Thread l0t3k
"Michael Wallner" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Where? Will it be "eat it or die" when you're done? > There've been no replies from core developers to my postings on > php-i18n about providing ResourceBundle API except a single notice > from Andrei. i think i chi

Re: [PHP-DEV] PHP 6 Preview

2007-05-16 Thread l0t3k
if someone has specific ICU tasks, i can pitch in. i have some (calendar) locale info fetching code i've been meaning to finish off.. "Stanislav Malyshev" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >> And besides this filter issue, what are the remaining pieces to be done? > >

[PHP-DEV] Re: #41401 [Opn->Bgs]: Order of Operations error on divide by negative

2007-05-16 Thread Michael Wallner
Michael Wallner wrote: > Should all these three examples give the same result? ^ n't > $ php -r 'var_dump(-1/2*5, 1/-2*5, 1/2*-5);' > float(-2.5) > float(-0.1) > float(-2.5) Sorry, -- Michael -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.ph

Re: [PHP-DEV] PHP 6 Preview

2007-05-16 Thread Michael Wallner
Stanislav Malyshev wrote: > There's also some work to be done on supporting more of the icu > functionality. It's in progress now. Where? Will it be "eat it or die" when you're done? There've been no replies from core developers to my postings on php-i18n about providing ResourceBundle API excep

Re: [PHP-DEV] PHP 6 Preview

2007-05-16 Thread Stanislav Malyshev
And besides this filter issue, what are the remaining pieces to be done? There's also some work to be done on supporting more of the icu functionality. It's in progress now. -- Stanislav Malyshev, Zend Products Engineer [EMAIL PROTECTED] http://www.zend.com/ -- PHP Internals - PHP Runtime De

[PHP-DEV] Large amount of data over SOAP / MTOM

2007-05-16 Thread Gal
Hello Developers, I'll appreciate your answer to the following questions: 1) What standard modules in PHP enable to move large amount of data over a SOAP response (I know about DIME support)? 2) Is there a plan to support MTOM in PHP? Thank you in advance, Gal -- PHP Internals - PHP Runtime D

Re: [PHP-DEV] Re: #41401 [Opn->Bgs]: Order of Operations error on divide by negative

2007-05-16 Thread Richard Quadling
On 16/05/07, Brian Moon <[EMAIL PROTECTED]> wrote: Michael Wallner wrote: > [EMAIL PROTECTED] wrote: >> ID: 41401 >> Updated by: [EMAIL PROTECTED] >> Reported By: drlippman at yahoo dot com >> -Status: Open >> +Status: Bogus >> Bug Type: Ma

[PHP-DEV] PHP 6 Preview

2007-05-16 Thread Marcus Boerger
Hello internals, I don't see any progress for PHP 6 in the last several months. And we head more and more into a situation where people no longer develop in HEAD and instead develop in 5.2 without caring to MFB. All I know is that we are waiting for the filter extension. As it appears right now

Re: [PHP-DEV] Re: #41401 [Opn->Bgs]: Order of Operations error on divide by negative

2007-05-16 Thread Matt Wilmas
Hi Richard, - Original Message - From: "Richard Quadling" Sent: Wednesday, May 16, 2007 [...] > If you use variables, then this works fine ... > > php -r "$a = 1; $b = -2; $c = 5; var_dump($a/$b*$c);" > float(-2.5) Certainly. :-) The problem seems to be the parser is acting weird as fa

Re: [PHP-DEV] Re: #41401 [Opn->Bgs]: Order of Operations error on divide by negative

2007-05-16 Thread Brian Moon
Brian Moon wrote: According to my memory of Please My Dear Aunt Sally these should be: -1/2*5 = -.1 1/-2*5 = -.1 1/2*-5 = -.1 So, that is bad if PHP answers that way. Someone please correct me if my memory is wrong. Is there some rule that negative values should be done first before positiv

Re: [PHP-DEV] Tests - and a question

2007-05-16 Thread Marcus Boerger
Hello Raghubansh, if such a mapping becomes more important i'd say we go with a xml file mapping maintained in either php-src or phpdoc cvs module. That way we do not have to rename all files and loose history. best regards marcus Wednesday, May 16, 2007, 1:58:42 PM, you wrote: > Hello Zoe, >

Re: [PHP-DEV] Re: #41401 [Opn->Bgs]: Order of Operations error on divide by negative

2007-05-16 Thread Brian Moon
Michael Wallner wrote: [EMAIL PROTECTED] wrote: ID: 41401 Updated by: [EMAIL PROTECTED] Reported By: drlippman at yahoo dot com -Status: Open +Status: Bogus Bug Type: Math related Operating System: Windows, Linux PHP Version: 4.4.7

Re: [PHP-DEV] Re: #41401 [Opn->Bgs]: Order of Operations error on divide by negative

2007-05-16 Thread Richard Quadling
On 16/05/07, Uwe Schindler <[EMAIL PROTECTED]> wrote: > Should all these three examples give the same result? > > $ php -r 'var_dump(-1/2*5, 1/-2*5, 1/2*-5);' > float(-2.5) > float(-0.1) > float(-2.5) They should all give -2.5! But I think "normal programmers" will use braces in such situations.

RE: [PHP-DEV] Re: #41401 [Opn->Bgs]: Order of Operations error on divide by negative

2007-05-16 Thread Uwe Schindler
> Should all these three examples give the same result? > > $ php -r 'var_dump(-1/2*5, 1/-2*5, 1/2*-5);' > float(-2.5) > float(-0.1) > float(-2.5) They should all give -2.5! But I think "normal programmers" will use braces in such situations... -- PHP Internals - PHP Runtime Development Mailing

[PHP-DEV] Re: #41401 [Opn->Bgs]: Order of Operations error on divide by negative

2007-05-16 Thread Michael Wallner
[EMAIL PROTECTED] wrote: > ID: 41401 > Updated by: [EMAIL PROTECTED] > Reported By: drlippman at yahoo dot com > -Status: Open > +Status: Bogus > Bug Type: Math related > Operating System: Windows, Linux > PHP Version: 4.4.7 > New Com

Re: [PHP-DEV] dom strange behaviours

2007-05-16 Thread Rob Richards
kepbepos kepbepos wrote: Hi all, I've some problems with getAttribute* methods. I thing it is a bug, but before send it, I'd like to propose a little test to you all, just to have a confirmation (maybe is my installation only). PHP 5.2.x has correct behavior (see bug 38474) based on W3C spec

Re: [PHP-DEV] RE : [RFC] Starting 5.3

2007-05-16 Thread Pierre
On 5/16/07, LAUPRETRE François (P) <[EMAIL PROTECTED]> wrote: Now, php-internal members, read the docs, try both tools on YOUR software, compare the time and efforts it took in both cases, and make your own opinion. But, please, make a TECHNICAL choice, don't base it on friendship or personal

Re: [PHP-DEV] Tests - and a question

2007-05-16 Thread Raghubansh
Hello Zoe, It would be nice thing to have mapping between categorization of the functions in the php doc and the source/test tree structure but keeping the tree structure as per the source code is better thing to do. If i have got it right as of now the testcases are places based on the location o

[PHP-DEV] RE : [RFC] Starting 5.3

2007-05-16 Thread P
> From: Stanislav Malyshev [mailto:[EMAIL PROTECTED] > > Actually, I would say it would be better to have some "minimized" > version which is extract-only, has all the comments stripped, > etc. for > inclusion in the archives. There's a difference between phar and PHK here. PHK is not a deplo

Re: [PHP-DEV] [PATCH] Major optimization for heredocs/interpolated strings

2007-05-16 Thread Matt Wilmas
Hi all, After an off-list discussion with Dmitry, the patch has been updated. Mostly to remove old rules I had left (that returned T_CHARACTER, etc.) since the new "super rules" can match what they did. So now every "piece" of a non-constant string returns T_ENCAPSED_AND_WHITESPACE. I also added

Re: [PHP-DEV] dom strange behaviours

2007-05-16 Thread Marco Kaiser
hi, looks like you have an problem or this has been fixed with php 5.2.2. Or can you maybe explain what you expect? my results are: Current PHP version: 5.2.2 getting id -- getAttribute('id'): getAttribute('xml:id'):one getAttributeNS('xml','id'): getAttribute('at'):