#21689 [Bgs]: fgetcsv suppresses some characters before a separator

From: Date: Tue, 21 Jan 2003 10:04:38 +0000
Subject: #21689 [Bgs]: fgetcsv suppresses some characters before a separator
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-30809@lists.php.net to get a copy of this message
ID: 21689 User updated by: alpes@softhome.net Reported By: alpes@softhome.net Status: Bogus Bug Type: Filesystem function related Operating System: OS/2 PHP Version: 4.2.3 New Comment: Has refreshed soft: PHP Version 4.3.0 Apache/1.3.27 But the error in operation of the function has remained Previous Comments: ------------------------------------------------------------------------ [2003-01-16 12:19:26] moriyoshi@php.net Thank you for taking the time to report a problem with PHP. Unfortunately you are not using a current version of PHP -- the problem might already be fixed. Please download a new PHP version from http://www.php.net/downloads.php If you are able to reproduce the bug with one of the latest versions of PHP, please change the PHP version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PHP. ------------------------------------------------------------------------ [2003-01-16 10:41:56] alpes@softhome.net fgetcsv suppresses some characters before a separator [OS/2 kheldar 1 2.45 i386, PHP Version 4.2.3, Apache/1.3.22] For example if the csv file has following content: âàø|âåø|âàøå|àø|ø|øø the comand $date = fgetcsv($f, 1000, "|"); gets the array('âà','âå','âàøå','à','',''). instead of array('âàø','âåø','âàøå','àø','ø','øø'). Is installed, that Example works correctly with: 1.FreeBSD 4.1, PHP Version 4.1.2, Apache/1.3.19 2.Windows 98 4.10, PHP Version 4.1.1, Apache/1.3.6 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21689&edit=1

« previous php.bugs (#30809) next »