on 2022 Apr 08 12:03 PM
The question of a PHP v8 driver for SQL Anywhere is becoming very urgent.
The latest version for which a SQL Anywhere driver is available (here) is PHP v 7.4. Active support for this finished in November last year and Security Support finishes in November this year. The current support PHP version is 8.1 - details are here
We tried to compile a new version of the SQL Anywhere driver from source but without success. The main issue between v7.4 & v8.x relates to the thread safe behaviour and the removal of the Zend module from PHP. There also seem to be significant changes to the error handling. We tried to adapt the code to cope with these differences but were unable to make it work.
We have several customers who use PHP with SQL Anywhere who currently have no way forward.
A prebuilt PHP 8.0 driver has been posted and can be accessed at The SAP SQL Anywhere PHP Module.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Chris - would it be possible to updated the posted source code. We could then have a go at producing an 8.1 version?
This is in progress and will be posted shortly. If you have SQL Anywhere 17.0 Build 6230 or newer, the source code can be found in %sqlany17%\\sdk\\php.
I have updated the source code download today and it should now be available for download.
Chris, I rarely use SQL Anywhere with PHP but I'm somewhat surprised that
but SQL Anywhere has not informed customers (or at least within this forum), although there were open requests for such an update?
That's too much "stealth marketing" in my opinion.
(I'm fully aware that this is not your task, so please do not take this personally in any way.)
Volker, I was also surprised to learn that php 8 was available since March 2021. I am currenting trying to understand why this support was not documented in a release note. The source in 6933 is current and equal to what I posted except the CHANGE file was not updated. I have corrected that for the next SP.
Thanks for the feedback, Chris.
FWIW, are there plans to add the PHP driver's code to https://github.com/sqlanywhere like (some of) the other interfaces?
I stand corrected - the files are version 2.0.19 (i.e. with PHP8 support), however copyright still refers to 2019, and for whatever reason, file modification dates tell "2019-02-21" for most of the files (except sqlanywhere.c), so I concluded they were not updated. After a file compare with the download, they actual are current.
As Chris has confirmed, the "changes" file is actually old, i.e. relates to 2.0.18.
Can we have the drivers for PHP 8.1 and 8.2 please?
PHP 8.0 will no longer be supported from Nov 23. Time is passing, PHP versions are going out of support...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've been chasing this for a while for one of our large publicly listed companies who can't use the source code as their auditors require the supplier of the software to provide it pre-compiled. I am told it is on the list but no time frames. Like you I want 8.1 and probably 8.2 now.
Before this site closes just wondering if there is any chance of an 8.3 version soon 🙂
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Volker - that's very true but it's a step closer! I have passed them to my client and hoping that my support trail with SAP gives them the confidence but you're right that it may not help greatly for those with access to such. |Hoping SAP can post them to the relevant page at some point.
@Chris Keating: Can we expect to get the 8.1. and 8.2. DLLs via the official wiki page?
The SAP SCN Wiki has been retired and its content moved to a location on the SAP Help portal. All SCN was made read-only in March to allow for the transition and I had been unable to update the page as a result. Now that the new location is active and a few issues resolved, I have finally been able to update the page with the links. The new location is: https://help.sap.com/docs/SUPPORT_CONTENT/SQLANY/3362971282.html?q=php. You will be redirected to this page if you use the SAP SCN Wiki link.
User | Count |
---|---|
73 | |
10 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.