|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-12-13 12:46 UTC] johannes@php.net
-Status: Open
+Status: Bogus
[2010-12-13 12:46 UTC] johannes@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 03:00:01 2025 UTC |
Description: ------------ fopen on SplFileObject seems to fail on windows with an 'Invalid argument' warning. this bug causes the SplFileObject_fgetcsv_* tests to fail on windows. It should be noted, that on the other hand: <?php $fp = new SplFileObject('fgetcsv.csv', 'w+'); $fp1 = fopen('fgetcsv.csv', 'w+'); does work ok. Test script: --------------- <?php var_dump(fopen('SplFileObject::fgetcsv.csv', 'w+')); Expected result: ---------------- resource(5) of type (stream) Actual result: -------------- Warning: fopen(SplFileObject::fgetcsv.csv): failed to open stream: Invalid argument in C:\inetpub\wwwroot\scrap.php on line 2 bool(false)