Closed (fixed)
Project:
Dutch Stemmer
Version:
master
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Jul 2006 at 23:05 UTC
Updated:
19 Mar 2013 at 20:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
splash112 commentedWrong parameter count for preg_replace() in /home/tit.nl/public_html/modules/dutchstemmer/dutchstemmer.module op lijn 112.
Wrong parameter count for preg_replace() in /home/tit.nl/public_html/modules/dutchstemmer/dutchstemmer.module op lijn 124.
Definetly not by CCK. I didn't install that. Maybe search404? That module also created some of these errors.
Cron.php made a few pages....
Otherwise excellent module that gives my site some badly needed search results!
Thanks!
Comment #2
splash112 commentedSolved!
Sorry, I'm no good at patching, so I committed the changed module.
Seems Preg_replace got an optional extra variable in PHP5. It was parsed in the function but nowhere declared, so I just cut it out. The module seems to be working now for PHP4 too.
http://cn2.php.net/manual/en/function.preg-replace.php
Comment #3
ednique commentedHad the same problem while searching for "evenwichtig"
Installed the new module file supplied by splash112 and it worked...
the remloval of the php5 param has fixed it for php4...
a better solution would be to check the php version prior to adding or removing that parameter...
Comment #4
Bèr Kessels commentedHere is a patch.
The $count parameter was used all over the place, yet never referenced to. Not only ugly and messy codewise, but it apparently breaks in PHP4. This patch fixes that.
Comment #5
clemens.tolboomHave to check for D6.
Comment #6
franskuipers commentedSee commit