Skip to content
Advertisement

Call to undefined function odbc_connect() php 7

I’m testing out php 7 and have come across this error:

Fatal error: Uncaught Error: Call to undefined function odbc_connect()

From the doc page: http://php.net/manual/en/function.odbc-connect.php php 7 is not listed as supported.

Does anyone have a way around this or know when it will be supported?

Thanks@

Advertisement

Answer

The DOC page does list PHP 7, so just install php-odbc and you should be good to go. Currently using it myself on RedHat EL7 with Remi php7.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement