|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
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: Thu Sep 16 20:03:36 2021 UTC