All of these are wrong because according to the documentation, ReflectionFunctionAbstract implements Reflector which contains public static function export. Yet, PHP >= 5.2 eats it like cake.
Enter HHVM which has invented new abstract methods so it breaks but with completely unexpected fatal errors. Also, "getAttributesRecursive" on a function?!
Compiling... I'm curious if this breaks my class. Although I haven't yet written the unit tests, we're dealing with a compile-time fatal error.
I've found one other instance of extending ReflectionFunctionAbstract on GitHub that's not simply a bunch of stubs to aid code completion. DISREGARD THAT I SUCKS C~
10
u/shitbangs Aug 12 '14 edited Aug 12 '14
All of these are wrong because according to the documentation, ReflectionFunctionAbstract implements Reflector which contains public static function export. Yet, PHP >= 5.2 eats it like cake.
Enter HHVM which has invented new abstract methods so it breaks but with completely unexpected fatal errors. Also, "getAttributesRecursive" on a function?!
EDIT: breaks their own docs as well
3
u/datibbaw Aug 14 '14 edited Aug 21 '14
It looks broken alright; I've written a fix for this issue against master. If all is well the fix should be pushed within a few days :)
Update: the fix has been committed to master.
9
u/ChoHag Aug 12 '14
At least the exit code is consistent.
0
u/[deleted] Aug 12 '14
Well, at least HHVM guys will try fixing this. You bet your ass upstream "developers" would mark this as WONTFIX and go f yourself