addressalign-toparrow-leftarrow-leftarrow-right-10x10arrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscontroller-playcredit-cardcrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobe--smallglobegmailgooglegroupshelp-with-circleimageimagesinstagramFill 1languagelaunch-new-window--smalllight-bulblightning-boltlinklocation-pinlockm-swarmSearchmailmediummessagesminusmobilemoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonprintShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstar-shapestartickettrashtriangle-downtriangle-uptwitteruserwarningyahooyoutube

Site upgrade causing mysqli pass by reference error

From: Jd D.
Sent on: Wednesday, July 25, 2012, 4:14 PM

This was a reported bug that I'm trying to work around, client has just upgrade from PHP V-whoknowswhat
to PHP V5.3. I believe this error here is one of many that is messing up the site. Anyway, long story short,
I need to pass $params as a reference instead of as a value, but I'm confused how to do it? Maybe some
help?

Parameter 2 to mysqli_stmt::bind_param() expected to be a reference, value given in ../Zend/Db/Statement/Mysqli.php

        // send $params as input parameters to the statement
        if ($params) {
            array_unshift($params, str_repeat('s', count($params)));
           
            call_user_func_array(
                array($this->_stmt, 'bind_param'),
                $params
            );
        }


Here's the bug report, i tried the lazy way that it talks about and it just whitescreened me without error =(

https://bugs.php.net/bug.php?id=43568

--
Jd Daniel
SS DEV | BKWLD
1932 1st Ave Suite 803, Seattle, WA 98101

[address removed] | www.bkwld.com
T.         [masked]
C.        [masked]


People in this
group are also in: