[Mediawiki-l] PHP Warning Problem since upgrading to 1.13 RC1

The Gadget Doctor mediawiki at thegadgetdoctor.com
Mon Aug 11 03:13:29 UTC 2008


I thought I had this sorted by I've looked and again my log file is huge.
I'm on PHP 5.2.5. Is this a real bug?



On Wed, Aug 6, 2008 at 1:41 PM, Daniel Friesen <dan_the_man at telus.net>wrote:

> You're sure that was the issue?
>
> I have a feeling that your issue is actually related to the linkTrail.
> There's a bugzilla entry on it right now.
> Apparently PHP 5.0 doesn't support \p (unicode characters), awhile back
> I switched the unreliable [a-z] to use the unicode \p{L&} to match the
> unicode alpha characters.
> The debate now would be whether we undo a linktrail improvement (I
> haven't seen any bugs come in against the use of \p, only the ' there
> which has already been removed). Or just change the update page to say
> that PHP 5.1.0+ is required.
> The latter may actually be the better option, there are some known
> issues with using PHP 5.0.
>
> Though, if we really, really, need to support 5.0 desperately it could
> be possible to use a version_test to use [a-z] before 5.1.0 and \p{L&}
> from 5.1.0 on.
>
> But even if the error disappeared for you it may be a good idea to
> update your version of PHP.
>
> ~Daniel Friesen(Dantman, Nadir-Seen-Fire) of:
> -The Nadir-Point Group (http://nadir-point.com)
> --It's Wiki-Tools subgroup (http://wiki-tools.com)
> --The ElectronicMe project (http://electronic-me.org)
> --Games-G.P.S. (http://ggps.org)
> -And Wikia ACG on Wikia.com (http://wikia.com/wiki/Wikia_ACG)
> --Animepedia (http://anime.wikia.com)
> --Narutopedia (http://naruto.wikia.com)
>
> The Gadget Doctor wrote:
> > I'll answer my own post.
> > My problem was in ParserFunctions. For some reason the SVN was pointing
> to a
> > branch of extensions below the 1_13 release instead of:
> >
> >
> http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/ParserFunctions
> >
> > Switching SVN to that version of ParserFunctions seems to have removed
> the
> > error.
> >
> > Hope that helps someone else.
> >
> >
> >
> >
> > On Wed, Aug 6, 2008 at 12:22 PM, The Gadget Doctor <
> > mediawiki at thegadgetdoctor.com> wrote:
> >
> >
> >> I'm wondering if anyone else has this. It took me a few days to spot
> this
> >> as I forgot to check my error logs but now I see I've had 16meg of
> errors
> >> over a weekend on a development site that gets very little traffic.
> >> Since upgrading (with svn) my logs are full of:
> >>
> >> [Fri Aug 01 12:38:01 2008] [error] [client 67.90.55.2] PHP Warning:
> >>  preg_match() [<a href='function.preg-match'>function.preg-match</a>]:
> >> Compilation failed: PCRE does not support \\L, \\l, \\N, \\P, \\p, \\U,
> \\u,
> >> or \\X at offset 3 in /var/www/vhosts/
> >> adv01.mysite.com/httpdocs/w/includes/Linker.php on line 1364, referer:
> >>
> http://adv01.mysite.com/w/index.php?title=Fitzgerald:_Second-class_citizens%3F_-_December_16%2C_2007_by_Hugh_Fitzgerald&action=edit
> >>
> >> Problem?
> >>
> >>
>
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l at lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>


More information about the MediaWiki-l mailing list