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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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: Mon Oct 12 04:00:01 2026 UTC