--TEST-- Invalid UTF-16 coming from the server --SKIPIF-- --FILE-- \n"; fatalError('sqlsrv_query should have failed with an error'); } print_r(sqlsrv_errors()); dropTable($conn, $tableName); dropProc($conn, 'Utf16InvalidOut'); sqlsrv_close($conn); echo "Test succeeded.\n"; ?> --EXPECTF-- Array ( [0] => Array ( [0] => IMSSP [SQLSTATE] => IMSSP [1] => -42 [code] => -42 [2] => An error occurred translating string for a field to UTF-8: %a [message] => An error occurred translating string for a field to UTF-8: %a ) ) Array ( [0] => Array ( [0] => IMSSP [SQLSTATE] => IMSSP [1] => -41 [code] => -41 [2] => An error occurred translating string for an output param to UTF-8: %a [message] => An error occurred translating string for an output param to UTF-8: %a ) ) Test succeeded.