#44412 [Opn->Csd]: file_exists():PHP got 100% cpu load.
| From: | felipe@php.net | Date: | Thu, 13 Mar 2008 17:30:26 +0000 |
| Subject: | #44412 [Opn->Csd]: file_exists():PHP got 100% cpu load. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-123296@lists.php.net to get a copy of this message | ||
ID: 44412
Updated by: felipe@php.net
Reported By: yarodin at gmail dot com
-Status: Open
+Status: Closed
Bug Type: Directory function related
Operating System: Windows XP PRO/5.1.2600
PHP Version: 5.2.5
New Comment:
Thanks.
Previous Comments:
------------------------------------------------------------------------
[2008-03-13 13:30:15] yarodin at gmail dot com
Yes
------------------------------------------------------------------------
[2008-03-13 11:51:13] jani@php.net
So it works using the snapshot?
------------------------------------------------------------------------
[2008-03-12 15:15:23] yarodin at gmail dot com
Thanks, i haven't see this bug even on php5.2-win32-200803110430.zip
------------------------------------------------------------------------
[2008-03-12 11:02:59] felipe@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows (zip):
http://snaps.php.net/win32/php5.2-win32-latest.zip
For Windows (installer):
http://snaps.php.net/win32/php5.2-win32-installer-latest.msi
------------------------------------------------------------------------
[2008-03-12 03:34:27] 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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44412&edit=1