php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35581 file_exists with string larger than 219 chars sais TRUE
Submitted: 2005-12-07 12:45 UTC Modified: 2005-12-07 17:11 UTC
From: schoos at xs4all dot nl Assigned:
Status: Not a bug Package: Filesystem function related
PHP Version: 5.1.1 OS: windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: schoos at xs4all dot nl
New email:
PHP Version: OS:

 

 [2005-12-07 12:45 UTC] schoos at xs4all dot nl
Description:
------------
if you pass a string in file_exists larger than 219 chars it will always result in a TRUE result

Reproduce code:
---------------
if (file_exists( '123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789' ))
{
	echo "true<br>";
}
else
{
	echo "false<br>";
}



Expected result:
----------------
false

Actual result:
--------------
true

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-12-07 17:11 UTC] sniper@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

See bug #31347

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 01 01:01:35 2024 UTC