php.net |  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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
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';

-fab

Patches

Pull Requests

History

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

--Jani

 [2001-11-10 08:43 UTC] sander@php.net
No feedback. Closing.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 06:01:30 2024 UTC