Torben Nehmer 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(....

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).

Ow.

Emile



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

Reply via email to