-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Fix: pdo pgsql test 12423 #12454
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
Fix: pdo pgsql test 12423 #12454
Conversation
90e98a9
to
95cf409
Compare
Whenever you can @mbeccati let us know if this work for you, cheers. |
I had tested a previous version of the PR and it was ok, thanks! |
ext/pdo_pgsql/tests/gh12423.phpt
Outdated
|
||
echo "dsn without credentials / correct user / correct password\n"; | ||
try { | ||
$db = new PDO($dsn, $user, $password, [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION]); | ||
echo "Connected.\n\n"; | ||
} catch (PDOException $e) { | ||
echo $e->getMessage(); | ||
echo $e->getMessage()."\n"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: While at it, would be best to use PHP_EOL instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, I fixed it
Fix regular expression fix to use PHP_EOL
95cf409
to
eb0fe60
Compare
My test is failing, but it might be flaky. |
The build error doesn't seem related to this PR though:
|
No it is not related at all indeed. Will review a bit later today. Thanks. |
I was about to write that the flaky test may have failed in an unrelated place. I couldn't explain it well in English, thank you for check. |
Thank you! |
For reference, CI green again: https://revive.beccati.com/bamboo/browse/PHP-SRC-3566/ |
Thank you, I feel relieved. |
Please see #12448
take2 of #12453
I missed the f push. So I recreated the entire PR.
cc: @mbeccati @devnexen
CI: https://app.circleci.com/pipelines/github/SakiTakamachi/php-src/9/workflows/8ff17a8a-1eb1-4f96-9167-5273775c76bd/jobs/9 (take2)
=> passed