|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-07-31 21:32 UTC] 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) PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 22 07:00:01 2025 UTC |
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 sincerelyI 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 sincerelyWell 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.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.