[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] PHP 8+ parse error in htmlgrammarparser (remove call-time references)

Benoit Grégoire (@benoitg) via TikiWiki-cvs <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <69826063990e3_3b4a12904163c@gitlab-sidekiq-low-urgency-cpu-bound-v2-7ffb9cb746-sn67f.mail>

Benoit Grégoire pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
0652fd51 by ushindi bienvenu at 2026-02-03T20:40:43+00:00
[FIX] PHP 8+ parse error in htmlgrammarparser (remove call-time references)
---
* [FIX] PHP 8+ parse error in htmlgrammarparser (remove call-time references)

See merge request tikiwiki/tiki!9478

- - - - -


1 changed file:

- src/php/external_lib_sources/htmlparser/htmlgrammarparser.php


Changes:

=====================================
src/php/external_lib_sources/htmlparser/htmlgrammarparser.php
=====================================
@@ -107,7 +107,7 @@ if (! defined("_ECHOSERVER_HTML_GRAMMARPARSER")) {
 /********************************************************************************************
  *  Get word from data
  ********************************************************************************************/
-        public function GetWord($word)
+        public function GetWord(&$word)
         {
             $word = "";
             $found = 0;
@@ -392,7 +392,7 @@ EOF        -1 -1 -1 -1 -1
                             if ($this->parname == "closeon") {
                                 $notexists = [];
                                 $exists = [];
-                                $this->ParseCloseOn($this->pg[$this->pgpos]["tag"][$this->parname], &$notexists, &$exists);
+                                $this->ParseCloseOn($this->pg[$this->pgpos]["tag"][$this->parname], $notexists, $exists);
                                 $this->pg[$this->pgpos]["tag"][$this->parname] = [];
                                 $this->pg[$this->pgpos]["tag"][$this->parname]["notin"] = $notexists;
                                 $this->pg[$this->pgpos]["tag"][$this->parname]["in"] = $exists;
@@ -418,7 +418,7 @@ EOF        -1 -1 -1 -1 -1
 /********************************************************************************************
  *  Parse closeon structure
  ********************************************************************************************/
-        public function ParseCloseOn($str, $notexists, $exists)
+        public function ParseCloseOn($str, &$notexists, &$exists)
         {
             $arr = explode("|", $str);
             if (! is_array($arr)) {
@@ -447,7 +447,7 @@ EOF        -1 -1 -1 -1 -1
             }
             $this->line = 1;
             while (1) {
-                $isword = $this->GetWord(&$word);
+                $isword = $this->GetWord($word);
                 if (! $isword) {
                     $this->iseof = true;
                 }



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/0652fd51e5bbc94f51808cd90637d9f13a2a4432

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/0652fd51e5bbc94f51808cd90637d9f13a2a4432
You're receiving this email because of your account on gitlab.com.

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.