-
-
Notifications
You must be signed in to change notification settings - Fork 68
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
PHP 8.3 support added #293
Conversation
Hi @Ocramius Few tests are failing due to some certification issue It seems some issue with CI/CD Any plan to fix this issue OR anything can we do? |
Yep, the usual MSSQL mess. @weierophinney can we perhaps drop testing MSSQL? It's such a massive waste of time and oxygen for other better RDBMS... |
@Ocramius / @weierophinney is there any update on this. Can anyone please advise on the same ? |
Either we rip out MSSQL testing (and mark it as untested somewhere in the docs), or we wait for Microsoft to release MSSQL support for PHP 8.3, which usually happens few weeks/months after release. |
My feelings on the matter are:
As such, my vote is we wait until MS has released a version of the extension for 8.3. If tests still fail at that time, we can regroup and figure out what to do from there; my guess is everything will "just work" as it has the last several releases. |
365ceed
to
9413f5f
Compare
@Ocramius @weierophinney Any update on this? |
No. |
This is a bit unfortunate, as this blocks laminas-log, which is quite a central component in many applications. How about extracting the namespace |
@driehle Considering this repo is security-only, we're not going to do a new major. It would likely make more sense to split the lamians-db related functionality in laminas-log into a new package. I recognize folks are excited about the new PHP release but (a) it's been not even two weeks, and (b) not every organization is tracking PHP updates in order to release as soon as it drops. It's far better for us to wait and ensure that the component works as expected (which means running tests!) than it is to rush a release. Please be patient. |
@Ocramius Any update on this when we can expect laminas-db available with php 8.3 support |
Looks like this is the msphpsql issue that we're waiting on - microsoft/msphpsql#1477 Let's hope they decide to release soon 🤞🏻 |
@Ocramius @weierophinney https://github.com/microsoft/msphpsql/releases/tag/v5.12.0 this released Can we prioritize this? |
I have fixed all the test failures and other deprecated dynamic properties issues, Only following error is there
it seems it should be fixed from your end or suggest to us we can do anything for this. |
SSounds like a new requirement by the MSSQL adapter? Can you try disabling SSL validation for MSSQL in the test suite? |
This has to be done via connection options https://learn.microsoft.com/en-us/sql/connect/php/connection-options by setting This is introduced by ODBC Driver 18 |
No idea how to disable ssl validation for MSSQL in the suite. so any idea? |
laminas-db/test/integration/Adapter/Platform/SqlServerTest.php Lines 36 to 40 in 12385a4
As Xerkus said, try adding |
I have made changes - 2abd29d but still having same issue |
There is more than one place where |
2abd29d
to
7feab67
Compare
I have updated all the places and fixed that issues, now lot tests are failing, Can you check these need to fixed still having some issue? |
There is still one certificate validation error:
|
@Xerkus it seems tests are not running due to .laminas-ci/install-sqlsrv-extension-via-pecl.sh as you told to removed |
Yes, it is referenced here: laminas-db/.laminas-ci/pre-install.sh Line 19 in 12385a4
Please also remove that line. |
b0d45fb
to
5ec6d1d
Compare
I asked you to revert changes in adapter previously. The correct way is to pass connection options as parameters for I looked at the tests code and best place seems to be here: --- a/test/unit/Adapter/Driver/Sqlsrv/AbstractIntegrationTest.php
+++ b/test/unit/Adapter/Driver/Sqlsrv/AbstractIntegrationTest.php
@@ -38,6 +38,8 @@ abstract class AbstractIntegrationTest extends TestCase
$this->variables[$name] = getenv($value);
}
+ $this->variables['options'] = ['TrustServerCertificate' => '1'];
+
if (! extension_loaded('sqlsrv')) {
$this->fail('The phpunit group integration-sqlsrv was enabled, but the extension is not loaded.');
} |
Also you seem to have missed re-adding changes for some |
I don't think as i can see here i removed |
Nevermind, looking at a wrong commit. |
62fb397
to
b3fc76f
Compare
All issues resolved from my end now and pr is green now thank you so much for your quick support and review |
You are missing signoff for your commits. See DCO check for details |
Shall i use following command |
Signed-off-by: Rajesh Kumar <[email protected]>
Signed-off-by: Rajesh Kumar <[email protected]>
Signed-off-by: Rajesh Kumar <[email protected]>
Signed-off-by: Rajesh Kumar <[email protected]>
Signed-off-by: Rajesh Kumar <[email protected]>
Signed-off-by: Rajesh Kumar <[email protected]>
Signed-off-by: Rajesh Kumar <[email protected]>
Signed-off-by: Rajesh Kumar <[email protected]>
Signed-off-by: Rajesh Kumar <[email protected]>
158faff
to
bbc8231
Compare
Signed-off-by: Aleksei Khudiakov <[email protected]>
Description