Bug #10591 Updated: magic_quotes_runtime being randomly set?
| From: | zak@php.net | Date: | Wed, 02 May 2001 03:07:36 +0000 |
| Subject: | Bug #10591 Updated: magic_quotes_runtime being randomly set? | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-53279@lists.php.net to get a copy of this message | ||
ID: 10591
Updated by: zak
Reported By: phpbug@samrowe.com
Status: Open
Bug Type: PHP options/info functions
PHP Version: 4.0 Latest CVS (01/05/2001)
Assigned To:
Comments:
Hmmm... maybe we do have a bug here...
There are no calls to magic_quotes_runtime().
There are no includes, requires or auto_(pre|ap)pend_files.
The php.ini files and apache conf files don't set magic_quotes_runtime.
And there are no other scripts on the box that call magic_quotes_runtime() or set_ini
('magic_quotes_runtime', 'On');
So, right now it does seem that magic_quotes_runtime does to randomly turn on and off.
Calls to get_magic_quotes_runtime() accurately report whether magic_quotes_runtime is active, while
phpinfo() reports that magic_quotes_runtime is off - both locally and the master value.
Initial reports indicated that the bug may have been related to file(), however, the problem can be
reproduced using fopen() as well - see http://airbag.tss.peachnet.edu/~sam/fopen.php
and http://airbag.tss.peachnet.edu/~sam/fopen.txt.
Anyone have any ideas here - I am coming up blank.
Previous Comments:
---------------------------------------------------------------------------
[2001-05-01 21:19:23] zak@php.net
Damn... misread last comment. Have asked user to send me relevant code. I would guess that
something simple to fix on here...
---------------------------------------------------------------------------
[2001-05-01 21:05:19] phpbug@samrowe.com
Semi-randomly?
There are no odd lines in my php.ini...
I need this to work for my app! :)
---------------------------------------------------------------------------
[2001-05-01 20:54:05] zak@php.net
The php.ini parser may behave strangely when presented with broken lines, semi-randomly turning
features on and off.
IMHO not a giant issue - if I get a chance, I will take a closer look at it.
---------------------------------------------------------------------------
[2001-05-01 20:36:08] phpbug@samrowe.com
yea, lost a line break in there... it's as it should be in
the php.ini. Sorry about that.
---------------------------------------------------------------------------
[2001-05-01 20:25:18] zak@php.net
If this:
; Magic quotes for runtime-generated data, e.g. data from
SQL, from exec(), etc.magic_quotes_runtime = Off
is literal, it should be:
; Magic quotes for runtime-generated data, e.g. data from
SQL, from exec(), etc.
magic_quotes_runtime = Off
---------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view the rest of the comments,
please view the bug report online.
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10591&edit=2