FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=16252&edit=1

ID: 16252
Updated by: daniel.oconnor@gmail.com
Reported By: daniel dot oconnor at gmail dot com
Summary: Adding a new bug report with the wrong db driver =
error
Status: Open
Type: Bug
Package: pearweb
Package Version: CVS
PHP Version: 5.2.9
Roadmap Versions:
New Comment:

It's worth looking at the changes done as part of GSoC, where this
refactoring was done.


Previous Comments:
------------------------------------------------------------------------

[2009-05-23 18:09:38] doconnor

:(

This one is a vote for switching to MDB2, as PEAR::DB's nextId()
doesn't resolve this.

------------------------------------------------------------------------

[2009-05-23 18:02:28] doconnor

Description:
------------
Direct calls to mysqli_last_insertid are being done, instead of
trusting the DB abstraction layer.

Test script:
---------------
1. Add a dsn of mysql://foo:bar@localhost/pearweb in
2. Add a bug report

/*
* Need to move the insert ID determination to DB
eventually...
*/
$cid = mysqli_insert_id($dbh->connection);

Expected result:
----------------
No errors

Actual result:
--------------
Warning: mysqli_insert_id() expects parameter 1 to be mysqli, resource
given in /home/clockwerx/pear-cvs/pearweb/public_html/bugs/report.php on
line 310

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedOct 19, '09 at 1:20a
activeOct 19, '09 at 1:20a
posts1
users1
websitepear.php.net

1 user in discussion

Daniel Oconnor: 1 post

People

Translate

site design / logo © 2021 Grokbase