|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9697 filename ends with ?
Submitted: 2001-03-12 03:48 UTC Modified: 2001-11-10 08:43 UTC
From: fabiankessler at usa dot net Assigned:
Status: Closed Package: Filesystem function related
PHP Version: 4.0.4 OS: winnt 4.0
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.
Block user comment
Status: Assign to:
Bug Type:
From: fabiankessler at usa dot net
New email:
PHP Version: OS:


 [2001-03-12 03:48 UTC] fabiankessler at usa dot net
this prints out 'crap' because is_dir() and is_file() return null instead of a boolean if the filename ends with a ?.

yes, the file in the example is a valid windows filename.

$fullPath = realpath("c:/{}d    % test.txt  {}  _-d??+@?#?&()=~^`?'$?");
if (is_dir($fullPath) == null) echo 'crap';



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-10-20 21:11 UTC]
Does this happen with PHP 4.0.6 ?


 [2001-11-10 08:43 UTC]
No feedback. Closing.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Tue Mar 21 17:03:43 2023 UTC