Edit report at http://bugs.php.net/bug.php?id=53226&edit=1
ID: 53226 Updated by: ahar...@php.net Reported by: daedal13 at gmail dot com Summary: file_exists fails on big filenames -Status: Open +Status: Assigned Type: Bug Package: Filesystem function related Operating System: Linux PHP Version: 5.2.14 -Assigned To: +Assigned To: aharvey Block user comment: N New Comment: Fundamentally, it's just that open_basedir only generates the one, generic warning if an error occurs, such as the given path being too long. We should be able to do a bit better here. :) Previous Comments: ------------------------------------------------------------------------ [2010-11-02 08:44:36] daedal13 at gmail dot com Description: ------------ When I call "file_exists" with long string, I see warnings. In my case, if length of parameter is longer than 3 863 bytes, file_exists fails. Similar situations happens with is_file. Excuse me for my English :-) Test script: --------------- <?php file_exists($some_large_text); ?> Expected result: ---------------- Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(... ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=53226&edit=1