>
> 2. I notice that doing:   unset( $midgard);
> After the mgd_unsetuid() seems to help.  Can anyone explain why?

Because mgd_unsetuid doesn't unset $midgard variable.
It only affects $midgard->person.

> 4. Could someone elaborate on the $midgard global var?  Is it always
> advised to set it after doing a mgd_auth_midgard????  E.g.
>
>    $midgard = mgd_get_midgard();

This is not global variable. Not in PHP globals meaning.
And it is advised , cause it was called at least once before
you called mgd_auth_midgard. So you need to call it second time.


> 5. I've also noticed that when switching sitegroups, PHP variables get
> clobbered. E.g.
>
>     mgd_auth_midgard( ROOT."!sitethree". ROOT_ADMIN, 0);
>     $art = mgd_get_article( 12);
>
>     mgd_auth_midgard( ROOT."!sitefive". ROOT_ADMIN, 0);
>
> sometimes even causes apache to segfault!

Nothing weird if you call this after code-global or code-init.
This function should be used only in these two page elements.
Anyway , please send some gdb output from backtrace.
We love such bts :)

Piotras




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

Reply via email to