note 14851 added to language.oop.php

From: Date: Fri, 17 Aug 2001 12:19:32 +0000
Subject: note 14851 added to language.oop.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-16840@lists.php.net to get a copy of this message
You cannot instantiate objects from classes as below: class UserInformation_mysql{ var $useridnr, $userid, $sessionID; } class UserInformation_imap{ var $userid, $pass, $sessionID; } class UserInformation_pgsql{ var $useridnr, $userid, $sessionID; } if(defined("SISMAIL_MYSQL")){ define("USER_INF_CLASS","UserInformation_mysql"); } $UserInformation = new 'USER_INF_CLASS'; and expect it works... but in my opinion, it should work..... http://www.php.net/manual/en/language.oop.php

« previous php.notes (#16840) next »