Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
zabous opened this issue Jun 11, 2021 · 3 comments

Comments

@zabous
Copy link

zabous commented Jun 11, 2021

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

throw new Dibi\DriverException($info[0]['message'], $info[0]['code']);

@gabema
Copy link

gabema commented Jun 29, 2021

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
Copy link

gabema commented Jun 29, 2021

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

@zabous
Copy link
Author

zabous commented Jun 30, 2021

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

@dg dg closed this as completed in 0b394a9 Jun 30, 2021
Jakub-Fajkus pushed a commit to peckadesign/dibi that referenced this issue Feb 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants