[PHP-DEV] PHP 4.0 Bug #4435: when you use the fwrite(file, string) function, it puts "\"s before any ' or " From: daniele <email protected>
Date: 05/13/00

From: daniele <email protected>
Operating system: Linux Slackware 7.0
PHP version: 4.0 Release Candidate 2
PHP Bug Type: Misbehaving function
Bug description: when you use the fwrite(file, string) function, it puts "\"s before any ' or "

/* 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

*/

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>