Created
February 21, 2014 19:40
-
-
Save fredemmott/9141878 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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