-
Notifications
You must be signed in to change notification settings - Fork 7.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pdo_dblib wrong protocol version 5.0 #13475
Comments
I'll confirm this by early next week. |
There are so many ways to install sybase that I don't know which is the correct one... |
You can install it via enterprise edition: SAP ASE, enterprise edition, contains all options for your evaluation. It expires after 90 days and can be used only in nonproduction environments. |
Here is repository, which simulate 5.0 protocol bug https://github.com/hanisko/php_dblib (sybase 16 + latest php) |
@hanisko It may not be until March 7th that we can properly investigate this issue. |
Suddenly, my unstable internet connection suddenly became faster and by chance I was able to download all of sybase. |
I got it. I will write from the conclusion, please try specifying in detail Excerpt from the following page:
I've found some of the same information on other sites, so it seems certain that But PHP seems to have been interpreting this as php-src/ext/pdo_dblib/dblib_driver.c Line 466 in 61d8c77
Fixing this will definitely result in a BC Break, so it can't be fixed, at least not on the stable branch. It may be possible to fix it in the master branch (future 8.4), but first I need to investigate the scope of the impact of fixing this. |
Yes, you are right, "10.0" solved the issue, it doesn't generate "Error: 1621, Severity: 18, State: 1" into sybae logs. Comment on line 450 "FIXME: This does not work with Sybase" and pointig version 5.0, 6.0, 7.0 to same value "DBVERSION_70" confused me. Maybe just better documentation for "version" values in dsn will be helpfull https://www.php.net/manual/en/ref.pdo-dblib.connection.php This comment was also confusing https://www.php.net/manual/en/ref.pdo-dblib.connection.php#118644 where is statement about "version from dsn" = "tds version" which is not correct with 5.0 protocol (only info in docs about version in dsn) I hope it will be better documented or fixed in future versions. Thanks for your help :-) |
I have posted about this issue to the mailing list. |
Description
The following code:
Problem is with Sybase System 10 and above > use protocol version 5.0 but here link
PHP Version
PHP 8.2
Operating System
No response
The text was updated successfully, but these errors were encountered: