Thread:Project:Support desk/"MediaWiki does not function when magic quotes are enabled" error with magic quotes disabled/reply (5)

You can modify the source code to look this way:

/* Code commented out if ( function_exists( 'get_magic_quotes_gpc' ) && get_magic_quotes_gpc ) { throw new MWException( "MediaWiki does not function when magic quotes are enabled." ); }

This will disable the check and MediaWiki will then not fail at that place. Note: If magic quotes are in fact enabled, running a wiki on that system is just downright dangerous.

---

Anyway:

If magic quotes in fact are disabled, get_magic_quotes_gpc should return 0 and not 1.

So what you report basically is a presumably wrong result of a PHP function. A false-positive so to speak.

If things are the way you tell us, then this is a bug in PHP, which you should report to the PHP bugtracker.