|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-10-20 21:11 UTC] sniper@php.net
[2001-11-10 08:43 UTC] sander@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 13:00:01 2025 UTC |
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