Bug #17024 [Fbk->Csd]: Warning: Parameter 3 to mysqli_stmt_bind_param() expected to be a reference

From: Date: Sun, 29 Aug 2010 07:50:34 +0000
Subject: Bug #17024 [Fbk->Csd]: Warning: Parameter 3 to mysqli_stmt_bind_param() expected to be a reference
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-4706@lists.php.net to get a copy of this message
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. ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=17024&edit=1

« previous php.pear.bugs (#4706) next »