-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi.

- --On 02.04.2002 14:26:45 +0200 Emiliano wrote:

>> >> If I use the stock Midgard Root.php from current (=now) CVS, The
>> >> root-file declares the function mgd_register_filter, which is
>> >> already defined. Removing this function from the root file solves
>> >> the problem.
>> 
>> Well, Dependency conflict there, I included that flag to support
>> mgd_eval. Or did I get this wrong and mgd_eval works all the time?
> 
> mgd_eval always works. If you're using CVS, whether it's MMP or
> non-MMP, there will be no calls to mgd_eval (the C implementation)
> since they'll all have been replaced by the preparser with calls to
> eval('?>'.mgd_preparse(....

Ah, ok. Forgot this detail *g*.


> I'm still confused about the friggin' preparser. Asume we have this:
> 
> mgd_eval("echo 'Hi!'");
>
> this will now be changed to
> 
> eval('?>'.mgd_preparse("echo 'Hi!'").'<?php');
> 
> but this can't be right. Shouldn't it be:
>
> eval('?>'.mgd_preparse('<?php '."echo 'Hi!'".' ?>').'<?php');
> 
> mgd_preparse expects to start in HTML mode (and thus returns HTML mode
> strings).

Right. The second "translation" would be the correct one.


Live long and prosper!
Torben Nehmer

- --
Torben Nehmer, Munich, Germany
http://www.nathan-syntronics.de, mailto:[EMAIL PROTECTED]
PGP Public Key ID on wwwkeys.(de.)pgp.net: 0x7E9DE456
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Weitere Infos: siehe http://www.gnupg.org

iD8DBQE8qaSNJPh4Kn6d5FYRAkLuAJ9vTpjdgL5+sjVdiBh8il1FXARqfQCgxTBT
MRhME5GLPzwZYVXsDY2f2BE=
=VUUB
-----END PGP SIGNATURE-----


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

Reply via email to