#32757 [Opn]: file function not allowing multiple underscores in filename

From: Date: Tue, 19 Apr 2005 02:29:48 +0000
Subject: #32757 [Opn]: file function not allowing multiple underscores in filename
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-77842@lists.php.net to get a copy of this message
ID: 32757 User updated by: shawn at shawnfaison dot com Reported By: shawn at shawnfaison dot com Status: Open Bug Type: Filesystem function related Operating System: windows NT PHP Version: 4.3.10 New Comment: <?php // this code returned bool(false) from the var_dump $line = file("april_15_05.csv"); var_dump($line); ?> <?php/** this code returned the var_dump and csv values properly*/ $line = file("april.csv"); var_dump($line); ?> Previous Comments: ------------------------------------------------------------------------ [2005-04-19 04:26:01] shawn at shawnfaison dot com 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@*.com,number,AUGUSTA,GA,http:\\www.value.com " [2]=> string(95) "NAOMI,HAMKE,hamken,email@*.com,,BEDFORD,IN,http:\\www.value.com Actual result: -------------- bool(false) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=32757&edit=1

« previous php.bugs (#77842) next »