Hello,

This is a bug report.


----------------------------------------------------
Server configuration is :

uname -r :
2.6.9-55.0.2.ELsmp (CentOS 4.4)

/usr/sbin/httpd -v :
Server version: Apache/2.2.4 (Unix)
Server built:   Jul  9 2007 19:20:17

suphp -v :
suPHP version 0.6.2
(c) 2002-2005 Sebastian Marsching
suPHP has to be called by mod_suphp to work.

/usr/local/php5/bin/php-cgi -v :
PHP 5.2.4 (cgi-fcgi) (built: Sep 26 2007 20:12:37)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

usr/local/php4/bin/php -v :
PHP 4.4.7 (cgi-fcgi) (built: Oct 10 2007 22:05:53)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend

----------------------------------------------------


----------------------------------------------------
Bug is :

When a customer run a script that tries to read a file that does not 
exists thru a PHP script, the script goes looping error and over the max 
execution limit time period set in the php.ini. This causes the server 
to hung.

----------------------------------------------------

----------------------------------------------------
Proof of concept :

<?php

$file = fopen('stupidpath/test.txt', 'r');

while (!feof($file))
{
   $text = fgets($file);
}

fclose($file);

?>

----------------------------------------------------

Gregory Agerba

_______________________________________________
suPHP mailing list
[email protected]
http://lists.marsching.biz/mailman/listinfo/suphp

Reply via email to