FAQ
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.

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

Search Discussions

  • Daniel Oconnor at Jan 23, 2010 at 3:34 am
    Edit report at http://pear.php.net/bugs/bug.php?id=17024&edit=1

    ID: 17024
    Updated by: daniel.oconnor@gmail.com
    Reported By: lixoaqui at netcabo dot pt
    Summary: Warning: Parameter 3 to mysqli_stmt_bind_param()
    expected to be a reference
    -Status: Open
    +Status: Feedback
    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:

    -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.


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

    [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.

    ------------------------------------------------------------------------
  • Daniel Oconnor at Jan 23, 2010 at 3:35 am
    Edit report at http://pear.php.net/bugs/bug.php?id=17024&edit=1

    ID: 17024
    Updated by: daniel.oconnor@gmail.com
    Reported By: lixoaqui at netcabo dot pt
    Summary: Warning: Parameter 3 to mysqli_stmt_bind_param()
    expected to be a reference
    Status: Feedback
    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:

    (and accordingly, this driver)

    pear upgrade -f MDB2_Driver_mysqli


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

    [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.

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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedJan 22, '10 at 11:48a
activeJan 23, '10 at 3:35a
posts3
users2
websitepear.php.net

2 users in discussion

Daniel Oconnor: 2 posts Lixoaqui: 1 post

People

Translate

site design / logo © 2022 Grokbase