php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1856 Non-inheritance of class contructors
Submitted: 1999-07-23 19:35 UTC Modified: 1999-07-31 14:59 UTC
From: christophe dot massiot at mail dot dotcom dot fr Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 4.0 Beta 1 OS: Debian GNU/Linux
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: christophe dot massiot at mail dot dotcom dot fr
New email:
PHP Version: OS:

 

 [1999-07-23 19:35 UTC] christophe dot massiot at mail dot dotcom dot fr
The following piece of code is not compatible with the current behaviour since PHP 3.0.x (I don't remember exactly, I wasn't counting) :

class toto {
  var $meuuh;
  function toto() { $this->meuuh = 1; }
}
class titi extends toto {
}
$titi = new titi;
echo "the result is : ".$titi->meuuh;

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-07-31 14:59 UTC] zeev at cvs dot php dot net
Fixed in the latest CVS
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 12 15:01:35 2025 UTC