|  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
37 + 35 = ?
Subscribe to this entry?

 [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: Thu Sep 16 19:03:38 2021 UTC