Object Constructors in PHP

From: Date: Fri, 06 Apr 2001 00:19:51 +0000
Subject: Object Constructors in PHP
Groups: php.dev 
Request: Send a blank email to php-dev+get-50980@lists.php.net to get a copy of this message
Don't ask why it is this way, but say we have these files: :::::::::::::: inc1.php :::::::::::::: <? class base { function ForumStyle() { echo ('hi'); } } ?> :::::::::::::: inc2.php :::::::::::::: <? class ForumStyle extends base { var $temp; } ?> :::::::::::::: inc3.php :::::::::::::: <? class Outline_ForumStyle extends ForumStyle { function Outline_ForumStyle () { $this->ForumStyle(); } } ?> :::::::::::::: test.php :::::::::::::: <? include ('inc1.php'); include ('inc2.php'); include ('inc3.php'); $i = new Outline_ForumStyle(); It runs fine printing 'hi' (though not with APC, but fine with Zend Cache). BUT, What _should_ happen? BTW: For the APC list, this is a test case of bug #3. Use the apc_gui to look at inc3.php Sincerely, Steven Roussey Network54.com http://network54.com/?pp=e

« previous php.dev (#50980) next »