Xampp 1.7.4 和 PHP 5.3.5(不推荐使用的警告) [英] Xampp 1.7.4 and PHP 5.3.5 (Deprecated warnings)

查看:47
本文介绍了Xampp 1.7.4 和 PHP 5.3.5(不推荐使用的警告)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚将我的 Xampp 安装升级到 1.7.4

I just upgraded my Xampp installation to 1.7.4

我有一个工作脚本(jquery 调用 PHP 脚本并显示返回值).

I had a working script (jquery calling PHP script and showing the returned value).

升级后,我的jquery得到了正确的结果,但是除了结果之外,还有一些警告被返回,因此停止了我的脚本来显示结果(我检查了firebug).以下是警告:

After upgrade, my jquery is getting the result correctly, but in addition to the results, there are also some warnings that are returned, hence stopping my script to show the result (I checked in firebug). Here are the warnings:


已弃用:在 D:\xampp\php\PEAR\Config.php80<中不推荐通过引用分配 new 的返回值br/>
已弃用:在 D:\xampp\php\PEAR\Config.php166<中不推荐通过引用分配 new 的返回值br/>
已弃用:在 D:\xampp\php\PEAR\Config\Container.php111 中不推荐通过引用分配 new 的返回值>

已弃用:在 D:\xampp\htdocs\phil\batteries\includes\class.db.php 中不推荐通过引用分配 new 的返回值73
[摩托车"、踏板车"、个人船只"、雪地摩托"、ATV"、骑乘式割草机"、多功能车"]


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.

Keeping in mind the last line is the result being returned. but due to warnings, results are not populated. What can be the problem? I dont want to just off the error_reporting.

谢谢

推荐答案

好了.问题出在警告中提到的 PEAR 文件中.

Ok here was the deal. The problem was in the PEAR files as mentioned in the warnings.

我刚刚更改了问题中提到的文件.并删除

I just changed the files mentioned in the question. and removed

=&

=

我的脚本又开始了.PEAR 文件有三个警告,即

and my script is up again. There were three warnings for PEAR files i.e

  1. D:\xampp\php\PEAR\Config.php 第 80 行
  2. D:\xampp\php\PEAR\Config.php 第 166 行
  3. D:\xampp\php\PEAR\Config\Container.php 第 111 行

这篇关于Xampp 1.7.4 和 PHP 5.3.5(不推荐使用的警告)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