#35367 [Opn->Fbk]: php exits (crashes?) on function call inside same function

From: Date: Thu, 24 Nov 2005 15:19:03 +0000
Subject: #35367 [Opn->Fbk]: php exits (crashes?) on function call inside same function
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-88855@lists.php.net to get a copy of this message
 ID:               35367
 Updated by:       tony2001@php.net
 Reported By:      andrus at wap3 dot net
-Status:           Open
+Status:           Feedback
 Bug Type:         Class/Object related
 Operating System: Debian Linux
 PHP Version:      4.4.1
 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.

I can't see any crashes or exits with this code.


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

[2005-11-24 15:55:11] andrus at wap3 dot net

Description:
------------
Function terminates while calling itself from itself inside class

Reproduce code:
---------------
make class:

class test {

        function foo ($a = 0) {
              $a++;
              if ($a < 10)
                 $a = $this->foo ($a);
              return $a;
         }

     }


use it:
$a = new test;
print $a->foo (1);



Expected result:
----------------
any result, not termination

Actual result:
--------------
php script terminates on $this->foo place


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


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


Thread (11 messages)

« previous php.bugs (#88855) next »