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

ID: 17024
Updated by: l.alberton@quipo.it
Reported By: lixoaqui at netcabo dot pt
Summary: Warning: Parameter 3 to mysqli_stmt_bind_param()
expected to be a reference
-Status: Feedback
+Status: Closed
Type: Bug
Package: MDB2_Driver_mysqli
Operating System: Windows 7 64bit
Package Version: 1.4.1
PHP Version: 5.3.1
-Assigned To:
+Assigned To: quipo
Roadmap Versions:
New Comment:

-Status: Feedback
+Status: Closed
-Assigned To:
+Assigned To: quipo
This bug has been fixed in SVN.

If this was a documentation problem, the fix will appear on pear.php.net
by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should
be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.




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

[2010-03-21 20:35:16] mila7676

Don't work with 2.5.0

You can't to use mysqli driver with 5.3.

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

[2010-01-23 03:34:00] doconnor

(and accordingly, this driver)

pear upgrade -f MDB2_Driver_mysqli

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

[2010-01-23 03:33:11] doconnor

-Status: Open
+Status: Feedback
Want to try the 2.5.0b2 package of MDB2? It's two years more up to date,
just not marked as stable.

pear upgrade -f MDB2

should do it.

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

[2010-01-22 11:46:54] cifroes

Zend framework solved this problem with this patch:
http://framework.zend.com/issues/secure/attachment/11113/zend_db_statement-mysqli.diff


A similar solution also works for MDB2...

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

[2010-01-22 06:46:20] cifroes

Description:
------------
Just upgraded to php 5.3 (5.3.1) from 5.2.x and I noticed that in my app
the delete statements don't work (insert and selects seem to work
fine).

When I was debugging (putting echo's in mysqli.php :) ), I noticed a
warning that can be the cause of my problem, in the line:

$result = call_user_func_array('mysqli_stmt_bind_param', $parameters);


Warning: Parameter 3 to mysqli_stmt_bind_param() expected to be a
reference, value given in C:\www\lib\PEAR\MDB2\Driver\mysqli.php on line
1524


It seems that MDB2 1.4.1 needs to be patched to work with php 5.3.1.

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

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedAug 29, '10 at 7:50a
activeAug 29, '10 at 7:50a
posts1
users1
websitepear.php.net

1 user in discussion

L Alberton: 1 post

People

Translate

site design / logo © 2022 Grokbase