Issue 846 - Update MySQL DB to PDO or mysqli (pluf)

0 views
Skip to first unread message

no-r...@ceondo.com

unread,
Jul 25, 2013, 2:28:07 PM7/25/13
to pluf-u...@googlegroups.com
Hello,

A new issue has been created and assigned
to you:

846 - Update MySQL DB to PDO or mysqli
Project: Pluf Framework
Status: New
Reported by: Paul Eipper
Labels:
Priority:Medium
Type:Defect

Description:

The current mysql API has been deprecated, and PHP now recommends to use the PDO or mysqli API:
http://www.php.net/manual/en/mysqlinfo.api.choosing.php

PDO has the advantage of having a single interface to multiple databases, while mysqli seems more powerful and more complex.

My interest in this is better debugging, since I've had many problems with mysql_connect which are very hard to debug since it is a black-box internal PHP function with very little error status information. Both new API's have better error reporting and debug options.

--
Issue: http://projects.ceondo.com/p/pluf/issues/846/


no-r...@ceondo.com

unread,
Jan 11, 2014, 4:43:06 PM1/11/14
to pluf-u...@googlegroups.com
Hello,

The following issue has been updated:

846 - Update MySQL DB to PDO or mysqli
Project: Pluf Framework
Status: New
Reported by: Paul Eipper
URL: http://projects.ceondo.com/p/pluf/issues/846/
Labels:
Priority:Medium
Type:Defect

Comments (last first):

# By Nick van IJzendoorn, Jan 11, 2014:

I wrote a quick work around for the problem, just converted the interface. So it doesn't use parameterized queries or the better error reporting.

Extract the tar in pluf/src/Pluf/DB and it works again.

Attachments:
- MySQLi.tar.gz - 3.79 kB
http://projects.ceondo.com/p/pluf/issues/view/attachment/332/MySQLi.tar.gz


# By Paul Eipper, Jul 25, 2013:
Reply all
Reply to author
Forward
0 new messages