Re: [PHP-DEV] RFC: allow_call_pass_by_reference

2008-05-22 Thread Alexey Zakhlestin
On Wed, May 21, 2008 at 10:46 PM, LEW21 [EMAIL PROTECTED] wrote: Sometimes call time pass by reference is useful, for example when you want to make it possible to omit an param (normally passed by reference) by setting null. With no call time pass by reference, programmers are required to

Re: [PHP-DEV] RFC: allow_call_pass_by_reference

2008-05-22 Thread Stan Vassilev | FM
Hi, There is a use case for the function allowing *explicitly* call-time pass by reference, because the function works both ways in subtly different ways. I have some libraries where I had to have variations of the functions like AbcByRefr() and Abc(), because of this inflexibility. In a

Re: [PHP-DEV] Short syntax for array literals [...]

2008-05-22 Thread Pierre Joye
On Thu, May 22, 2008 at 5:53 AM, Stanislav Malyshev [EMAIL PROTECTED] wrote: Hi! $a = [[1, 2], [3, 4], 5, 6]; Proposed twice at least, but PHP developer community doesn't seem to like it. Many of us like it. And the end users I know like it too. Cheers, -- Pierre http://blog.thepimp.net |

Re: [PHP-DEV] Short syntax for array literals [...]

2008-05-22 Thread Antony Dovgal
On 22.05.2008 13:46, Pierre Joye wrote: On Thu, May 22, 2008 at 5:53 AM, Stanislav Malyshev [EMAIL PROTECTED] wrote: Hi! $a = [[1, 2], [3, 4], 5, 6]; Proposed twice at least, but PHP developer community doesn't seem to like it. Many of us like it. And the end users I know like it too. I

Re: [PHP-DEV] Unicode progress [Was: unicode.semantics ad infinitum]

2008-05-22 Thread Steph Fox
Hey Andrei, UG(unicode) checks are still secondary I think - they don't prevent us from doing tests and moving forward, although cleaning them up would be nice. Cleaning them up would make it possible to find and fix the bugs we already know are there ;) There don't seem to be too many, but

Re: [PHP-DEV] Short syntax for array literals [...]

2008-05-22 Thread Pierre Joye
On Thu, May 22, 2008 at 11:56 AM, Antony Dovgal [EMAIL PROTECTED] wrote: On 22.05.2008 13:46, Pierre Joye wrote: On Thu, May 22, 2008 at 5:53 AM, Stanislav Malyshev [EMAIL PROTECTED] wrote: Hi! $a = [[1, 2], [3, 4], 5, 6]; Proposed twice at least, but PHP developer community doesn't

Re: [PHP-DEV] RFC: allow_call_pass_by_reference

2008-05-22 Thread LEW21
2008/5/22, Alexey Zakhlestin [EMAIL PROTECTED]: On Wed, May 21, 2008 at 10:46 PM, LEW21 [EMAIL PROTECTED] wrote: Sometimes call time pass by reference is useful, for example when you want to make it possible to omit an param (normally passed by reference) by setting null. With no call

Re: [PHP-DEV] RFC: allow_call_pass_by_reference

2008-05-22 Thread Alexey Zakhlestin
On Thu, May 22, 2008 at 2:51 PM, LEW21 [EMAIL PROTECTED] wrote: 2008/5/22, Alexey Zakhlestin [EMAIL PROTECTED]: On Wed, May 21, 2008 at 10:46 PM, LEW21 [EMAIL PROTECTED] wrote: Sometimes call time pass by reference is useful, for example when you want to make it possible to omit an param

Re: [PHP-DEV] RFC: allow_call_pass_by_reference

2008-05-22 Thread Stan Vassilev | FM
Hi, Actually PHP ignores default values on parameters followed by required ones. You can't fetch the default value even via Reflection. This is easily detected at compile time so I wonder why the compiler doesn't warn. Regards, Stan Vassilev what stops you from declaring: function

Re: [PHP-DEV] RFC: allow_call_pass_by_reference

2008-05-22 Thread Steph Fox
Hi Stan, There is a use case for the function allowing *explicitly* call-time pass by reference, because the function works both ways in subtly different ways. This RFC isn't about whether or not this behaviour should be deprecated. It simply recommends that a warning be thrown by default

[PHP-DEV] Getting Default Values via reflection.

2008-05-22 Thread Richard Quadling
2008/5/22 Stan Vassilev | FM [EMAIL PROTECTED]: Hi, Actually PHP ignores default values on parameters followed by required ones. You can't fetch the default value even via Reflection. This is easily detected at compile time so I wonder why the compiler doesn't warn. Regards, Stan

Re: [PHP-DEV] Short syntax for array literals [...]

2008-05-22 Thread Johannes Schlüter
Hi, On Thu, 2008-05-22 at 12:33 +0200, Pierre Joye wrote: Agreed, we should simply go through a vote and be done with that. Vote until all are annoyed and don't vote against it anymore just to stop voting? (it's less annoying to have it than vote about it every two months) There was some voting

Re: [PHP-DEV] Short syntax for array literals [...]

2008-05-22 Thread Pierre Joye
On Thu, May 22, 2008 at 3:56 PM, Johannes Schlüter [EMAIL PROTECTED] wrote: Hi, On Thu, 2008-05-22 at 12:33 +0200, Pierre Joye wrote: Agreed, we should simply go through a vote and be done with that. Vote until all are annoyed and don't vote against it anymore just to stop voting? (it's

