Patch 1

These changes should make it possible to update/insert varbinary fields in sqlsrv by passing parameters as shown below.

$params = array(
            array(
                &$file_stream,
                \SQLSRV_PARAM_IN,
                \SQLSRV_PHPTYPE_STREAM(\SQLSRV_ENC_BINARY),
                \SQLSRV_SQLTYPE_VARBINARY('max')
            ),
            $id
);
 
$statement->execute($params);