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
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
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
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
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