#44412 [Opn->Fbk]: file_exists():PHP got 100% cpu load.

From: Date: Wed, 12 Mar 2008 11:02:59 +0000
Subject: #44412 [Opn->Fbk]: file_exists():PHP got 100% cpu load.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-123220@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:           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)

« previous php.bugs (#123220) next »