好吧,我已经用同样的风格写了一段时间了,突然间我在 pear 配置中遇到了错误。
错误:
Deprecated: Assigning the return value of new by reference is deprecated in E:\xampp\php\PEAR\Config.php on line 80
Deprecated: Assigning the return value of new by reference is deprecated in E:\xampp\php\PEAR\Config.php on line 166
我的索引页(这是我唯一改变的地方):
<?php
include("library/config.php");
include("library/functions/core.php");
// Defualt Heading
$heading = "";
// Load Page Model
loadModel($path0,$path1);
// Load User Language
loadLanguage($path0,$path1);
// Load Page Header
loadHeader();
// Load Page Body
loadPage($path0,$path1);
// Load Page Footer
loadFooter();
?>
我唯一改变的是 config.php 和 core.php 的位置,它们被放置在名为 library 的新文件夹下更深的 1 个文件夹。
最佳答案
因为您在 config.php
中收到错误并向我们展示了 index.php
代码
通过阅读错误。有一些函数具有以下格式
function whatever (...)
{
return &$somevalue;
}
要解决这个问题,你应该删除 $somevalue
之前的 &
阅读this
关于php - Pear 错误已弃用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11304667/