-
Notifications
You must be signed in to change notification settings - Fork 388
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed a bug of getDeclaredOnlyInstanceMethods & getDeclaredOnlyInstan…
…ceMethods
- Loading branch information
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
* * | ||
* hprose service class for php 5.3+ * | ||
* * | ||
* LastModified: Jul 30, 2016 * | ||
* LastModified: Aug 1, 2016 * | ||
* Author: Ma Bingyao <[email protected]> * | ||
* * | ||
\**********************************************************/ | ||
|
@@ -514,7 +514,7 @@ protected function delay($interval, $data) { | |
public function defaultHandle($request, stdClass $context) { | ||
$error = null; | ||
set_error_handler(function($errno, $errstr, $errfile, $errline) use (&$error) { | ||
$error = new \ErrorException($errstr, 0, $errno, $errfile, $errline); | ||
$error = new ErrorException($errstr, 0, $errno, $errfile, $errline); | ||
}, $this->errorTypes); | ||
ob_start(); | ||
ob_implicit_flush(0); | ||
|
@@ -540,7 +540,7 @@ private static function getDeclaredOnlyMethods($class) { | |
return array_diff($result, self::$magicMethods); | ||
} | ||
private static function getDeclaredOnlyInstanceMethods($class) { | ||
$methods = getDeclaredOnlyMethods($class); | ||
$methods = self::getDeclaredOnlyMethods($class); | ||
$instanceMethods = array(); | ||
foreach ($methods as $name) { | ||
$method = new ReflectionMethod($class, $name); | ||
|
@@ -558,7 +558,7 @@ private static function getDeclaredOnlyInstanceMethods($class) { | |
return $instanceMethods; | ||
} | ||
private static function getDeclaredOnlyStaticMethods($class) { | ||
$methods = getDeclaredOnlyMethods($class); | ||
$methods = self::getDeclaredOnlyMethods($class); | ||
$instanceMethods = array(); | ||
foreach ($methods as $name) { | ||
$method = new ReflectionMethod($class, $name); | ||
|