php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4435 when you use the fwrite(file, string) function, it puts "\"s before any ' or "
Submitted: 2000-05-13 04:46 UTC Modified: 2000-05-13 08:29 UTC
From: daniele at dcs dot it Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 4.0 Release Candidate 2 OS: Linux Slackware 7.0
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: daniele at dcs dot it
New email:
PHP Version: OS:

 

 [2000-05-13 04:46 UTC] daniele at dcs dot it
/* the following is the content of a <textarea></textarea> HTML tag */

/*	this (") and this(') give some trouble	*/

/* if the textarea name is $body, I do something like this : */

$ofile=fopen("/tmp/tempfile", 'w');
fwrite($ofile, $body);

/* when i go and read $ofile, it utputs like this : */

this (\") and this(\') give some trouble

/*
	It happens both with RC1 and RC2.
	I used to work with php-3.0.12, I updated the software on the server
	to both the latest versions, but I had to installa 3.0.12 back!
	Any Idea?

	bye

		Daniele

*/






Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-05-13 08:29 UTC] sterling at cvs dot php dot net
This is the expected behavior when magic quotes is enabled.  Either disable magic quotes
or use the stripslashes function.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 12 13:01:32 2024 UTC