#19910 [Opn->Bgs]: including __FILE__

From: Date: Tue, 15 Oct 2002 00:02:21 +0000
Subject: #19910 [Opn->Bgs]: including __FILE__
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-22412@lists.php.net to get a copy of this message
 ID:               19910
 Updated by:       sniper@php.net
 Reported By:      seba@volja.net
-Status:           Open
+Status:           Bogus
 Bug Type:         Scripting Engine problem
 Operating System: Windows NT 5.0 build 2195
 PHP Version:      4.2.2
 New Comment:

There are also many other ways to crash PHP like this.
This is called "Infinite recursion".
Not a bug.





Previous Comments:
------------------------------------------------------------------------

[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



Thread (5 messages)

« previous php.bugs (#22412) next »