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

From: Date: Sun, 12 Dec 2010 17:43:51 +0000
Subject: Re: SplFileObject_fgetcsv_* tests fail on windows as of a fopen() failure
References: 1  Groups: php.qa 
Request: Send a blank email to php-qa+get-65711@lists.php.net to get a copy of this message
On 12/11/10 11:58 PM, Eyal Teutsch wrote:
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.
The former syntax works fine for me on Linux with PHP 5.3.3. Check the bug db/log a bug, or ask on the Windows list. Chris -- Email: christopher.jones@oracle.com Tel: +1 650 506 8630 Blog: http://blogs.oracle.com/opal/

« previous php.qa (#65711) next »