zendframework/zf2 — pull request #4911 by MarcelTO (2013-07-30 15:43:12+00:00)
Title: 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);