#44412 [Fbk->Opn]: file_exists():PHP got 100% cpu load.
| From: | yarodin at gmail dot com | Date: | Wed, 12 Mar 2008 15:15:23 +0000 |
| Subject: | #44412 [Fbk->Opn]: file_exists():PHP got 100% cpu load. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-123229@lists.php.net to get a copy of this message | ||
ID: 44412
User updated by: yarodin at gmail dot com
Reported By: yarodin at gmail dot com
-Status: Feedback
+Status: Open
Bug Type: Directory function related
Operating System: Windows XP PRO/5.1.2600
PHP Version: 5.2.5
New Comment:
Thanks, i haven't see this bug even on php5.2-win32-200803110430.zip
Previous Comments:
------------------------------------------------------------------------
[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