Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Misc has a deprecated constructor in C:\xampp\htdocs\phppgadmin\classes\Misc.php on line 8
とエラーが出ます。
PHPのバージョンが7.2.11のせいでしょうか?
非推奨コンストラクターがありますとのことなのでコードを書き直すしかないか・・・
phppgadmin\classes\Misc.phpに
/* Constructor */
function Misc() {
}
こんなところがあったので
/* Constructor */
function __construct() {
}
としました。
無事、ひとまず画面は表示されました。
ですがまたエラー。
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ArrayRecordSet has a deprecated constructor in C:\xampp\htdocs\phppgadmin\classes\ArrayRecordSet.php on line 8
phppgadmin\classes\ArrayRecordSet.phpを直しますか。
function ArrayRecordSet($data) {
$this->_array = $data;
$this->_count = count($this->_array);
$this->fields = reset($this->_array);
if ($this->fields === false) $this->EOF = true;
}
この部分を
function __construct($data) {
$this->_array = $data;
$this->_count = count($this->_array);
$this->fields = reset($this->_array);
if ($this->fields === false) $this->EOF = true;
}
ディスカッション
コメント一覧
まだ、コメントがありません