|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2001-12-14 14:56 UTC] yohgaki@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 04:00:01 2025 UTC | 
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.