php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32757 file function not allowing multiple underscores in filename
Submitted: 2005-04-19 04:26 UTC Modified: 2005-04-19 08:31 UTC
From: shawn at shawnfaison dot com Assigned:
Status: Not a bug Package: Filesystem function related
PHP Version: 4.3.10 OS: windows NT
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: shawn at shawnfaison dot com
New email:
PHP Version: OS:

 

 [2005-04-19 04:26 UTC] 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)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-04-19 08:31 UTC] sniper@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 15 20:01:35 2024 UTC