php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2405 fputs excape-quotes strings
Submitted: 1999-09-29 08:00 UTC Modified: 1999-10-04 17:24 UTC
From: ajung at sz-sb dot de Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 4.0 Beta 2 OS: Solaris 2.7
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ajung at sz-sb dot de
New email:
PHP Version: OS:

 

 [1999-09-29 08:00 UTC] ajung at sz-sb dot de
I use fputs() to write a string containing a text in quotes to a socket.
On the receiving side the string comes out with escaped quotes \".

Although I set "php_value magic_quotes_runtime" to both "on" and "off" 
the backslashes remain in the string on the receiving side.

Any idea ?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-10-04 17:24 UTC] sas at cvs dot php dot net
If you use fputs(a,b) and magic_quotes_runtime is enabled, fputs will run stripslashes. So, you won't see any encoding effect from fputs.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Oct 11 23:00:01 2026 UTC