|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44412 file_exists():PHP got 100% cpu load.
Submitted: 2008-03-12 03:34 UTC Modified: 2008-03-13 17:30 UTC
From: yarodin at gmail dot com Assigned:
Status: Closed Package: Directory function related
PHP Version: 5.2.5 OS: Windows XP PRO/5.1.2600
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.
Block user comment
Status: Assign to:
Bug Type:
From: yarodin at gmail dot com
New email:
PHP Version: OS:


 [2008-03-12 03:34 UTC] yarodin at gmail dot com
Apache 2.2.8/mod_php5

file_exist() func make 100% cpu load on some buggy string passed as param. See reproduce code.

Reproduce code:
if (file_exists("e107_images/newspost_images/")) {
} else {

Expected result:
high cpu loadby php.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-03-12 15:15 UTC] yarodin at gmail dot com
Thanks, i haven't see this bug even on
 [2008-03-13 11:51 UTC]
So it works using the snapshot?
 [2008-03-13 13:30 UTC] yarodin at gmail dot com
 [2008-03-13 17:30 UTC]
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Aug 01 06:01:24 2021 UTC