#19910 [Com]: including __FILE__

From: Date: Tue, 15 Oct 2002 10:19:07 +0000
Subject: #19910 [Com]: including __FILE__
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-22484@lists.php.net to get a copy of this message
ID: 19910 Comment by: seba@volja.net Reported By: seba@volja.net Status: Bogus Bug Type: Scripting Engine problem Operating System: Windows NT 5.0 build 2195 PHP Version: 4.2.2 New Comment: Hmm... I tried another version of the infinite loop: <?php while (1) { $x++; } ?> And the result was just: Fatal error: Maximum execution time of 30 seconds exceeded in d:\wwwroot\smeti\bug.php on line 3 So I think, that the same must happen with the include (infinite) recursion. Previous Comments: ------------------------------------------------------------------------ [2002-10-14 19:02:21] sniper@php.net There are also many other ways to crash PHP like this. This is called "Infinite recursion". Not a bug. ------------------------------------------------------------------------ [2002-10-14 18:49:08] seba@volja.net If you include the file is beeing parsed, either with __FILE__ or with the filename, apache (I just tested on apache and php 4.2.2) will crash. <?php include __FILE__; ?> OR <?php // __FILE__ == 'test.php'; true include 'test.php'; ?> result: Apache.exe has generated errors and will be closed by Windows... (and so on) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=19910&edit=1

« previous php.bugs (#22484) next »