RE: [PHP-DEV] Give the Language a Rest motion

2006-03-09 Thread Dmitry Stogov
Just for info: GCC-4.1 now uses faster hand-written recursive-descent parser (instead of bison generated). Thanks. Dmitry. > -Original Message- > From: Zeev Suraski [mailto:[EMAIL PROTECTED] > Sent: Friday, March 10, 2006 2:26 AM > To: Marcus Boerger > Cc: Sara Golemon; internals@lists.p

Re: [PHP-DEV] primary file realpath change

2006-03-09 Thread Andi Gutmans
Seems that needs fixing then (non-TSRM). We should support the realpath cache also in non-TSRM mode. At 10:31 PM 3/9/2006, Rasmus Lerdorf wrote: Andi Gutmans wrote: Are you sure VCWD_REALPATH doesn't use the realpath cache? It did last time I checked and I think is still the right method to us

Re: [PHP-DEV] primary file realpath change

2006-03-09 Thread Rasmus Lerdorf
Rasmus Lerdorf wrote: Andi Gutmans wrote: Are you sure VCWD_REALPATH doesn't use the realpath cache? It did last time I checked and I think is still the right method to use there... quite #define VCWD_REALPATH(path, real_path) realpath(path, real_path) By the way, I agree that expand_filepa

Re: [PHP-DEV] primary file realpath change

2006-03-09 Thread Rasmus Lerdorf
Andi Gutmans wrote: Are you sure VCWD_REALPATH doesn't use the realpath cache? It did last time I checked and I think is still the right method to use there... quite #define VCWD_REALPATH(path, real_path) realpath(path, real_path) -Rasmus -- PHP Internals - PHP Runtime Development Mailing Li

Re: [PHP-DEV] primary file realpath change

2006-03-09 Thread Andi Gutmans
Are you sure VCWD_REALPATH doesn't use the realpath cache? It did last time I checked and I think is still the right method to use there... At 09:13 PM 3/9/2006, Brian J. France wrote: Does anybody see a problem with this patch (which is currently against the 5.1.2 release)? expand_filepath wi

[PHP-DEV] primary file realpath change

2006-03-09 Thread Brian J. France
Does anybody see a problem with this patch (which is currently against the 5.1.2 release)? expand_filepath will eventual do a realpath, but it also uses the realpath cache before calling realpath. VCWD_REALPATH just maps directly to realpath and doesn't use the realpath cache so for every

[PHP-DEV] CVS Account Request: gopalv

2006-03-09 Thread Gopal Vijayaraghavan
Fix bugs in APC and occasionally introduce new ones. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] GOTO and/or BREAK LABEL

2006-03-09 Thread Xuefer
On 3/9/06, Steph Fox <[EMAIL PROTECTED]> wrote: > Please, Xuefer! Your vote was already recorded, shhh! i wasn't to vote more than once. it's same vote but with a bit different syntax changed. oh well, the result is out, this is only my explaination.

[PHP-DEV] Re: Nuking safe_mode

2006-03-09 Thread Peter Brodersen
Hi, Just got home from a month in South America and is trying to catch up on old posts... On Sat, 18 Feb 2006 17:02:32 -0800, in php.internals [EMAIL PROTECTED] (Andi Gutmans) wrote: >I'm nuking safe_mode and I found something odd. In streams, >php_plain_files_unlink() only checks php_check_ope

Re: [PHP-DEV] Give the Language a Rest motion

2006-03-09 Thread Marcus Boerger
Hello Zeev, yeah! which is why there is no need to do anything on that front :-) marcus Friday, March 10, 2006, 12:26:20 AM, you wrote: > No speed boost with opcode caches, which will be bundled in PHP 6 :) > Zeev > At 01:15 10/03/2006, Marcus Boerger wrote: >>Hello Sara, >> >> but if we

Re: [PHP-DEV] Give the Language a Rest motion

2006-03-09 Thread Zeev Suraski
No speed boost with opcode caches, which will be bundled in PHP 6 :) Zeev At 01:15 10/03/2006, Marcus Boerger wrote: Hello Sara, but if we were moving from flex to re2c for that tokenizing scripts we'd get a nice speed boost, too. Typically re2c based scanners are 2 to 3 times faster than le

Re: [PHP-DEV] Give the Language a Rest motion

2006-03-09 Thread Marcus Boerger
Hello Sara, but if we were moving from flex to re2c for that tokenizing scripts we'd get a nice speed boost, too. Typically re2c based scanners are 2 to 3 times faster than lex based ones. And oh-re2c allows unicode scanning (2 byte input) and you can use the same .re to generate two .c files if

Re: [PHP-DEV] Give the Language a Rest motion

2006-03-09 Thread Lukas Smith
Steph Fox wrote: Perhaps there could be just the one hard rule. 'If it's possible to implement it as an extension, do so.' There'd be nothing to prevent co-opting essential functionality into the core, but also nothing preventing fly-by-night technologies from having support in PHP. The bigge

Re: [PHP-DEV] Re: GOTO and/or BREAK LABEL (conclusion)

2006-03-09 Thread Zeev Suraski
At 22:43 09/03/2006, Lester Caine wrote: Zeev Suraski wrote: You are back to the main problem, you cannot educate people by keeping them away from the "dangerous" functions. Uhm, of course you can. Avoiding problems is by far the best way of solving them. But it has nothing to do with our to

Re: [PHP-DEV] Re: GOTO and/or BREAK LABEL (conclusion)

2006-03-09 Thread Lester Caine
Zeev Suraski wrote: You are back to the main problem, you cannot educate people by keeping them away from the "dangerous" functions. Uhm, of course you can. Avoiding problems is by far the best way of solving them. But it has nothing to do with our topic. So can we have a 'disable' switch

Re: [PHP-DEV] Re: GOTO and/or BREAK LABEL (conclusion)

2006-03-09 Thread Steph Fox
The reason for using jump is "because it is not a full analog of C's goto statement". It's my guess that experienced developers will want to lookup what the behaviour in PHP is. Cool. You just gave an excellent argument for not calling it 'goto' :) Seriously, the manual entry will probably use

[PHP-DEV] Re: php5 reads /etc/group on start

2006-03-09 Thread kjc
i've done some more analysis and I see where it uses /usr/lib/nss_files.so.1 during the start up phase- probably this very getgroups call. I think that would do it. but why? another question: is the ext/posix/posix.c bypassed when configured --disable-posix? your help is very much appreciated.

Re: [PHP-DEV] Re: GOTO and/or BREAK LABEL (conclusion)

2006-03-09 Thread Bart de Boer
Steph Fox wrote: If someone is searching for "goto" he/she most likely knows what he/she is looking for. So this also helps experienced developers who are new to PHP. An experienced developer would know how to use it...! That was kind of the point. - Steph The reason for using jump is "bec

Re: [PHP-DEV] Give the Language a Rest motion

2006-03-09 Thread Benj Carson
> How do we do it? Unfortunately, I can't come up with a real mechanism > to 'enforce' a due process and reasoning for new features. One mechanism that the MapServer project[1] has adopted is that all "major" features require an RFC before they are accepted and implemented. Whoever is proposin

Re: [PHP-DEV] Re: GOTO and/or BREAK LABEL (conclusion)

2006-03-09 Thread Steph Fox
If someone is searching for "goto" he/she most likely knows what he/she is looking for. So this also helps experienced developers who are new to PHP. An experienced developer would know how to use it...! That was kind of the point. - Steph -- PHP Internals - PHP Runtime Development Mailing L

Re: [PHP-DEV] Re: GOTO and/or BREAK LABEL (conclusion)

2006-03-09 Thread Bart de Boer
Steph Fox wrote: BdB>>Even though I like "jump", people will most likely be searching for BdB>>"goto" (PHP manual) or "goto PHP" (Google) when they're trying to BdB>>find out if PHP has such a functionality. So, maybe it's better to BdB>>just call it "goto". For such people we might have a page

Re: [PHP-DEV] Give the Language a Rest motion

2006-03-09 Thread Steph Fox
I'd like to raise a motion to 'Give the Language a Rest'. Tired inbox? :) Almost a decade since we started with the 2nd iteration on the syntax (PHP 3), and 2 more major versions since then, and we're still heatedly debating on adding new syntactical, core level features. Is it really neces

Re: [PHP-DEV] Re: GOTO and/or BREAK LABEL (conclusion)

2006-03-09 Thread Zeev Suraski
At 19:37 09/03/2006, Pierre wrote: On 3/9/06, Steph Fox <[EMAIL PROTECTED]> wrote: > > BdB>>Even though I like "jump", people will most likely be searching for > > BdB>>"goto" (PHP manual) or "goto PHP" (Google) when they're trying to > > BdB>>find out if PHP has such a functionality. So, maybe i

Re: [PHP-DEV] foreach, assigning to a reference, and E_NOTICE

2006-03-09 Thread Paul Reinheimer
Being the colleague Sean refered to in his first post I thought I might weigh in. While I agree that once I looked at the base case that Sean worked out of my code the problem didn't take too long to recognize, that's not where I first experianced the problem. Problems first rear their head deep w

Re: [PHP-DEV] Give the Language a Rest motion

2006-03-09 Thread Stanislav Malyshev
DZ>>The web is one of the most quickly changing areas in computer technology. DZ>>PHP, being primarily a language for web sites and applications, has to DZ>>change constantly in order to be able to remain competitive. And it still I don't see any real connection between new Web technologies and ch

Re: [PHP-DEV] Give the Language a Rest motion

2006-03-09 Thread Sara Golemon
The inability to inject tokens and expressions into the lexer and parser is another limitation on what can be done from extensions in terms of syntax level features. Yes, I know this is more of a problem with bison and flex than with the design of ZE, but that doesn't make it any less bothersome.

Re: [PHP-DEV] Re: GOTO and/or BREAK LABEL (conclusion)

2006-03-09 Thread Stanislav Malyshev
SF>>Erm, wouldn't those people who need to refer to the manual be exactly the SF>>same people we wanted to protect from goto in the first place? :) OK, make it: goto: you don't really want to use it, but if you are still curious, see "jump". -- Stanislav Malyshev, Zend Products Engineer [EMAIL

Re: [PHP-DEV] Re: GOTO and/or BREAK LABEL (conclusion)

2006-03-09 Thread Pierre
On 3/9/06, Steph Fox <[EMAIL PROTECTED]> wrote: > > BdB>>Even though I like "jump", people will most likely be searching for > > BdB>>"goto" (PHP manual) or "goto PHP" (Google) when they're trying to > > BdB>>find out if PHP has such a functionality. So, maybe it's better to > > BdB>>just call it "

Re: [PHP-DEV] Re: GOTO and/or BREAK LABEL (conclusion)

2006-03-09 Thread Steph Fox
BdB>>Even though I like "jump", people will most likely be searching for BdB>>"goto" (PHP manual) or "goto PHP" (Google) when they're trying to BdB>>find out if PHP has such a functionality. So, maybe it's better to BdB>>just call it "goto". For such people we might have a page in the manual sayi

Re: [PHP-DEV] Give the Language a Rest motion

2006-03-09 Thread Jared White
Sure, after you folks implement named parameters. :) *ducks and tries to hide* Jared On Mar 9, 2006, at 2:57 AM, Zeev Suraski wrote: I'd like to raise a motion to 'Give the Language a Rest'. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/u

Re: [PHP-DEV] Give the Language a Rest motion

2006-03-09 Thread Sebastian Bergmann
Sara Golemon schrieb: > The inability to inject tokens and expressions into the lexer and > parser is another limitation on what can be done from extensions in > terms of syntax level features. Yes, I know this is more of a problem > with bison and flex than with the design of ZE, but that does

Re: [PHP-DEV] Re: GOTO and/or BREAK LABEL (conclusion)

2006-03-09 Thread Sara Golemon
Even though I like "jump", people will most likely be searching for "goto" (PHP manual) or "goto PHP" (Google) when they're trying to find out if PHP has such a functionality. So, maybe it's better to just call it "goto". Agreed. As the man said this morning, let's "Consider our Audience". "G

Re: [PHP-DEV] Give the Language a Rest motion

2006-03-09 Thread Sara Golemon
Apart from namespaces, I can't think of any other "syntactical core level feature" missing that could not be implemented as an extension. Goto can't... Well, okay fine. It can, but at a significantly greater cost and complexity. By that token namespaces can be done in an extension too (You

Re: [PHP-DEV] Re: GOTO and/or BREAK LABEL (conclusion)

2006-03-09 Thread Stanislav Malyshev
BdB>>Even though I like "jump", people will most likely be searching for BdB>>"goto" (PHP manual) or "goto PHP" (Google) when they're trying to BdB>>find out if PHP has such a functionality. So, maybe it's better to BdB>>just call it "goto". For such people we might have a page in the manual sa

Re: [PHP-DEV] Give the Language a Rest motion

2006-03-09 Thread Brian Moon
Zeev Suraski wrote: > I'd like to raise a motion to 'Give the Language a Rest'. +1 Brian Moon dealnews.com -- How to go broke saving money. http://dealnews.com/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: GOTO and/or BREAK LABEL (conclusion)

2006-03-09 Thread Pierre
On Thu, 9 Mar 2006 11:03:48 +0300 [EMAIL PROTECTED] ("Dmitry Stogov") wrote: > Hi, > > The solution (2) - "goto only" is the winner. > So in case of no serious objections, I'll commit the "goto.diff" > patch in 24 hour. > > The last question: > What do you thin about Andi's solution about using

Re: [PHP-DEV] Re: GOTO and/or BREAK LABEL (conclusion)

2006-03-09 Thread Derick Rethans
On Thu, 9 Mar 2006, Bart de Boer wrote: > Even though I like "jump", people will most likely be searching for "goto" > (PHP manual) or "goto PHP" (Google) when they're trying to find out if PHP has > such a functionality. So, maybe it's better to just call it "goto". > > PHP will give some kind o

Re: [PHP-DEV] Re: GOTO and/or BREAK LABEL (conclusion)

2006-03-09 Thread Pierre
On Thu, 9 Mar 2006 11:03:48 +0300 [EMAIL PROTECTED] ("Dmitry Stogov") wrote: > Hi, > > The solution (2) - "goto only" is the winner. > So in case of no serious objections, I'll commit the "goto.diff" > patch in 24 hour. > > The last question: > What do you thin about Andi's solution about using "j

[PHP-DEV] Re: GOTO and/or BREAK LABEL (conclusion)

2006-03-09 Thread Bart de Boer
Greg Beaver wrote: Dmitry Stogov wrote: Hi, The solution (2) - "goto only" is the winner. So in case of no serious objections, I'll commit the "goto.diff" patch in 24 hour. The last question: What do you thin about Andi's solution about using "jump" instead of "goto"? It may make sense, beca

Re: [PHP-DEV] 5.1.3RC1 is out

2006-03-09 Thread Edin Kadribasic
Windows binaries are available in a slightly different place: http://downloads.php.net/edink/php-5.1.3RC1-Win32.zip Edin Ilia Alshanetsky wrote: > Here goes the first RC of the 5.1.3 release, a whole slew of bugs fixes > and a few minor feature enchantments. Please test this release as > extens

[PHP-DEV] Re: GOTO and/or BREAK LABEL (conclusion)

2006-03-09 Thread Greg Beaver
Dmitry Stogov wrote: > Hi, > > The solution (2) - "goto only" is the winner. > So in case of no serious objections, I'll commit the "goto.diff" patch in 24 > hour. > > The last question: > What do you thin about Andi's solution about using "jump" instead of "goto"? > > It may make sense, becaus

[PHP-DEV] 5.1.3RC1 is out

2006-03-09 Thread Ilia Alshanetsky
Here goes the first RC of the 5.1.3 release, a whole slew of bugs fixes and a few minor feature enchantments. Please test this release as extensively as possible and let us know via bug reports if you come across any problems. The tarballs are available here: http://downloads.php.net/ilia/php-

Re: [PHP-DEV] GOTO and/or BREAK LABEL (conclusion)

2006-03-09 Thread João Cruz Morais
At 10:03 09/03/2006, Dmitry Stogov wrote: >>The last question: >>What do you thin about Andi's solution about using "jump" instead of "goto"? Great! Yet another keyword. PHP keeps surprising the world... >>It may make sense, because it is not a full analog of C's goto statement. It >>is a lim

Re: [PHP-DEV] Give the Language a Rest motion

2006-03-09 Thread David Zülke
I might be missing something here, but I thought the people discussing things on this list are members of the user base. Thus, they likely propose syntax changes and improvements because they need them. I have to say that I don't really get that argument some people bring forward over and

Re: [PHP-DEV] Give the Language a Rest motion

2006-03-09 Thread Zeev Suraski
Good response, but it wasn't even 30 minutes :) Zeev At 13:07 09/03/2006, Sebastian Bergmann wrote: Zeev Suraski schrieb: > we're still heatedly debating on adding new syntactical, core level > features. Apart from namespaces, I can't think of any other "syntactical core level feature" missi

Re: [PHP-DEV] Give the Language a Rest motion

2006-03-09 Thread Sebastian Bergmann
Zeev Suraski schrieb: > we're still heatedly debating on adding new syntactical, core level > features. Apart from namespaces, I can't think of any other "syntactical core level feature" missing that could not be implemented as an extension. Sara and Marcus have already shown (with the Operat

Re: [PHP-DEV] GOTO and/or BREAK LABEL (conclusion)

2006-03-09 Thread Zeev Suraski
jump makes more sense than goto. We bounced it off in the Paris meeting, IIRC it was fairly popular in case we go down the route of this semantics. Zeev At 10:03 09/03/2006, Dmitry Stogov wrote: Hi, The solution (2) - "goto only" is the winner. So in case of no serious objections, I'll comm

[PHP-DEV] Give the Language a Rest motion

2006-03-09 Thread Zeev Suraski
I'd like to raise a motion to 'Give the Language a Rest'. Almost a decade since we started with the 2nd iteration on the syntax (PHP 3), and 2 more major versions since then, and we're still heatedly debating on adding new syntactical, core level features. Is it really necessary? I'd say in

Re: [PHP-DEV] GOTO and/or BREAK LABEL (conclusion)

2006-03-09 Thread Andrey Hristov
Jon Dowland wrote: At 1141902889, Andrey Hristov wrote: sorry for sending second email. Another choice could be `leave`, which seems better than `escape` (clashes with escaping sequences). I think `leave` has too many connotations with `break` and similar commands, and could be misleading.

Re: [PHP-DEV] GOTO and/or BREAK LABEL (conclusion)

2006-03-09 Thread Jon Dowland
At 1141895342, Derick Rethans wrote: > On Thu, 9 Mar 2006, Dmitry Stogov wrote: > > The last question: What do you thin about Andi's solution about > > using "jump" instead of "goto"? > > I don't really mind... but I wonder why you want to do this? Both work > equally well and most people are fami

Re: [PHP-DEV] GOTO and/or BREAK LABEL (conclusion)

2006-03-09 Thread Jon Dowland
At 1141902889, Andrey Hristov wrote: > sorry for sending second email. Another choice could be `leave`, which > seems better than `escape` (clashes with escaping sequences). I think `leave` has too many connotations with `break` and similar commands, and could be misleading. -- Jon Dowland http:

Re: [PHP-DEV] GOTO and/or BREAK LABEL (conclusion)

2006-03-09 Thread Andrey Hristov
Hi, sorry for sending second email. Another choice could be `leave`, which seems better than `escape` (clashes with escaping sequences). Andrey Andrey Hristov wrote: Hi, Dmitry Stogov wrote: I am indifferent - "goto" or "jump", but may be others don't. what about `escape`? Thanks. Dmi

Re: [PHP-DEV] GOTO and/or BREAK LABEL (conclusion)

2006-03-09 Thread Andrey Hristov
Hi, Dmitry Stogov wrote: I am indifferent - "goto" or "jump", but may be others don't. what about `escape`? Thanks. Dmitry. -Original Message- From: Derick Rethans [mailto:[EMAIL PROTECTED] Sent: Thursday, March 09, 2006 11:09 AM To: Dmitry Stogov Cc: internals@lists.php.net Su

RE: [PHP-DEV] GOTO and/or BREAK LABEL (conclusion)

2006-03-09 Thread Dmitry Stogov
I am indifferent - "goto" or "jump", but may be others don't. Thanks. Dmitry. > -Original Message- > From: Derick Rethans [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 09, 2006 11:09 AM > To: Dmitry Stogov > Cc: internals@lists.php.net > Subject: Re: [PHP-DEV] GOTO and/or BREAK LABEL

Re: [PHP-DEV] GOTO and/or BREAK LABEL (conclusion)

2006-03-09 Thread Derick Rethans
On Thu, 9 Mar 2006, Dmitry Stogov wrote: > Hi, > > The solution (2) - "goto only" is the winner. > So in case of no serious objections, I'll commit the "goto.diff" patch in 24 > hour. > > The last question: > What do you thin about Andi's solution about using "jump" instead of "goto"? I don't

[PHP-DEV] GOTO and/or BREAK LABEL (conclusion)

2006-03-09 Thread Dmitry Stogov
Hi, The solution (2) - "goto only" is the winner. So in case of no serious objections, I'll commit the "goto.diff" patch in 24 hour. The last question: What do you thin about Andi's solution about using "jump" instead of "goto"? It may make sense, because it is not a full analog of C's goto sta