diff --git a/Services/Math/classes/ReleaseInfo.php b/Services/Math/classes/ReleaseInfo.php new file mode 100644 index 000000000000..23d4c4a4aff9 --- /dev/null +++ b/Services/Math/classes/ReleaseInfo.php @@ -0,0 +1,12 @@ +pop())) return $this->trigger("internal error"); $fnn = preg_replace("/^arc/", "a", $fnn); // for the 'arc' trig synonyms if ($fnn == 'ln') $fnn = 'log'; - eval('$stack->push(' . $fnn . '($op1));'); // perfectly safe eval() + $stack->push($fnn($op1)); // 'eval()' can be easily avoided here } elseif (array_key_exists($fnn, $this->f)) { // user function // get args $args = array(); diff --git a/Services/PEAR/lib/PEAR.php b/Services/PEAR/lib/PEAR.php index 1eb990bac159..8b9944ac11f1 100644 --- a/Services/PEAR/lib/PEAR.php +++ b/Services/PEAR/lib/PEAR.php @@ -914,7 +914,7 @@ function PEAR_Error($message = 'unknown error', $code = null, } if ($this->mode & PEAR_ERROR_EXCEPTION) { trigger_error("PEAR_ERROR_EXCEPTION is obsolete, use class PEAR_Exception for exceptions", E_USER_WARNING); - eval('$e = new Exception($this->message, $this->code);throw($e);'); + $e = new Exception($this->message, $this->code);throw($e); // no eval() necessary to throw an exception } } diff --git a/Services/PEAR/lib/ReleasesInfo.php b/Services/PEAR/lib/ReleasesInfo.php index a99e2754a393..d5f36f9c731a 100644 --- a/Services/PEAR/lib/ReleasesInfo.php +++ b/Services/PEAR/lib/ReleasesInfo.php @@ -73,5 +73,8 @@ MDB2/Driver/mysqli.php, line 425 patch for hhvm usage +Services/PEAR/lib/PEAR.php, line 917 +patch for hhvm RepoAuthoritative Mode: eval() replaced PR#8 + */ ?> \ No newline at end of file