Firstly we’re loving SLIM. We have used it for a REST web service for an EXTJS 6 web & mobile application & it’s going well, working with a mySQL database on a Linode VPS.
We are now moving on to a new (similar) project, again using the latest slim download but in this case we’re using a SQL Server database hosted on AWS. We also have the SLIM REST Web Service running on AWS. All this is actually working fine.
To be able to use Microsoft’s SQL Server ‘bits’ with PHP we had to upgrade our PHP to 7.x. & apache 2.4
On my Mac where I develop & test the web applications, I needed to upgrade to php 7.1.4 to get the Microsoft bits to work.
I want to be able to develop & test run the SLIM web service on m Mac for convenience (as I had done for the first project during development)
Now the issue: I can get a response from the SLIM api but the consistent problem is this syntax error.
Parse error: syntax error, unexpected ‘>’ in /Users//Sites//api/vendor/slim/slim/Slim/Handlers/PhpError.php on line 177
this is on both a POST and a GET (I assume for others as well)
My associate has his environment working fine with the same api code, same PHP version, same apache version but Windows 10