-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Attempt to update CI to MySQL 8.4 #17582
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
Closed
Closed
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
2768f61
Attempt to update CI to MySQL 8.4
cmb69 ea52c1e
fix
cmb69 9cc90bc
fox
cmb69 0d293f1
moar
cmb69 2391d50
fix tests/mysqli_connect.phpt
cmb69 7885622
run LINUX_X32 to check whether test still succeeds there
cmb69 e095cfe
fix other tests
cmb69 4821c30
fix
cmb69 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -10,7 +10,7 @@ require_once 'skipifconnectfailure.inc'; | |||||||
<?php | ||||||||
require_once 'connect.inc'; | ||||||||
|
||||||||
if ($mysqli = new mysqli($host, $user . 'unknown_really', $passwd . 'non_empty', $db, $port, $socket) && !mysqli_connect_errno()) | ||||||||
if ($mysqli = @new mysqli($host, $user . 'unknown_really', $passwd . 'non_empty', $db, $port, $socket) && !mysqli_connect_errno()) | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
printf("[003] Can connect to the server using host=%s, user=%s, passwd=***non_empty, dbname=%s, port=%s, socket=%s\n", | ||||||||
$host, $user . 'unknown_really', $db, $port, $socket); | ||||||||
|
||||||||
|
@@ -83,13 +83,11 @@ require_once 'skipifconnectfailure.inc'; | |||||||
mysqli_report(MYSQLI_REPORT_STRICT); | ||||||||
|
||||||||
try { | ||||||||
$mysqli = new mysqli($host, $user . 'unknown_really', $passwd . 'non_empty', $db, $port, $socket); | ||||||||
$mysqli = @new mysqli($host, $user . 'unknown_really', $passwd . 'non_empty', $db, $port, $socket); | ||||||||
printf("[016] Can connect to the server using host=%s, user=%s, passwd=***non_empty, dbname=%s, port=%s, socket=%s\n", | ||||||||
$host, $user . 'unknown_really', $db, $port, $socket); | ||||||||
$mysqli->close(); | ||||||||
} catch (mysqli_sql_exception $e) { | ||||||||
printf("%s\n", $e->getMessage()); | ||||||||
} | ||||||||
} catch (mysqli_sql_exception $e) {} | ||||||||
|
||||||||
ini_set('mysqli.default_socket', $socket); | ||||||||
try { | ||||||||
|
@@ -143,9 +141,7 @@ require_once 'skipifconnectfailure.inc'; | |||||||
print "done!"; | ||||||||
?> | ||||||||
--EXPECTF-- | ||||||||
Warning: mysqli::__construct(): (%s/%d): Access denied for user '%sunknown%s'@'%s' %r(\(using password: \w+\) ){0,1}%rin %s on line %d | ||||||||
mysqli object is not fully initialized | ||||||||
mysqli object is not fully initialized | ||||||||
... and now Exceptions | ||||||||
Access denied for user '%s'@'%s'%r( \(using password: \w+\)){0,1}%r | ||||||||
done! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Can this at least not be in the condition? It's a bit confusing what we are actually checking here.
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.
This is basically the same test as in mysqli_connect.phpt above; we try to connect as unknown user, which should not succeed. If it does, an error message is printed.
I don't understand what you are suggesting, though. Can you please clarify?