Hi,
On Tue, 27 Jun 2000, Gerald Richter wrote:
> It's neither a bug (of Embperl), nor a feature. I am very sure that Embperl
> resets escmode to 3 upon start of _every_ request and that pages don't
> impact each other(otherwise many of my pages won't work). There must be
> another reason why this happens...
>
> > May I set a default $escmode by using
> > PerlSetenv in httpd.conf?
> >
>
> PerlSetEnv EMBPERL_ESCMODE 3
>
> see "perldoc HTML::Embperl" :-)
Of course :-) - what I meant here is whether PerlSetEnv will bring back
a "deterministic" behaviour :)
I have set up a small test file (btw, $optRawInput is 1):
<html>
<head>
</head>
<body>
<p>escmode: [+ $escmode +]</p>
<p>PID: [+ $$ +]</p>
<p>[+ "test<br>test" +]</p>
</body>
</html>
Hitting reload in my browser, most of the time I get (as expected for
$escmode = default = 3):
escmode: 3
PID: 25903
test<br>test
However, sometimes I get
escmode: 0
PID: 25783
test
test
This occurs almost every time a new PID shows up, but sometimes also
on subsequent requests to the same apache child.
The effect goes away if I add [- $escmode = 3 -] at the top of
the file.
I use Embperl 1.2.1, mod_perl 1.21 and Apache 1.3.11 on HP-UX 11.
Maybe I've got another example of HP-UX weirdness here...
_____
Thomas Corte
<[EMAIL PROTECTED]>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]