ID: 38276 Updated by: [EMAIL PROTECTED] Reported By: bjoernhaeuser at googlemail dot com -Status: Open +Status: Feedback Bug Type: Filesystem function related Operating System: Windows PHP Version: 5.2. (latest) New Comment:
Please try next Win32 snapshot, it should work fine. Previous Comments: ------------------------------------------------------------------------ [2006-08-04 17:20:10] bjoernhaeuser at googlemail dot com D:\php4.3\cli>php -r "var_dump(file_exists(str_repeat('a', 260)));" Warning: file_exists(): Stat failed for aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa (errno=0 - No error ) in Command line code on line 1 bool(false) D:\php4.3\cli>php -r "var_dump(file_exists(str_repeat('a', 255)));" bool(false) Works 'correctly' for me. ------------------------------------------------------------------------ [2006-08-04 15:05:28] [EMAIL PROTECTED] Does 4.4.3 work for you? ------------------------------------------------------------------------ [2006-08-04 13:49:50] bjoernhaeuser at googlemail dot com Well I am getting this: D:\php5.2-cvs>php -v PHP 5.2.0RC2-dev (cli) (built: Aug 4 2006 12:21:08) Copyright (c) 1997-2006 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies D:\php5.2-cvs>php -r "var_dump(file_exists(str_repeat('a', 246)));" bool(true) D:\php5.2-cvs>php -r "var_dump(file_exists(str_repeat('a', 245)));" bool(false) So, its not fixed. ------------------------------------------------------------------------ [2006-08-03 14:18:01] [EMAIL PROTECTED] This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. ------------------------------------------------------------------------ [2006-08-03 14:06:50] bjoernhaeuser at googlemail dot com 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 ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/38276 -- Edit this bug report at http://bugs.php.net/?id=38276&edit=1