diff --git a/src/OS/Guess.php b/src/OS/Guess.php index 0e37a09..88cd659 100644 --- a/src/OS/Guess.php +++ b/src/OS/Guess.php @@ -245,7 +245,7 @@ function _readGlibCVersionFromFeaturesHeaderFile() return array(); } if (!@file_exists('/usr/bin/cpp') || !@is_executable('/usr/bin/cpp')) { - return $this->_parseFeaturesHeaderFile($features_header_file); + return $this-_parseFeaturesHeaderFile($features_header_file); } // no cpp return $this->_fromGlibCTest(); diff --git a/src/PEAR.php b/src/PEAR.php index 27b1b4b..6dba3b0 100644 --- a/src/PEAR.php +++ b/src/PEAR.php @@ -219,7 +219,7 @@ public function __call($method, $arguments) ); } return call_user_func_array( - array(self::class, '_' . $method), + array(get_class(), '_' . $method), array_merge(array($this), $arguments) ); } @@ -232,7 +232,7 @@ public static function __callStatic($method, $arguments) ); } return call_user_func_array( - array(self::class, '_' . $method), + array(get_class(), '_' . $method), array_merge(array(null), $arguments) ); }