php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11061 Crash while recursivly call of a class method
Submitted: 2001-05-23 14:24 UTC Modified: 2002-06-18 18:30 UTC
From: Wingman at WINGDesign dot de Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 4.0 Latest CVS (2001-05-23) OS: Linux 2.4.x/Windows 98
Private report: No CVE-ID: None
 [2001-05-23 14:24 UTC] Wingman at WINGDesign dot de
This class will core dump your php, reproducable *every* time (how boring ;-)), testing with latest CVS on Linux 2.4.x and Windows 98

<?

class CFooBar
{
  function barFoo()
  {
    return $this->barFoo();
  }

}

$fooBar = New CFooBar();
$fooBar->barFoo();

?>

gdb bt:
(gdb) bt
#0  0x80e7a56 in zend_fetch_var_address (result=0x81f9fb8, op1=0x81f9fc8, op2=0x81f9fd8, Ts=0xbf800038, type=0)
    at ./zend_execute.c:462
#1  0x80e9c18 in execute (op_array=0x81fb03c) at ./zend_execute.c:1209
#2  0x80ec12b in execute (op_array=0x81fb03c) at ./zend_execute.c:1614
#3  0x80ec12b in execute (op_array=0x81fb03c) at ./zend_execute.c:1614
[CUT]
#47 0x80ec12b in execute (op_array=0x81fb03c) at ./zend_execute.c:1614
#48 0x80ec12b in execute (op_array=0x81fb03c) at ./zend_execute.c:1614
#49 0x80ec12b in execute (op_array=0x81fb03c) at ./zend_execute.c:1614


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-23 15:28 UTC] hholzgra@php.net
maybe it should bail out with an "out of memory" message
instead, but beside that it's good old bullshit in,
bullshit out here. you didn't expect this to run
forever, do you?

PS: there have been lots of reports about this
    before
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 04:01:28 2024 UTC