From 694711b3f4cd85d11f1106e39d28d2805ae2eb5e Mon Sep 17 00:00:00 2001 From: Romain Quetiez Date: Fri, 25 Oct 2024 15:07:11 +0200 Subject: [PATCH] :memo: The OQL parser builder does not work for PHP8+ --- core/oql/build/build.bash | 1 + core/oql/build/build.cmd | 1 + 2 files changed, 2 insertions(+) diff --git a/core/oql/build/build.bash b/core/oql/build/build.bash index c6c006d4e..6e83dbd49 100644 --- a/core/oql/build/build.bash +++ b/core/oql/build/build.bash @@ -2,6 +2,7 @@ # # Rebuild the iTop Lexer / Parser # PEAR is required to build (really?) +# PHP 8.0+ is not supported by the parser generator # Launch this batch from the core/oql/build directory # with ./build.bash # diff --git a/core/oql/build/build.cmd b/core/oql/build/build.cmd index dea9c8781..779e9b87e 100644 --- a/core/oql/build/build.cmd +++ b/core/oql/build/build.cmd @@ -1,5 +1,6 @@ rem must be run with current directory = the directory of the batch rem PEAR is required to build +rem PHP 8.0+ is not supported by the parser generator php -d include_path=".;C:\iTop\PHP\PEAR" ".\PHP\LexerGenerator\cli.php" ..\oql-lexer.plex php ".\PHP\ParserGenerator\cli.php" ..\oql-parser.y php -r "echo date('Y-m-d');" > ..\version.txt