我在基于od MDB2和PHP 5.4的旧项目中出错:
PHP致命错误:调用未定义的函数:MDB2_Driver_pgsql :: raiseError()。在1936行的/path/to/project/vendor/pear-pear.php.net/MDB2/MDB2.php中
通过composer加载的依赖关系:
"require": {
"pear-pear.php.net/Validate": "0.7.0",
"pear-pear.php.net/Validate_PL": "0.5.1",
"pear-pear.php.net/HTML_Quickform": "*",
"pear-pear.php.net/HTML_Table": "*",
"pear-pear.php.net/MDB2": "*",
"pear-pear.php.net/MDB2_Driver_pgsql": "*",
"pear-pear.php.net/OLE": "1.0.0RC1",
"pear-pear.php.net/Spreadsheet_Excel_Writer": "0.9.1",
"pear-pear.php.net/File_SearchReplace": "*",
我不会在此代码中更改任何内容。有人有这个问题吗? :)
答案 0 :(得分:0)
通过安装PEAR-1.9.5
解决了此错误我花了一些时间来找到降级PEAR版本的简便方法。 通过运行终端命令很容易做到:
pear install -f PEAR-1.9.5
希望这有助于节省额外时间。