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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Fri Mar 29 00:01:28 2024 UTC