#44412 [Opn->Fbk]: file_exists():PHP got 100% cpu load.
ID: 44412
Updated by: felipe@php.net
Reported By: yarodin at gmail dot com
-Status: Open
+Status: Feedback
Bug Type: Directory function related
Operating System: Windows XP PRO/5.1.2600
PHP Version: 5.2.5
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[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
Thread (6 messages)