# file_exists() bug with windows?

- Thread: https://externals.io/message/5154
- Original archive: https://news-web.php.net/php.internals/5154
- Started by Frank M. Kromann on 2003-10-31T23:11:38+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #5154 — Frank M. Kromann — 2003-10-31T23:11:38+00:00

URL: https://externals.io/message/5154#5154

Hi Matthias,

Not sure if this has changed but with the current developmnet versions of
both php4 and php5 this function returns false for both null and empty
string.

- Frank

> Hi List,
> 
> I noticed that
> 
> file_exists(""); // or null instead of ""
> 
> under my Windows machine
> with php 4.2.2 returns true!?
> 
> My Debian machine with php 4.3.3 works fine
> and returns false!
> 
> Am I alone with that problem or is it a bug?
> 
> Regards,
> Matthias

---

## #5155 — Matthias Nothhaft — 2003-10-31T23:45:41+00:00

URL: https://externals.io/message/5154#5155 · In reply to: #5154

Did you check this under Windows?


Frank M. Kromann wrote:
> Hi Matthias,
> 
> Not sure if this has changed but with the current developmnet versions of
> both php4 and php5 this function returns false for both null and empty
> string.
> 
> - Frank
> 
> 
> > […]
