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:             Assigned
+Status:             Closed
 Type:               Bug
 Package:            Filesystem function related
 Operating System:   Linux
 PHP Version:        5.2.14
 Assigned To:        aharvey
 Block user comment: N

 New Comment:

This bug has been fixed in SVN.

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.




Previous Comments:
------------------------------------------------------------------------
[2010-11-05 06:28:09] ahar...@php.net

Automatic comment from SVN on behalf of aharvey
Revision: http://svn.php.net/viewvc/?view=revision&revision=305098
Log: Fix bug #53226 (file_exists fails on big filenames).

------------------------------------------------------------------------
[2010-11-05 06:05:30] ahar...@php.net

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. :)

------------------------------------------------------------------------
[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

Reply via email to