I'm in the process of converting a PHP application from running in a Windows environment to a Linux based environment.
It utilises PDO to run Stored Procedures against a Microsoft SQL Server database.
So, I've installed and configured PHP 5.6.22, Apache, freetds and pdo dblib to facilitate the application.
Most stored procedure executions are working perfectly. Except ones that return multiple rowsets.
When I call $pdo->nextRowset()
, I get this fatal error:
SQLSTATE[HY000]: General error: PDO_DBLIB: dbresults() returned FAIL
The only reference I can find to this was a bug reported in PHP 5.6.9 that was fixed.
However, I am getting the same issue in PHP 5.6.22.
Does anyone have any ideas why this is happening and how I can resolve it?