[Bug 264343] mail/squirrelmail: Fix spell checker not working
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 264343] mail/squirrelmail spell checker not working-fix"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 31 May 2022 05:32:09 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264343 --- 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: "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. -- You are receiving this mail because: You are the assignee for the bug.