ID:               25956
 Updated by:       [EMAIL PROTECTED]
 Reported By:      zefram at zefram dot net
-Status:           Open
+Status:           Bogus
 Bug Type:         Reproducible crash
 Operating System: FreeBSD 4.9 STABLE
 PHP Version:      4.3.3
 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

Infitite function or method recursion will lead to stack overflow.


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

[2003-10-22 16:40:45] zefram at zefram dot net

Figured out the cause and the fix. Still a nasty error  
that the compiler should look for, IMO. Here's the code  
that was broken:  
  
--------------  
  
class Store extends Data {  
  function showList($list_ref) {  
// Should be:   $list = parent::showList($list_ref);   
    $list = $this->showList($list_ref);  
  
    return "a";  
  }  
}  
  
class Data {  
  function showList($list_ref) {  
    return "";  
  }  
}  
  
$test = new Store();  
  
echo $test->showList(1);  
  
--------------  
  
As you can see, infinite recursion is not your friend.  
  
John

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

[2003-10-22 16:25:26] zefram at zefram dot net

Description:
------------
Apache is killing children left and right giving this 
error: 
 
[Wed Oct 22 16:04:15 2003] [notice] child pid 1024 exit 
signal Illegal instruction (4) 
 
It happens every time I try to run an application I'm in 
the middle of building. Very frustrating. I cannot provide 
code, as it's a closed source app. I'll try to reduce the 
code to what's exactly dying, but I'm not sure at this 
point what it is. It seems to have to do with objects and 
perhaps inheritance. My compile options are: 
 
./configure  --with-apache=../apache_1.3.27/ --with-mysql 
--with-gd --enable-sockets --with-png-dir=/usr/include/
libpng --with-zlib-dir=/usr/include --with-jpeg-dir=/usr/
include/libjpeg -- 
with-mhash 
 
Apache just loads php4 and enables mod_rewrite. 
 
Apache is not dropping a core file, so I can't provide a 
backtrace. 
 
Any guidance would be much appreciated. 
 
John 



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


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

Reply via email to