Re: [PHP-DEV] Re: [PECL-DEV] [Proposal] New Extension Yac (a user data cache base on shared memory without locks)

2013-03-23 Thread Matīss Roberts Treinis
Memcached is distributed caching system, where as APC's user data cache is not. Memcached requires separate server instance (memcached) to operate. APC does not. Also, APC's user cache is 5+ times faster than memcached. If some extension is to provide this functionality, it has to be as close as po

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 assign

[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] __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-18 Thread Matīss Roberts Treinis
Not only that. This potentially might break compatibility with many software products already out there. Also, this might lead to many misunderstandings and, in fact, ambiguous code. Consider the sample. $name = 'something'; $something = $name(); // What is this - a function call or object? Fact