Edit report at http://pear.php.net/bugs/bug.php?id=17024&edit=1
ID: 17024
Comment by: lixoaqui@netcabo.pt
Reported By: lixoaqui at netcabo dot pt
Summary: Warning: Parameter 3 to mysqli_stmt_bind_param()
expected to be a reference
Status: Open
Type: Bug
Package: MDB2_Driver_mysqli
Operating System: Windows 7 64bit
Package Version: 1.4.1
PHP Version: 5.3.1
Roadmap Versions:
New Comment:
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...
Previous Comments:
------------------------------------------------------------------------
[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.
------------------------------------------------------------------------