revert nikic enhancements and keep them for later + finalize work and tests

This commit is contained in:
odain
2025-09-05 15:35:38 +02:00
parent 7e7b5874a6
commit 9872702f59
11 changed files with 198 additions and 563 deletions

View File

@@ -12,7 +12,7 @@ class PhpExpressionEvaluator {
/** @var iExprEvaluator[] $aPhpParserEvaluators */
private static array $aPhpParserEvaluators;
private int $iMode=self::ITOP_ALGO;
private int $iMode=self::LIB_AND_FALLBACK;
protected function __construct() {
}
@@ -79,8 +79,6 @@ class PhpExpressionEvaluator {
$oConstExprEvaluator = new ConstExprEvaluator([$this, "EvaluateExpressionLocally"]);
}
$oConstExprEvaluator->setFunctionsWhitelist(FuncCallEvaluator::WHITELIST);
$oConstExprEvaluator->setStaticcallsWhitelist(StaticCallEvaluator::WHITELIST);
return $oConstExprEvaluator->evaluateDirectly($oExpression);
}