mirror of
https://github.com/php/php-src.git
synced 2025-08-17 22:48:57 +02:00
Making test pass when MySQL runs on Win*
This commit is contained in:
parent
9bb4db8781
commit
0efa2445ad
1 changed files with 12 additions and 8 deletions
|
@ -35,20 +35,24 @@ printf("[005] Expecting boolean/false, got %s/%s\n", gettype($link), $link);
|
|||
|
||||
// Run the following tests without an anoynmous MySQL user and use a password for the test user!
|
||||
ini_set('mysql.default_socket', $socket);
|
||||
if (!is_null($socket)) {
|
||||
if (!is_resource($link = mysql_connect($host, $user, $passwd, true))) {
|
||||
printf("[006] Usage of mysql.default_socket failed\n");
|
||||
} else {
|
||||
mysql_close($link);
|
||||
}
|
||||
}
|
||||
|
||||
if (!ini_get('sql.safe_mode')) {
|
||||
|
||||
ini_set('mysql.default_port', $port);
|
||||
if (!is_null($port)) {
|
||||
if (!is_resource($link = mysql_connect($host, $user, $passwd, true))) {
|
||||
printf("[007] Usage of mysql.default_port failed\n");
|
||||
} else {
|
||||
mysql_close($link);
|
||||
}
|
||||
}
|
||||
|
||||
ini_set('mysql.default_password', $passwd);
|
||||
if (!is_resource($link = mysql_connect($myhost, $user))) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue