Re: [PHP-DEV] HEADS UP: PHP-5.5 Feature Freeze

2013-03-19 Thread David Soria Parra
On 03/20/2013 01:51 AM, Stas Malyshev wrote: > Hi! > >> as you are aware we delayed the first beta by about 4 weeks to get >> Zend Optimizer in. This week will finally see the release of the first >> beta. This implies: >> >> No new features should be added to the PHP-5.5 branch from now on! >>

Re: [PHP-DEV] HEADS UP: PHP-5.5 Feature Freeze

2013-03-19 Thread Stas Malyshev
Hi! > as you are aware we delayed the first beta by about 4 weeks to get > Zend Optimizer in. This week will finally see the release of the first > beta. This implies: > > No new features should be added to the PHP-5.5 branch from now on! > > RFC that are currently in voting phase can be merge

Re: [PHP-DEV] Could we kill call_user_func?

2013-03-19 Thread Johannes Schlüter
Julien Pauli wrote: >On Tue, Mar 19, 2013 at 12:42 AM, Stas Malyshev >wrote: > >> Hi! >> >> > Also, AFAIR, call_user_func() doesn't work with functions using >> references >> > in args. >> >> Use call_user_func_array() for that, it supports refs. >> > >Isn't it since 5.3 or so ? Before 5.3 cal

Re: [PHP-DEV] Proposal: new magic methods for Object references.

2013-03-19 Thread Rasmus Lerdorf
On 03/19/2013 02:19 PM, Matīss Roberts Treinis wrote: > However, as far as I understand, variables can currently hold values like > arrays, strings, etc, and object references. Could it be possible to add > one more possible value to this keen little list Not without massive changes across the c

Re: [PHP-DEV] Proposal: new magic methods for Object references.

2013-03-19 Thread Matīss Roberts Treinis
2013/3/19 Johannes Schlüter > > > "Matīss Roberts Treinis" wrote: > > >Proposal: > > > >Two additional magic methods for PHP objects - > > > >__refer(void): > > > >Refer method is called whenever object's identifier is assigned to > >variable, if such method is present. > >Example: > > > >$foo =

Re: [PHP-DEV] Proposal: new magic methods for Object references.

2013-03-19 Thread Johannes Schlüter
"Matīss Roberts Treinis" wrote: >Proposal: > >Two additional magic methods for PHP objects - > >__refer(void): > >Refer method is called whenever object's identifier is assigned to >variable, if such method is present. >Example: > >$foo = new Bar; >$bar = $foo; //__refer invoked This assignmen

Re: [PHP-DEV] Could we kill call_user_func?

2013-03-19 Thread Stas Malyshev
Hi! > Use call_user_func_array() for that, it supports refs. > > > Isn't it since 5.3 or so ? I think it always has been this way. See: http://3v4l.org/CGCLS -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227 -- PHP Internals - PHP Runtim

Re: [PHP-DEV] __invokeStatic() method

2013-03-19 Thread Pierre du Plessis
> It is clear to me that there are valid reasons to say yes to this proposal, > but there are a lot to say no too. > Even if it could be interesting in theory, due to of how PHP handles > collisions between classes and functions names (no check at all), > implementing a callable class could break e

Re: [PHP-DEV] __invokeStatic() method

