php.net |  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:
 [2008-03-12 03:34 UTC] yarodin at gmail dot com
Description:
------------
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/http://gpa.ptungr.office.ttg/e107_images/pcmag.png")) {
print_r("YAY\n");
} else {
print_r("NOONE\n");
}
?>

Expected result:
----------------
high cpu loadby php.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-03-12 15:15 UTC] yarodin at gmail dot com
Thanks, i haven't see this bug even on php5.2-win32-200803110430.zip
 [2008-03-13 11:51 UTC] jani@php.net
So it works using the snapshot?
 [2008-03-13 13:30 UTC] yarodin at gmail dot com
Yes
 [2008-03-13 17:30 UTC] felipe@php.net
Thanks.
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Sun Apr 20 19:01:51 2014 UTC