ID: 14206 Updated by: mfischer Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: Filesystem function related Operating System: Linux 2.2.19 PHP Version: 4.0.6 New Comment:
Can't reproduce this with 4.0.6 CGI und current CVS version. Please provide a independent runnning script with its own input data (i.e. so its for the testers just a matter of copy&paste and run). If in doubt also try latest RC from http://www.php.net/~zeev/php-4.1.0RC3.tar.gz Feedback. Previous Comments: ------------------------------------------------------------------------ [2001-11-24 06:24:38] [EMAIL PROTECTED] Hi, i just found a very strange bug. Im using something like this in a class: function csv_Append ($file, $elements, $separator = ';') { $fp = fopen($file, 'a'); if (!$locked = flock($fp, LOCK_EX)) return false; $out = implode($separator, $elements)."\n"; fputs($fp, $out); flock($fp, LOCK_UN); fclose($fp); return true; } //-- end function When using this function fputs() cuts out all escaped codes like \n \r \t .... even if i try to write it directly (chr(13)) and i check the file with a hex editor the is no 0A byte... but fputs reports it has written one byte (returns 1) ... ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=14206&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]