2013-03-19 Thread Ferenc Kovacs
On Tue, Mar 19, 2013 at 5:35 PM, Daniele Orlando wrote: > It is clear to me that there are valid reasons to say yes to this proposal, > but there are a lot to say no too. > Even if it could be interesting in theory, due to of how PHP handles > collisions between classes and functions names (no ch

Re: [PHP-DEV] __invokeStatic() method

2013-03-19 Thread Daniele Orlando
It is clear to me that there are valid reasons to say yes to this proposal, but there are a lot to say no too. Even if it could be interesting in theory, due to of how PHP handles collisions between classes and functions names (no check at all), implementing a callable class could break existing co

Re: [PHP-DEV] [VOTE] array_column() function

2013-03-19 Thread Peter Cowburn
Hi Ben, On 28 February 2013 01:56, Ben Ramsey wrote: > Sorry. I got sick for a few weeks, and this fell to the bottom of my > priorities list. > > I'm not sure what the next steps are. This was approved by a majority vote. > What do I need to do now to get it into 5.5? > > Thanks, > Ben > The ne

[PHP-DEV] HEADS UP: PHP-5.5 Feature Freeze

2013-03-19 Thread David Soria Parra
Hi Internals, as you are aware we delayed the first beta by about 4 weeks to get Zend Optimizer in. This week will finally see the release of the first beta. This implies: No new features should be added to the PHP-5.5 branch from now on! RFC that are currently in voting phase can be merged on

Re: [PHP-DEV] Proposal: new magic methods for Object references.

2013-03-19 Thread Patrick ALLAERT
2013/3/19 Matīss Roberts Treinis : > Proposal: > > Two additional magic methods for PHP objects - > > __refer(void): > > Refer method is called whenever object's identifier is assigned to > variable, if such method is present. > Example: > > $foo = new Bar; > $bar = $foo; //__refer invoked > > Retu

[PHP-DEV] Proposal: new magic methods for Object references.

2013-03-19 Thread Matīss Roberts Treinis
Proposal: Two additional magic methods for PHP objects - __refer(void): Refer method is called whenever object's identifier is assigned to variable, if such method is present. Example: $foo = new Bar; $bar = $foo; //__refer invoked Return values: null to proceed by assigning the variable to ob

Re: [PHP-DEV] Could we kill call_user_func?

2013-03-19 Thread Julien Pauli
On Tue, Mar 19, 2013 at 12:42 AM, Stas Malyshev wrote: > Hi! > > > Also, AFAIR, call_user_func() doesn't work with functions using > references > > in args. > > Use call_user_func_array() for that, it supports refs. > Isn't it since 5.3 or so ? Julien.Pauli

Re: [PHP-DEV] __invokeStatic() method

2013-03-19 Thread Matīss Roberts Treinis
Bruno, Poor or questionable design or language use is not what this discussion is about. PHP's greatest strength is its flexibility - PHP does allow to do silly and sometimes, questionable things. Trying to limit this flexibility is like trying to limit PHP, which is obviously bad thing to do. Exa

Re: [PHP-DEV] __invokeStatic() method

2013-03-19 Thread Patrick Schaaf
On Tuesday 19 March 2013 02:54:19 Bruno CHALOPIN wrote: > Now I don't see why in the world a class and a function could share the same name. Well, for one, I might have code like this: class Foo { public static the_usual() { static $instance; if (!isset($

Re: [PHP-DEV] __invokeStatic() method

2013-03-19 Thread Pierre du Plessis
> Le Tue, 19 Mar 2013 09:37:43 +0200, Pierre du Plessis a écrit : > > It would break existing software if you have a class and function with > > the same name. > > Consider the following example: > > > > class foo { > > } > > > > function foo() > > { > > > > } > > > > Now what if you have several c

Re: [PHP-DEV] __invokeStatic() method

2013-03-19 Thread Bruno CHALOPIN
Le Tue, 19 Mar 2013 09:37:43 +0200, Pierre du Plessis a écrit : > It would break existing software if you have a class and function with > the same name. > Consider the following example: > > class foo { > } > > function foo() > { > > } > > Now what if you have several calls to foo() in your ex

Re: [PHP-DEV] __invokeStatic() method

2013-03-19 Thread Pierre du Plessis
> Hi, > > Le Mon, 18 Mar 2013 09:07:43 +0200, Matīss Roberts Treinis a écrit : > > Not only that. This potentially might break compatibility with many > > software products already out there. > > I don't see how it could break existing software as it is not a > modification of an existing method bu

Re: [PHP-DEV] __invokeStatic() method

2013-03-19 Thread Bruno CHALOPIN
Hi, Le Mon, 18 Mar 2013 09:07:43 +0200, Matīss Roberts Treinis a écrit : > Not only that. This potentially might break compatibility with many > software products already out there. I don't see how it could break existing software as it is not a modification of an existing method but a brand ne