我刚刚将Xampp安装升级到1.7.4
我有一个工作脚本(jQuery调用PHP脚本并显示返回的值).
升级后,我的jquery正确获取了结果,但是除了结果之外,还返回了一些警告,因此停止了我的脚本以显示结果(我在firebug中检查了).以下是警告:
Deprecated: Assigning the return value of new by reference is deprecated in D:\xampp\php\PEAR\Config.php on line 80
Deprecated: Assigning the return value of new by reference is deprecated in D:\xampp\php\PEAR\Config.php on line 166
Deprecated: Assigning the return value of new by reference is deprecated in D:\xampp\php\PEAR\Config\Container.php on line 111
Deprecated: Assigning the return value of new by reference is deprecated in D:\xampp\htdocs\phil\batteries\includes\class.db.php on line 73
[“Motor Cycle “,”Scooter”,”Personal Watercraft “,”Snowmobile”,”ATV”,”Ride-on Mower”,”Utility Vehicle”]
请记住,最后一行是返回的结果.但由于警告,因此不会填充结果.可能是什么问题?我不想只是关闭error_reporting.
谢谢
解决方法:
PEAR Config人员在2008年使用了bug was filed.直到去年12月version 1.10.12发布时,他们才对此采取行动.
如果可以更新该软件包,则应该. pear update Config(或者可能是pear upgrade Config?)应该可以完成这项工作.