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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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 11:01:30 2024 UTC