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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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: Fri Nov 01 01:01:28 2024 UTC