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!
>>
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
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
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
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 =
"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
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
> 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
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
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
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
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
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
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
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
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
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($
> 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
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
> 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
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
21 matches
Mail list logo