dg / dibi

Dibi - smart database abstraction layer
https://dibiphp.com
Other
487 stars 136 forks source link

SqlsrvDriver.php at line 73 - Warning: Trying to access array offset on value of type null #392

Closed zabous closed 3 years ago

zabous commented 3 years ago

SqlsrvDriver.php in Dibi\Drivers\SqlsrvDriver::__construct at line 73 $info[0]['message'] in simetimes null

https://github.com/dg/dibi/blob/c3b365e59986662633219708e5f0e5a894c5925d/src/Dibi/Drivers/SqlsrvDriver.php#L70

gabema commented 3 years ago

I've seen this issue as well. What type of SQL Server DB are you attempting to connect to? SQL Server (version?), SQL Express (Version?), Azure SQL?

gabema commented 3 years ago

Also helpful to know would be php version and architecure and sql driver extensions you are using TS vs NTS.

zabous commented 3 years ago

I attempt to SQL Server 2019 (version 15.0.4053.23) I use PHP 8.0.7 on Alpine Linux (amd64) with MS SQL TOOLS v.17.7.1.1-1 https://docs.microsoft.com/en-us/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server?view=sql-server-ver15#alpine17