Skip to content

Commit 4177849

Browse files
committed
Fix for MysqliDb usage with HHVM
1 parent c4fd68c commit 4177849

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

MysqliDb.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1105,9 +1105,11 @@ public function __destruct()
11051105
*
11061106
* @return array
11071107
*/
1108-
protected function refValues($arr)
1108+
protected function refValues(Array &$arr)
11091109
{
1110-
//Reference is required for PHP 5.3+
1110+
//Reference in the function arguments are required for HHVM to work
1111+
//https://github.com/facebook/hhvm/issues/5155
1112+
//Referenced data array is required by mysqli since PHP 5.3+
11111113
if (strnatcmp(phpversion(), '5.3') >= 0) {
11121114
$refs = array();
11131115
foreach ($arr as $key => $value) {

0 commit comments

Comments
 (0)