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
 [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 11:01:32 2025 UTC