#38276 [Opn]: file_exists works incorrectly with long filenames
| From: | bjoernhaeuser at googlemail dot com | Date: | Thu, 03 Aug 2006 14:06:50 +0000 |
| Subject: | #38276 [Opn]: file_exists works incorrectly with long filenames | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-100283@lists.php.net to get a copy of this message | ||
ID: 38276
User updated by: bjoernhaeuser at googlemail dot com
Reported By: bjoernhaeuser at googlemail dot com
Status: Open
Bug Type: Filesystem function related
Operating System: Windows
PHP Version: 5.2. (latest)
New Comment:
I have just checked some more and found this:
D:\php5.2-win32-latest>php -r "var_dump(file_exists(str_repeat('a',
236)));"
bool(false)
D:\php5.2-win32-latest>php -r "var_dump(file_exists(str_repeat('a',
237)));"
bool(true)
file_exists works here incorrectly with filenames > 236
Yours sincerely
Previous Comments:
------------------------------------------------------------------------
[2006-08-03 13:56:12] bjoernhaeuser at googlemail dot com
Sorry for my late answer.
I am getting this with the latest snapshot:
D:\php5.2-win32-latest>php -v
PHP 5.2.0RC2-dev (cli) (built: Aug 3 2006 12:21:14)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies
D:\php5.2-win32-latest>php -r "var_dump(file_exists(str_repeat('a',
10000)));"
bool(true)
D:\php5.2-win32-latest>php -r "var_dump(file_exists(str_repeat('a',
255)));"
bool(true)
file_exists works here totally incorrect.
Yours sincerely
------------------------------------------------------------------------
[2006-07-31 21:42:40] tony2001@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.2-win32-latest.zip
------------------------------------------------------------------------
[2006-07-31 21:32:16] bjoernhaeuser at googlemail dot com
Description:
------------
Hey Guys!
Relating to: http://bugs.php.net/bug.php?id=31347
This Bug seems to be not fixed.
Reproduce code:
---------------
D:\>php -r "var_dump(file_exists(str_repeat('a', 10000)));"
D:\>php -r "var_dump(file_exists(str_repeat('a', 255)));"
Expected result:
----------------
file_exists should return false in both cases.
Actual result:
--------------
D:\>php -r "var_dump(file_exists(str_repeat('a', 10000)));"
bool(true)
D:\>php -r "var_dump(file_exists(str_repeat('a', 255)));"
bool(false)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=38276&edit=1