SplFileObject_fgetcsv_* tests fail on windows as of a fopen() failure

From: Date: Sun, 12 Dec 2010 07:58:18 +0000
Subject: SplFileObject_fgetcsv_* tests fail on windows as of a fopen() failure
Groups: php.qa 
Request: Send a blank email to php-qa+get-65710@lists.php.net to get a copy of this message
Hi, All (7) spl SplFileObject_fgetcsv_* tests (such as SplFileObject_fgetcsv_basic) fail for me on windows. They all fail as of the following line: <?php $fp = fopen('SplFileObject::fgetcsv.csv', 'w+'); which throws the following warning: Warning: fopen(SplFileObject::fgetcsv.csv): failed to open stream: Invalid argument...bool(false) It should be noted, that on the other hand: <?php $fp = new SplFileObject('fgetcsv.csv', 'w+'); $fp1 = fopen('fgetcsv.csv', 'w+'); does work ok. Any ideas? thx, Eyal

« previous php.qa (#65710) next »