From:             oka at ping dot uio dot no
Operating system: Linux
PHP version:      5.2.6
PHP Bug Type:     Reproducible crash
Bug description:  SIGSEGV crash after calling inherited function in subclass

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 bug report at http://bugs.php.net/?id=45480&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=45480&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=45480&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=45480&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=45480&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=45480&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=45480&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=45480&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=45480&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=45480&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=45480&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=45480&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=45480&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=45480&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=45480&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=45480&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=45480&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=45480&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=45480&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=45480&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=45480&r=mysqlcfg

Reply via email to