Skip to content

Instantly share code, notes, and snippets.

@fredemmott
Created February 21, 2014 19:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fredemmott/9141878 to your computer and use it in GitHub Desktop.
Save fredemmott/9141878 to your computer and use it in GitHub Desktop.
[fredemmott@devbig076 ~] cat test.php
<?php
class Foo {
public static function bar() {
var_dump(func_get_args());
}
}
function main() {
$m = new ReflectionMethod('Foo', 'bar');
$m->invoke($m);
}
main();
[fredemmott@devbig076 ~] zend test.php
array(0) {
}
[fredemmott@devbig076 ~] hhvm test.php
HipHop Fatal error: Unknown method ReflectionMethod::bar in /home/fredemmott/test.php on line 11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment