Closed ketencek closed 1 month ago
I try to set up sql server and recreate the issue in the next days, it's definitely weird that it works in all cases except in scheduled tasks.
pdo_sqlsrv is actually not an extension that we ship with Herd, so either:
Regardless, Herd currently does not ship sqlserv out of the box
Platform
macOS
Operating system version
nacOS Sonoma 14.5 (23F79)
System architecture
ARM64 (M1, M2, etc)
Herd Version
Version: 1.9.1 (Build: 31)
PHP Version
PHP Version 8.3.9 Build Date Jul 8 2024 12:00:39 NTS
Bug description
I am facing an issue when running scheduled tasks using Herd on my Laravel project. The problem occurs specifically with SQL Server connections. Although I can successfully connect to the database using Tinker and the web interface, I receive a “could not find driver” error when running a scheduled task.
[previous exception] [object] (PDOException(code: 0): could not find driver at /Users/hanifeoglu/Herd/websocket-reverb/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65)
Steps to reproduce
Configuration File (php.ini) Path: /lib Loaded Configuration File: (none) Scan for additional .ini files in: /Users/hanifeoglu/Library/Application Support/Herd/config/php/83/ Additional .ini files parsed: /Users/hanifeoglu/Library/Application Support/Herd/config/php/83/php.ini
this.
Expected Behavior:
The scheduled task should be able to connect to the SQL Server without issues, just as it does in Tinker and the web interface.
Questions:
Any help or guidance would be greatly appreciated!
Relevant log output