-2
我有类数据库与错误致命错误:无法重新声明类属性.... Properties.php(属性是近java.util的实现。属性API为PHP 5版权所有(C)2005克雷格万利)致命错误:无法重新声明类属性....属性.php
<?php
include_once("common/libs/Properties.php");
// if (!class_exists('Properties')) {
// require_once("common/libs/Properties.php");
// }
class Database {
var dbhost;
function __construct() {
$dbIpAddressProp = new Properties();
// $dbIpAddressProp->load(file_get_contents('./confEMS',FILE_USE_INCLUDE_PATH));
// $this->dbhost = $dbIpAddressProp->getProperty("dbIpAddress");
}
function __destruct() {
pg_close($this->dbconn);
// echo 'destruct';
}
}
?>
和Properties.php里面有什么? –
错误消息应该提供更多信息,例如最初声明属性的位置以及要重新声明它的位置 –
它是一个API:PHP 5的java.util.Properties API的实现版权所有(C )2005年Craig Manley – user1310873