ID:               45480
 Updated by:       [EMAIL PROTECTED]
 Reported By:      oka at ping dot uio dot no
-Status:           Open
+Status:           Bogus
 Bug Type:         Reproducible crash
 Operating System: Linux
 PHP Version:      5.2.6
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.




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

[2008-07-10 23:31:07] [EMAIL PROTECTED]

  function print_xml($node, $data) {
        $this->print_xml($node, $data);
  }

is an infinite recursion. You most likely want parent::print_xml($node,
$data);

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

[2008-07-10 22:38:16] oka at ping dot uio dot no

Description:
------------
Code with a class and a subclass with constructor functions and a
separate function in both classes causes both the Apache 2.0.63 PHP
module and the cli that ships with PHP 5.2.6 to emit the SIGSEGV
signal.


Reproduce code:
---------------
<?
class Article {
  var $ai;
  function Article() {
  }
  function print_xml($node, $data) {
        return "<" . $node . ">" . $data . "</" . $node . ">";
  }
}
class Contribution extends Article {
  function Contribution() {
    $this->Article();
  }
  function print_xml($node, $data) {
        $this->print_xml($node, $data);
  }
}
$contrib = new Contribution();
print $contrib->print_xml("tagname", "New");
?>

Expected result:
----------------
<tagname>New</tagname>


Actual result:
--------------
I put a partial backtrace from gdb 6.4.90-debian online at
http://www.ping.uio.no/~oka/php-5.2.6-oka-SIGSEGV/php-5.2.6-oka-SIGSEGV.gdb-session.log



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


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

Reply via email to