Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 May 2022 05:32:09 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 264343] mail/squirrelmail: Fix spell checker not working
Message-ID:  <bug-264343-7788-g8ICZqU3YX@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-264343-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-264343-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264343

--- Comment #3 from Zsolt Udvari <uzsolt@uzsolt.hu> ---
Hm, I can see the problem: the ereg is deprecated and removed from PHP7+ and
should use preg_match instead.
But there are one problem (at least): these functions return values differ,
ereg:=20
"Returns the length of the matched string if a match for pattern was found =
in
string, or FALSE if no matches were found or an error occurred.

If the optional parameter regs was not passed or the length of the matched
string is 0, this function returns 1."

preg_match:
"preg_match() returns 1 if the pattern matches given subject, 0 if it does =
not,
or false on failure. "

We should check every calls of ereg and check the parameters and the handle=
 of
return value - and change it if needed.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-264343-7788-g8ICZqU3YX>