Wrapper from sqlsrv to mssql (simple porting php from windows to linux)