#19598 [Bgs]: Including a file in itself causes the php.exe program to crash.

From: Date: Wed, 25 Sep 2002 21:03:16 +0000
Subject: #19598 [Bgs]: Including a file in itself causes the php.exe program to crash.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-20365@lists.php.net to get a copy of this message
ID: 19598 User updated by: rami@rjames.org Reported By: rami@rjames.org Status: Bogus Bug Type: Reproducible crash Operating System: Windows 2000, sp3 PHP Version: 4.2.3 New Comment: Allow me to be more specific. This was not a support question, as I already know the answer to the problem. I just wanted to let you guys know that this is a serious error which can bring down the php.exe file on the remote server. If I create an empty php file called "test.php" and place this text within it, it will cause php.exe to crash. <?php include("text.php"); ?> It causes a loop which PHP doesn't prevent by throwing an error. Previous Comments: ------------------------------------------------------------------------ [2002-09-25 13:18:21] iliaa@php.net Sorry, but the bug system is not the appropriate forum for asking support questions. Your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php Thank you for your interest in PHP. This is why you should use include/require_once functions, they will prevent inclusion of the same file more then once. The source of the crash I am guessing, is that your system simply ran out of resources since what you did was make a fairly resource entensive unterminated loop. ------------------------------------------------------------------------ [2002-09-25 13:13:17] rami@rjames.org Including a file in itself causes the php.exe program to crash. It was late, and I was tired. :) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=19598&edit=1

« previous php.bugs (#20365) next »