From:             [EMAIL PROTECTED]
Operating system: Solaris 2.x / 7 / 7
PHP version:      4.0.5
PHP Bug Type:     *General Issues
Bug description:  magic_quotes_runtime() value not reality

This issue has been duplicated in 4.0.5 and 4.0.4pl1.  We've not tried to go further 
back.

We have several small HTML forms applications that make use of PHPLIB's template 
feature.  Sometimes when HTML is generated, things are fine.  Other times, it's all 
horked up because there are back-slashes in the HTML output.  We've tracked the root 
cause of this issue to PHP's setting of magic_quotes_runtime().

We have it configured for "Off" but sometimes this function value is 1, other times it 
is 0.  We can insert:

print "magic rt = " . magic_quotes_runtime() . "<br>";

into our application ... sometimes we'll see that the value is 1, other times 0.  Just 
clicking refresh seems to yield a seemly random result.

We've worked around this issue by adding

ini_set("magic_quotes_runtime", 0);

at the top of our code ... but this behavior can't be expected.  Or are we missing 
something?

Thanx for your time in looking into this -- you have a great environment for web 
programming.



-- 
Edit Bug report at: http://bugs.php.net/?id=11042&edit=1



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to