Hi David,
first off let me say i really enjoyed your talk and took a lot home from it; very good stuff.
anyway i wanted to discuss with you the slide entitled 'Late Static Binding Workaround'. recently there was a discussion on php-general (mailing list) regarding variable functions.
here somebody said the same thing you did in your presentation about php being able to resolve static method calls dynamically at runtime in php 5.3, but i believe support is there in 5.2.4. i see from your slides that youre currently running php 5.2.3 so im not sure if support is there yet. anyway the reason i didnt bring this up during the talk is the slide doesnt show the ideal code you would like to be able to run, but im guessing it looks something like this:
$someClassName::staticClassMethod($args);
the conversation on php-general prompted me to write a test script and i discovered there is such support under php 5.2.4 (perhaps earlier as well, but i havent tested other versions)
anyway would you mind taking a look at the test script and telling me if thats the syntax you were looking for? if it is you wont have to wait around for php 5.3
here is a stripped down version of the test script to highlight the ability to call static functions dynamically:
-nathan
ps.
i noticed you are filtering the php code posted here; please see
http://www.nabble.com/Re%3A-Function-variables-in-classes-p13532946.html
for the original post from the mailing list.
class Foo {
static public function staticMethod() {
echo _METHOD_ . PHP_EOL;
var_dump(func_get_args());
}
}