[PHP5]problem in extending mysqli class
| From: | Tomasen | Date: | Wed, 14 Jul 2004 08:53:34 +0000 |
| Subject: | [PHP5]problem in extending mysqli class | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-190455@lists.php.net to get a copy of this message | ||
the follow script throw an error like this:
Fatal error: Can not call constructor in D:\-=WEB=-\include\database.php on
line 3
but it was working fine under PHP5RC3
1 class CDatabase extends mysqli {
2 function __construct($db_info ){
3 parent::__construct($db_info["hostname"], $db_info["username"],
4 $db_info["password"], $db_info["database"], $db_info["port"]);
5 }
6 }