mirror of
https://github.com/php/php-src.git
synced 2024-09-24 03:17:26 +00:00
Overlong hostnames breakthistest on NIS enabled FreeBSD
This commit is contained in:
parent
0905fe1730
commit
d8afb7374c
@ -101,7 +101,8 @@ MySQLPDOTest::skip();
|
|||||||
}
|
}
|
||||||
|
|
||||||
// what about long values for a valid option ...
|
// what about long values for a valid option ...
|
||||||
$dsn = MySQLPDOTest::getDSN(array('host' => str_repeat('0123456789', 1024 * 100)));
|
// hostnames > 1024 chars break on some NIS-enabled FreeBSD...
|
||||||
|
$dsn = MySQLPDOTest::getDSN(array('host' => str_repeat('0123456789', 100)));
|
||||||
try { $db = @new PDO($dsn, $user, $pass); assert(false); printf("%s\n", $dsn); } catch (PDOException $e) {
|
try { $db = @new PDO($dsn, $user, $pass); assert(false); printf("%s\n", $dsn); } catch (PDOException $e) {
|
||||||
$tmp = $e->getMessage();
|
$tmp = $e->getMessage();
|
||||||
if (!stristr($tmp, 'HY000') && !stristr($tmp, '2005') && !stristr($tmp, '2002'))
|
if (!stristr($tmp, 'HY000') && !stristr($tmp, '2005') && !stristr($tmp, '2002'))
|
||||||
@ -296,4 +297,4 @@ MySQLPDOTest::skip();
|
|||||||
[009] SQLSTATE[28000] [1045] Access denied for user 'dont%s'@'%s' (using password: YES), [n/a] n/a
|
[009] SQLSTATE[28000] [1045] Access denied for user 'dont%s'@'%s' (using password: YES), [n/a] n/a
|
||||||
[010] SQLSTATE[28000] [1045] Access denied for user 'dont%s'@'%s' (using password: YES), [n/a] n/a
|
[010] SQLSTATE[28000] [1045] Access denied for user 'dont%s'@'%s' (using password: YES), [n/a] n/a
|
||||||
[017] DSN=%s, SQLSTATE[%s] [%d] %s
|
[017] DSN=%s, SQLSTATE[%s] [%d] %s
|
||||||
[033] DSN = mysql:%s, character sets has not been set, @@character_set_connection reports 'latin1', expecting 'latin2'done!
|
[033] DSN = mysql:%s, character sets has not been set, @@character_set_connection reports 'latin1', expecting 'latin2'done!
|
||||||
|
Loading…
Reference in New Issue
Block a user