Need to change call_user_func_array code

Before the upgrade of my php (previously was 5.2.13 I think), the code below worked fine:

// Bind parameters
    if (!call_user_func_array(array($stmt, 'bind_param'), $referencedArray)) {
      die("Error binding parameters: $stmt->error");
    }

But since my php has been upgraded, I cannot use call_func_array. Does anyone know what I can change this code to so it would work in the new php version 5.3.10?

What is the error you are getting? Because call_func_array still works in 5.3

The error pointing at the code above is:

Warning: Parameter 2 to mysqli_stmt::bind_param() expected to be a reference, value given in … on line 80

Clearly, the second parameter in your array ($referencedArray) is not correct.