Page 2 of 2

Re: Not php.ini in xampp\apache\bin

PostPosted: 21. August 2009 16:02
by crossbound
Yes the file belongs to Textpattern. Looks like the code is ensuring that magic quotes are turned off at runtime:

set_magic_quotes_runtime(0);

I guess I could quote out that line, since magic quotes are disabled in the php.ini anyway. (just tried it and it works)

It doesn't really solve the issue of errors being displayed with "display_errors = Off", but is a working fix for now.

Re: Not php.ini in xampp\apache\bin

PostPosted: 21. August 2009 16:08
by Wiedmann
Yes the file belongs to Textpattern.

So this script have an issue with 5.3. (even the author thinks not ;-) )

It doesn't really solve the issue of errors being displayed with "display_errors = Off",

I only can say the same as above:
XAMPP doesn't show E_DEPRECATED errror.
--> So if you have not changed the default "php.ini", this script is setting error_reporting and display_errors itself to some value.

Re: Not php.ini in xampp\apache\bin

PostPosted: 21. August 2009 16:32
by crossbound
Okay, I finally found the file in textpattern that sets -> @ini_set("display_errors","1");
Thanks for bearing with me. took me some time to find the right code.

I appreciated your help!

Re: Not php.ini in xampp\apache\bin

PostPosted: 21. August 2009 17:39
by crossbound
I was able to change the right line of code
error_reporting(E_ALL);

to:
error_reporting(E_ALL & ~E_DEPRECATED);

works like a charm now. Again, Wiedmann, thank you for your insight and for pointing me in the right direction.