note 87080 added to function.fputcsv

From: Date: Tue, 18 Nov 2008 21:38:21 +0000
Subject: note 87080 added to function.fputcsv
Groups: php.notes 
Request: Send a blank email to php-notes+get-146669@lists.php.net to get a copy of this message
Beware, this function is BROKEN! The escape character within a field is supposed to be a doubling of the enclosure character, yet sometimes php sees a backslash as the escape sequence. Thanks to broken php implementation, this function cannot be for serious business. <? // proper output is: "hello""there" // (which php gets correct) fputcsv($fh, array('hello"there')); // proper output is: "hello\""there" // ( php fails, by giving: "hello\"there" ) fputcsv($fh, array('hello\"there')); ?> ---- Server IP: 66.207.199.35 Probable Submitter: 69.70.125.250 ---- Manual Page -- http://www.php.net/manual/en/function.fputcsv.php Edit -- https://master.php.net/note/edit/87080 Del: integrated -- https://master.php.net/note/delete/87080/integrated Del: useless -- https://master.php.net/note/delete/87080/useless Del: bad code -- https://master.php.net/note/delete/87080/bad+code Del: spam -- https://master.php.net/note/delete/87080/spam Del: non-english -- https://master.php.net/note/delete/87080/non-english Del: in docs -- https://master.php.net/note/delete/87080/in+docs Del: other reasons-- https://master.php.net/note/delete/87080 Reject -- https://master.php.net/note/reject/87080 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#146669) next »