Browse Source

fix for reflection problem that occurred in #3030
use $r->name instead of $r for array that gets passed to call_user_func
enabled Issue3030

mockey 10 years ago
parent
commit
a2a635be5a
2 changed files with 1 additions and 1 deletions
  1. 1 1
      std/php/Boot.hx
  2. 0 0
      tests/unit/src/unit/issues/Issue3030.hx

+ 1 - 1
std/php/Boot.hx

@@ -792,7 +792,7 @@ class _hx_type {
 		if($r->hasProperty($n))
 			return $r->getStaticPropertyValue($n);
 		else if($r->hasMethod($n))
-			return array($r, $n);
+			return array($r->name, $n);
 		else
 			return null;
 	}

+ 0 - 0
tests/unit/src/unit/issues/Issue3030.hx.disabled → tests/unit/src/unit/issues/Issue3030.hx