Re: [PHP-DEV] Getting Default Values via reflection.

2008-05-22 Thread Stan Vassilev | FM
Hi, Please notice that I said followed by required ones. function foo($a = null, $b) {} The above definition is allowed and the compiler won't complain, but actually that = null is completely lost, including in Reflection. Regards, Stan Vassilev 2008/5/22 Stan Vassilev | FM [EMAIL

Re: [PHP-DEV] Short syntax for array literals [...]

2008-05-22 Thread Philip Olson
On 22 May 2008, at 07:29, Pierre Joye wrote: On Thu, May 22, 2008 at 3:56 PM, Johannes Schlüter [EMAIL PROTECTED] wrote: Hi, On Thu, 2008-05-22 at 12:33 +0200, Pierre Joye wrote: Agreed, we should simply go through a vote and be done with that. Vote until all are annoyed and don't vote

Re: [PHP-DEV] Short syntax for array literals [...]

2008-05-22 Thread Stanislav Malyshev
Hi! Many of us like it. And the end users I know like it too. You don't need to convince me :) -- Stanislav Malyshev, Zend Software Architect [EMAIL PROTECTED] http://www.zend.com/ (408)253-8829 MSN: [EMAIL PROTECTED] -- PHP Internals - PHP Runtime Development Mailing List To

Re: [PHP-DEV] Unicode progress [Was: unicode.semantics ad infinitum]

2008-05-22 Thread Edward Z. Yang
Steph Fox wrote: What concerns me at this point is that we could and should be telling PHP users how to future-proof their code during the move from PHP 4 to PHP 5. If we can get a fix on that now and get word out, we'll have made their future migration path *much* smoother. As far as I can

Re: [PHP-DEV] magic quotes finale

2008-05-22 Thread Lars Strojny
[ forgot to sent that to the list ] Hi Philip, Am Dienstag, den 20.05.2008, 12:55 -0700 schrieb Philip Olson: [...] PHP 5.3 is approaching fast, so let's conclude our dealings with magical quotes... this should be the last time. Please have a look at the following RFC and discuss it

Re: [PHP-DEV] magic quotes finale

2008-05-22 Thread David Coallier
cu, Lars P.S.: Silence agrees doesn't work, silence is void. Well, if silence is void: TAKE IT OFF!!! (+1 ... once again on this subject) -- Slan, David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Getting Default Values via reflection.

2008-05-22 Thread Lars Strojny
Hi, Am Donnerstag, den 22.05.2008, 18:23 +0300 schrieb Stan Vassilev | FM: [...] function foo($a = null, $b) {} Isn't that a typical case for throwing an E_STRICT warning or is is not possible to check that efficiently in the engine? cu, Lars signature.asc Description: Dies ist ein digital

Re: [PHP-DEV] magic quotes finale

2008-05-22 Thread Lars Strojny
Hi David, Am Donnerstag, den 22.05.2008, 18:14 -0400 schrieb David Coallier: cu, Lars P.S.: Silence agrees doesn't work, silence is void. Well, if silence is void: TAKE IT OFF!!! (+1 ... once again on this #subject) You've spotted that the proposal is not about the question if they should

Re: [PHP-DEV] magic quotes finale

2008-05-22 Thread Rasmus Lerdorf
Lars Strojny wrote: [ forgot to sent that to the list ] Hi Philip, Am Dienstag, den 20.05.2008, 12:55 -0700 schrieb Philip Olson: [...] PHP 5.3 is approaching fast, so let's conclude our dealings with magical quotes... this should be the last time. Please have a look at the following RFC

Re: [PHP-DEV] magic quotes finale

2008-05-22 Thread Philip Olson
PHP 5.3 is approaching fast, so let's conclude our dealings with magical quotes... this should be the last time. Please have a look at the following RFC and discuss it within this thread. Magic Quotes in PHP 5.3 and beyond - http://wiki.php.net/rfc/magicquotes It recommends changes to

Re: [PHP-DEV] magic quotes finale

2008-05-22 Thread Pierre Joye
Hi Rasmus, On Fri, May 23, 2008 at 1:35 AM, Rasmus Lerdorf [EMAIL PROTECTED] wrote: Lars Strojny wrote: [ forgot to sent that to the list ] Hi Philip, Am Dienstag, den 20.05.2008, 12:55 -0700 schrieb Philip Olson: [...] PHP 5.3 is approaching fast, so let's conclude our dealings with

Re: [PHP-DEV] magic quotes finale

2008-05-22 Thread Stan Vassilev | FM
Hi, Just making sure I understood it well. Get isn't deprecated (good), set is (good), but what happens if I try to set magic quotes runtime *off* if it was *on* from the config. I couldn't see anything about the PHP config setting being ignored/removed or throwing error in the RFC. For

RE: [PHP-DEV] Short syntax for array literals [...]

2008-05-22 Thread Andi Gutmans
Not sure we really reached a conclusion. I think it was inconclusive and people got tired. As I've stated in the past in general I don't like the ability to do things in more than one way but in this case I think the advantages of the cleaner syntax outweigh the fact that we'd have two ways.

Re: [PHP-DEV] Short syntax for array literals [...]

2008-05-22 Thread Brian Moon
Andi Gutmans wrote: Not sure we really reached a conclusion. I think it was inconclusive and people got tired. As I've stated in the past in general I don't like the ability to do things in more than one way but in this case I think the advantages of the cleaner syntax outweigh the fact that