php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12040 PHP dumps core when using a 3x derived class from a series of included files
Submitted: 2001-07-11 04:40 UTC Modified: 2001-08-19 04:47 UTC
From: patrick at jordan-smith dot org Assigned:
Status: Closed Package: Reproducible crash
PHP Version: 4.0.6 OS: Debian/GNULinux unstable
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: patrick at jordan-smith dot org
New email:
PHP Version: OS:

 

 [2001-07-11 04:40 UTC] patrick at jordan-smith dot org
This is bug #12032 but I don't have a password to add more 
info to it (didn't enter one, was rushed)

Yes,it seems to have to do with the calling of parent
object fuctions in files incuded from files that have been
included. Following are 3 php files that reproduce it,you
run the D.PHP file. If the a.php file is included in d.php
instead of b.php, there is no problem.
 
// -- A.PHP --
<?
class a
{
  function a()
  {
    ->_constructor();
  }
 
  function _constructor()
  {
  }
}
?>
// -- EOF --
 
// -- B.PHP --
<?
include("a.php");
 
class b extends a
{
  function _constructor()
  {
    parent::_constructor();
  }
}
 
class c extends b
{
  function _constructor()
  {
    parent::_constructor();
  }
}
?>
// -- EOF --
 
// -- D.PHP --
<?
{
  function _constructor()
  {
    parent::_constructor();
  }
}
 
class c extends b
{
  function _constructor()
  {
    parent::_constructor();
  }
}
?>
// -- EOF --
 
// -- D.PHP --
<?
  include("b.php");
   = new c;
?>
// -- EOF --


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-11 21:19 UTC] patrick at jordan-smith dot org
Okay, the cvs version fixes this crash, so I've closed the 
bug, thanks all for your suggestions and writing such a 
useful tool!

 [2001-08-19 04:47 UTC] sniper@php.net
for some reason this report wasn't closed..
Now it should be.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 15 19:01:34 2024 UTC