Re: suppressing php warnings?

"Harold Hallikainen" <[email protected]> Mon, 26 May 2014 11:54:40 -0700
Newsgroups gmane.comp.web.wiki.phpwiki.talk
Message-ID <[email protected]>
> Le 22/05/2014 14:35, Harold Hallikainen a =E9crit :
>>
>> I'm migrating to a new server and am installing phpwiki-code-8855-trunk.
>> I'm getting a lot of warnings about preg_replace.
>>
>> Warning: "preg_replace(): The /e modifier is deprecated, use
>> preg_replace_callback instead"
>>
>> In /etc/php.ini, I have this line:
>> error_reporting =3D E_ALL & ~E_DEPRECATED & ~E_STRICT
>>
>> which seems it should suppress warnings about deprecated features. But,
>> the warnings keep showing up.
>
> Hello Harold,
>
> I just created a patch to replace preg_replace with
> preg_replace_callback.
>
> It is in Subversion revision 8856.
>
> Can you please see if it solves your problem?
>
> Best regards,
>
> Marc-Etienne Vargenau


THANKS! That seems to reduce the number of warnings, but I suspect this is
also used in other files (and I'm having trouble figuring out which ones
since php error logging does not seem to be working).

I'll see if I can find the other occurrences. If you can find them also,
that would be great!

Thanks!

Harold


-- =

FCC Rules Updated Daily at http://www.hallikainen.com - Advertising
opportunities available!
Not sent from an iPhone.

---------------------------------------------------------------------------=
---
The best possible search technologies are now affordable for all companies.
Download your FREE open source Enterprise Search Engine today!
Our experts will assist you in its installation for $59/mo, no commitment.
Test it for FREE on our Cloud platform anytime!
http://pubads.g.doubleclick.net/gampad/clk?id=3D145328191&iu=3D/4140/ostg.c=
lktrk