Skip to content

Commit 9291de3

Browse files
committed
Fix tmp file deletion in mysqli_pam_sha256_public_key_ini.phpt test
1 parent cba5e60 commit 9291de3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ext/mysqli/tests/mysqli_pam_sha256_public_key_ini.phpt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ mysqlnd.sha256_server_public_key="test_sha256_ini"
120120
$link->query('DROP USER shatest@localhost');
121121
$file = "test_sha256_ini";
122122
@unlink($file);
123+
if (PHP_MAJOR_VERSION === 8 && PHP_MINOR_VERSION === 1) { // fix temporary file deletion for Github Action CI for PHP 8.1
124+
@unlink(__DIR__ . '/../../../' . $file);
125+
}
123126
?>
124127
--EXPECTF--
125128
Warning: mysqli::__construct(): (HY000/1045): %s in %s on line %d

0 commit comments

Comments
 (0)