替换PEAR:PHP 5.3上的MDB2 [英] Replacement for PEAR: MDB2 on PHP 5.3

查看:64
本文介绍了替换PEAR:PHP 5.3上的MDB2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

多年以来,我一直在php中使用pear软件包.我正在升级/移动使用MDB2 pear软件包的网站,并且尚未针对PHP 5.3.X对其进行更新.

I've been using pear packages in php for years. I'm in the process of upgrading/moving a sites that uses the MDB2 pear package and it has not been updated for PHP 5.3.X.

在5.3中,MDB2返回了那些令人讨厌的新错误.

In 5.3, MDB2 is returning those new annoying errors.

Unknown: Assigning the return value of new by reference is deprecated in /usr/local/lib/php/MDB2.php on line 390

我知道我可以更改错误报告设置以摆脱它们,但是我不希望有任何例外.无论如何,这些天还有其他人在使用MDB2并有解决方案吗?您是否推荐类似的数据库软件包?

I know I can change my error reporting settings to get rid of them, but I'd rather not make any exceptions. Anyway, Is anyone else using MDB2 these days and have a solution? Are there similar database packages you recommend?

推荐答案

至少在您正在使用大型项目​​而又不想使用mysqli_*或PDO的情况下,我会明确地寻求ORM直接使用功能/方法- Doctrine 是目前开发/使用最多的(默认symfony框架的ORM,并且可以很容易地集成到Zend框架中).

I would definitly go for an ORM, at least if you are working on a big project, for which you don't want to use mysqli_* or PDO functions/methods directly -- Doctrine being the most developped/used, nowadays (It's the default ORM of the symfony Framework, and can be integrated in Zend Framework quite easily).

关于E_DEPRECATED错误,但是:PHP 5.3相当年轻,并且尚未修改许多库/软件/项目-在接下来的几个月中,您可能会遇到很多这样的错误:-(

About the E_DEPRECATED errors, though : PHP 5.3 is quite young, and lots of libraries/software/projects have not been adapted yet -- you'll probably have lots of those in the next couple of months :-(

这篇关于替换PEAR:PHP 5.3上的MDB2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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