diff --git a/src/Client.php b/src/Client.php index 57410a8a..4af4dcbf 100644 --- a/src/Client.php +++ b/src/Client.php @@ -336,7 +336,7 @@ public function & send($msg, $timeout = 0, $method = '') return $r; } elseif (is_string($msg)) { - $n = new Message(''); + $n = new Request(''); $n->payload = $msg; $msg = $n; } diff --git a/src/Wrapper.php b/src/Wrapper.php index 8e573e39..a710fddd 100644 --- a/src/Wrapper.php +++ b/src/Wrapper.php @@ -437,7 +437,7 @@ public function wrap_php_class($classname, $extra_options = array()) foreach ($mlist as $mname) { if ($methodfilter == '' || preg_match($methodfilter, $mname)) { // echo $mlist."\n"; - $func = new ReflectionMethod($classname, $mname); + $func = new \ReflectionMethod($classname, $mname); if (!$func->isPrivate() && !$func->isProtected() && !$func->isConstructor() && !$func->isDestructor() && !$func->isAbstract()) { if (($func->isStatic && ($methodtype == 'all' || $methodtype == 'static' || ($methodtype == 'auto' && is_string($classname)))) || (!$func->isStatic && ($methodtype == 'all' || $methodtype == 'nonstatic' || ($methodtype == 'auto' && is_object($classname))))