Bug #10834 Updated: PHP will crash if you execute a double-include, which go through 2 directories
| From: | derick@php.net | Date: | Sat, 12 May 2001 23:36:58 +0000 |
| Subject: | Bug #10834 Updated: PHP will crash if you execute a double-include, which go through 2 directories | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-55047@lists.php.net to get a copy of this message | ||
ID: 10834
Updated by: derick
Reported By: info@home-page.de
Old-Status: Open
Status: Feedback
Bug Type: Reproducible crash
Operating system:
PHP Version: 4.0.5
Assigned To:
Comments:
I could not reproduce this on Linux/PHP 4.0.6dev with the
following structure:
/include1.php
/1/include2.php
/2/test.php
test.php =
<?php
include ("../1/include2.php");
echo "test.php\n";
?>
include2.php =
<?php
include ("../include1.php");
echo "include2.php\n";
?>
include1.php =
<?php
echo "include1.php\n";
?>
Are you maybe doing a recursive include? Does using include_once (instead of include) works for you?
If these two options don't help you, please make a tar of your reproducing scripts, and mail
them to me (derick at php dot net).
Previous Comments:
---------------------------------------------------------------------------
[2001-05-12 18:21:36] info@home-page.de
To reproduce it, create a php file (content doesn't matter), then make a directory and change
into it. Create a second php file including the first one, make another directory and write a php
file with an include to the second file into it. When you start this file, PHP begins to consume all
available CPU und RAM resources. The consequence is a crash of the whole machine running the httpd-
or php-process. The memory limiting function in PHP doesn't take effect in this case.
Regards,
Daniel Fuehrer
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10834&edit=2