ID:               19910
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Bogus
 Bug Type:         Scripting Engine problem
 Operating System: Windows NT 5.0 build 2195
 PHP Version:      4.2.2
 New Comment:

Hehe .. just incrementing an integer value doesn't overflow the stack
while a recursive functionc all does.


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

[2002-10-15 05:20:54] [EMAIL PROTECTED]

Nevermind... I tried with another infinite recursion:
<?php
function a() {
        b();
}
function b() {
        a();
}
a();
?>

And the same happend as the include recursion...

------------------------------------------------------------------------

[2002-10-15 05:19:06] [EMAIL PROTECTED]

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.

------------------------------------------------------------------------

[2002-10-14 19:02:21] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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

Reply via email to