macOS php sqlsrv drivers installed but throwing unknown exception

Multi tool use


macOS php sqlsrv drivers installed but throwing unknown exception
I'm developing PHP apps and now with GIT and all we're supposed to be running locally the apps we develop, while connecting to the company's SQL server for data. I can otherwise see this SQL server without any problems (from Navicat etc).
(I tried installing XAMPP first, never got it to see the sqlsrv / pdo_sqlsrv drivers, tried these guides as well with a "clean" apache install -and then some more- and in the end I did a clean install of macOS, did these guides from scratch again and here we are now).
So I followed the steps described here
https://www.microsoft.com/en-us/sql-server/developer-get-started/php/mac/
and here
https://docs.microsoft.com/en-us/sql/connect/php/installation-tutorial-linux-mac?view=sql-server-2017#installing-the-drivers-on-macos-el-capitan-sierra-and-high-sierra
which are the official guides to going about my task. Apart from that, I configured Apache with SSL certificates and PHP 7.2.8 and everything else works fine.
phpinfo() even shows me that sqlsrv and pdo_sqlsrv load ok.
And then I launch my application, where I get this error message when I try to open a connection to the server:
Fatal error: sqlsrv_connect: Unknown exception caught. in [file] on line [line]
I'm running version 5.3.0 of both sqlsrv and pdo_sqlsrv pecl packages, so I should be past the problems mentioned about version 4.1.7 or before that.
Any ideas?
Thanks
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.