Page 1 of 1

config.inc.php bug ?

PostPosted: Wed Feb 29, 2012 1:34 am
by xyloweb
Hi,

I think there's a bug into "config.inc.php" file : the first parameter of ini_set function seems to be magic_quotes_runtim***G*** and not magic_quotes_runtime

xataface version : 1.3rc6 2510

Code: Select all
//Prevent Magic Quotes from affecting scripts, regardless of server settings

//Make sure when reading file data,
//PHP doesn't "magically" mangle backslashes!
//set_magic_quotes_runtime(FALSE);
ini_set('magic_quotes_runtimg', false);
if ( !function_exists('microtime_float') ){
   function microtime_float()
   {
      list($usec, $sec) = explode(" ", microtime());
      return ((float)$usec + (float)$sec);
   }
}

Re: config.inc.php bug ?

PostPosted: Wed Feb 29, 2012 4:55 am
by ADobkin
FYI, this appears to be correct in the trunk, but the typo is present in both 1.3.x and 1.5.x.

Re: config.inc.php bug ?

PostPosted: Wed Feb 29, 2012 10:55 am
by shannah
Thanks. It's now fixed in 1.3.x and 1.5.x.

-Steve