Jump to content

file_exists() long filename bug


Catfish

Recommended Posts

Hi all,

 

I've made a script that handles files and moves them about and what not.

 

I've run into a problem and  its the only thing wrong with my script. The file_exists() function doesn't like to work correctly with filenames that are rather long. I don't know the limit of the number of characters exactly but I'd guess its around the 255 or 320 mark or something from what i know about filenaming and file system limitations.

 

I think my PHP version is 5.2.3, that's the installer file's version number anyway. It's a Win32 installation.

 

file_exists() is returning FALSE to files that absolutely do exist but have long filenames.

 

 

Is there some workaround to this bug or an update i can apply?

 

PS: If you can help, you can email replies to catfish AT beardeddonkey DOT com as I don't get online often and checking my email would be easier than finding this thread at the forum (although I will subscribe to this thread so feel free to reply here too)

Link to comment
https://forums.phpfreaks.com/topic/113661-file_exists-long-filename-bug/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.