The cached copy of the script that is failing is:

<?
   /* Uncomment the following line if you want to get dates   */
   /* localized (replace second parameter with correct locale)*/
   /* setlocale("LC_ALL","ru_RU.KOI8-R");                     */

   if(!function_exists("mgd_get_midgard")) {
      dl("midgard.so");
   }
   if ($midgard = mgd_get_midgard()) {
      $argc = $midgard->argc;
      $argv = $midgard->argv;
   }
   function mgd_execute_udf($variable, $selector)
   {
      $function = mgd_register_filter($selector);
      $function($variable);
   }
   function mgd_register_filter($selector, $function=NULL)
   {
      static $udf = array();

      if (is_null($function)) {
         return $udf[$selector];
      }

      if ($function == '') {
         unset($udf[$selector]);
      } else {
         $udf[$selector] = $function;
      }

      return 1;
   }
?>
<?
   if ($midgard && $midgard->style == 0) {
      ?><?
        $username = "admin";
        $password = "mypassword";
        if (mgd_auth_midgard($username,$password,true)) {
                echo "Login successful<br>";
        } else {
                echo "Login failed<br>";
        }
?><?
   } else {
      ?><?
        $username = "admin";
        $password = "mypassword";
        if (mgd_auth_midgard($username,$password,true)) {
                echo "Login successful<br>";
        } else {
                echo "Login failed<br>";
        }
?><?
   }?>

Cheers

Mike.


-----Original Message-----
From: Tarjei Huse [mailto:[EMAIL PROTECTED] 
Sent: 22 November 2004 16:20
To: midgard
Subject: Re: [midgard-user] Apache 2 Segmentation Fault


> An example script that segfaults:
> 
> <?
>       $username = "admin";
>       $password = "mypassword";
>       if (mgd_auth_midgard($username,$password,true)) {
>               echo "Login successful<br>";
>       } else {
>               echo "Login failed<br>";
>       }
> ?>
Hi, are you running MMP? If so, would you mind posting the whole MMP cached
copy of this script?

Tarjei
> Unless there is some very strange coincidences going on, it is unlikely to
> be machine specific related (it occurs on 3 separate machines, one with
> Mandrake linux, one with gentoo 2004.1 and one with gentoo 2004.3 - both
> with the latest updates)
> 
> So I am stumped and with the anticipated depreciation of the apache 1
> module, now starting to get a little worried.
> 
> I am not sure which data/logs etc to provide - if you can let me know what
> would be useful?  Any help would me most appreciated.
> 
> By the way, on a completely separate issue - does anyone know of a good OS
> document management system that would work with Midgard?
> 
> Cheers
> 
> Mike 
> 
> 
> ----------------------------------------------------
> Michael Ross - Pan Leeds Web Developer
> 
> Health Informatics Service     Tel: (0113) 305 7417
> 2nd Floor                      Fax: (0113) 305 7398
> North West House
> West Park Ring Road
> West Park
> Leeds
> LS16 6QU
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
-- 
Tarjei Huse <[EMAIL PROTECTED]>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to