Doc #69608 [Opn->Nab]: fwrite and magic_quotes_runtime
| From: | cmb@php.net | Date: | Tue, 12 Sep 2017 10:38:46 +0000 |
| Subject: | Doc #69608 [Opn->Nab]: fwrite and magic_quotes_runtime | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-14965@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=69608&edit=1
ID: 69608
Updated by: cmb@php.net
Reported by: cmb@php.net
Summary: fwrite and magic_quotes_runtime
-Status: Open
+Status: Not a bug
Type: Documentation Problem
Package: Filesystem function related
Operating System: *
PHP Version: Irrelevant
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
> However, when magic_quotes_runtime is On, writing would not
> *strip*, but rather *add* slashes [â¦]
No, it does indeed strip, see <https://3v4l.org/KLqJ9>.
Previous Comments:
------------------------------------------------------------------------
[2015-05-08 19:34:29] cmb@php.net
Description:
------------
---
From manual page: http://www.php.net/function.fwrite
---
The documentation states:
> Note that if the length argument is given, then the
> magic_quotes_runtime configuration option will be ignored and no
> slashes will be stripped from string.
However, when magic_quotes_runtime is On, writing would not
*strip*, but rather *add* slashes (backslashes might be the better
wording).
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=69608&edit=1