From: shawn at shawnfaison dot com
Operating system: windows NT
PHP version: 4.3.10
PHP Bug Type: Filesystem function related
Bug description: file function not allowing multiple underscores in filename
Description:
------------
When i attempted this code as follows my var_dump function returned
bool(false).
However after removing the underscores from the csv file the file function
worked just fine.
Reproduce code:
---------------
<?php
$line = file("april_15_05.csv");
var_dump($line);
?>
Expected result:
----------------
/** a var_dump describing the array created by file and the comma
separated values */
array(50) { [0]=> string(71) "First Name,Last
Name,Weblogin,E-Mail,Pager/Cell,City,State,Webaddress " [1]=> string(112)
"firstName,lastName,fultonc2,[EMAIL
PROTECTED],number,AUGUSTA,GA,http:\\www.value.com
" [2]=> string(95)
"NAOMI,HAMKE,hamken,[EMAIL PROTECTED],,BEDFORD,IN,http:\\www.value.com
Actual result:
--------------
bool(false)
--
Edit bug report at http://bugs.php.net/?id=32757&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32757&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=32757&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=32757&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=32757&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=32757&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=32757&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=32757&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=32757&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32757&r=support
Expected behavior: http://bugs.php.net/fix.php?id=32757&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=32757&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=32757&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=32757&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32757&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=32757&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=32757&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32757&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=32757&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=32757&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=32757&r=mysqlcfg