PHP 4.0 Bug #10591 Updated: file() seemingly randomly adds slashes
| From: | phpbug at samrowe dot com | Date: | Wed, 02 May 2001 00:36:08 +0000 |
| Subject: | PHP 4.0 Bug #10591 Updated: file() seemingly randomly adds slashes | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-53263@lists.php.net to get a copy of this message | ||
ID: 10591
User Update by: phpbug@samrowe.com
Status: Open
Bug Type: *General Issues
Description: file() seemingly randomly adds slashes
yea, lost a line break in there... it's as it should be in
the php.ini. Sorry about that.
Previous Comments:
---------------------------------------------------------------------------
[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
---------------------------------------------------------------------------
[2001-05-01 20:17:20] phpbug@samrowe.com
; Magic quotes for incoming GET/POST/Cookie data.
magic_quotes_gpc = Off
; Magic quotes for runtime-generated data, e.g. data from
SQL, from exec(), etc.magic_quotes_runtime = Off
---------------------------------------------------------------------------
[2001-05-01 20:15:23] zak@php.net
Could you post the relevant section of your php.ini file?
---------------------------------------------------------------------------
[2001-05-01 20:03:56] phpbug@samrowe.com
Changed. Looks like the runtime var is getting turned on and
off... what's up wit dat?! :)
---------------------------------------------------------------------------
[2001-05-01 19:56:17] zak@php.net
That does seem odd...
Try get_magic_quotes_runtime() instead of get_magic_quotes_gpc() - gpc quoting only happens to
get/post/cookie data.
---------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view the rest of the comments,
please view the bug report online.
Full Bug description available at: http://bugs.php.net/?id=10591