You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Failure to resolve PDO as required extension in tests #12878
It works fine in PHP 8.2. I'd gladly just use pdo, but we have a set of tests that run on versions 7.0 through 8.3 and the lower versions only support PDO.
I see.. the exact version I'm using is 8.2.4. Perhaps the change occurred some time after that. Both versions (8.3.0 & 8.2.4) are built using the same process from source on my end.
Excuse me, I seem to have made a mistake in some operation. Reproduced in 8.2.
I identified the commit that made this change.
commit: b401001
PR: #8363
Previously, even if we passed "PDO", it would be converted to lower case and then compared, but it seems that the process of converting to lower case has disappeared.
@SakiTakamachi Indeed.. thank you for finding this! It all makes sense now. I greatly appreciate your help in figuring this out.
I also found the answer to another strange occurrence: using PHP 8.0 and below the EXTENSIONS section behaves differently because it was slightly repurposed in 6c9a056 which first made it into PHP 8.1.
All in all, my options are either using SKIPIF or patching run-tests.php as generated by old versions, since all of them are out of support.
Activity
SakiTakamachi commentedon Dec 6, 2023
Is it not the phpt that comes with php-src, but the phpt that you created yourself?
If so, you can implement skip by writing:
ltrk2 commentedon Dec 6, 2023
@SakiTakamachi that's a viable option indeed, thanks for the suggestion!
Do you perhaps know what might be causing this difference between 8.2 and 8.3?
SakiTakamachi commentedon Dec 6, 2023
@ltrk2
In my environment, "PDO" is not found even in 8.2...
ltrk2 commentedon Dec 6, 2023
I see.. the exact version I'm using is 8.2.4. Perhaps the change occurred some time after that. Both versions (8.3.0 & 8.2.4) are built using the same process from source on my end.
SakiTakamachi commentedon Dec 6, 2023
Excuse me, I seem to have made a mistake in some operation. Reproduced in 8.2.
I identified the commit that made this change.
commit: b401001
PR: #8363
Previously, even if we passed "PDO", it would be converted to lower case and then compared, but it seems that the process of converting to lower case has disappeared.
ltrk2 commentedon Dec 7, 2023
@SakiTakamachi Indeed.. thank you for finding this! It all makes sense now. I greatly appreciate your help in figuring this out.
I also found the answer to another strange occurrence: using PHP 8.0 and below the
EXTENSIONSsection behaves differently because it was slightly repurposed in 6c9a056 which first made it into PHP 8.1.All in all, my options are either using
SKIPIFor patchingrun-tests.phpas generated by old versions, since all of them are out of support.