#40381 [Opn->Bgs]: Segfault when function is called recursively

From: Date: Wed, 07 Feb 2007 08:28:42 +0000
Subject: #40381 [Opn->Bgs]: Segfault when function is called recursively
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-108526@lists.php.net to get a copy of this message
 ID:               40381
 Updated by:       derick@php.net
 Reported By:      guus dot leeuw at guusleeuwit dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Reproducible crash
 Operating System: RedHat FC6 x64
 PHP Version:      5.2.0
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php

.


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

[2007-02-07 08:12:03] guus dot leeuw at guusleeuwit dot com

Description:
------------
Using the script below causes PHP to crash with a segfault. I would
expect PHP to catch a recursion like this and report an error through
php_error or some such.

Reproduce code:
---------------
<?php

class A {
        function last_error()
        {
                return $this->last_error();
        }
}

$a = new A();
echo $a->last_error();
exit(0);
?>


Expected result:
----------------
I expect an error along the lines of:
brk() problem when calling function last_error(). Cannot increase stack
space.

Actual result:
--------------
Segmentation fault


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


-- 
Edit this bug report at http://bugs.php.net/?id=40381&edit=1


Thread (2 messages)

« previous php.bugs (#108526) next »