RSSAmplifier

Donat Studios · Oct 22, 2012

Static::? More like Lies::

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

In my professional work, we have a system that utilizes __call and __callStatic for caching of certain method calls. We have been running into a problem where calling an undefined method via :: within the class itself will trigger __call rather than the expected __callStatic . The Problem The following code example illustrates the issue. <?php class foo { function __call($name, $args){ echo…

Read on donatstudios.com

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.