|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
  [2002-10-14 18:49 UTC] seba at volja dot 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) PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 16:00:01 2025 UTC | 
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.Nevermind... I tried with another infinite recursion: <?php function a() { b(); } function b() { a(); } a(); ?> And the same happend as the include recursion...