summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schlüter <johannes@php.net>2010-01-21 13:30:46 +0000
committerJohannes Schlüter <johannes@php.net>2010-01-21 13:30:46 +0000
commit6dda7add548cbd61e93784a6916382f7a7e8879d (patch)
tree586bab041f0bfa4fec4097762a4b5b03c434c7ab
parentc0e90d0b8e86ba6f021bfdc652eb1129d397827a (diff)
downloadphp-git-6dda7add548cbd61e93784a6916382f7a7e8879d.tar.gz
Overlong hostnames breakthistest on NIS enabled FreeBSD
-rw-r--r--ext/pdo_mysql/tests/pdo_mysql___construct.phpt5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/pdo_mysql/tests/pdo_mysql___construct.phpt b/ext/pdo_mysql/tests/pdo_mysql___construct.phpt
index fa4bbafd85..46015533d4 100644
--- a/ext/pdo_mysql/tests/pdo_mysql___construct.phpt
+++ b/ext/pdo_mysql/tests/pdo_mysql___construct.phpt
@@ -101,7 +101,8 @@ MySQLPDOTest::skip();
}
// 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) {
$tmp = $e->getMessage();
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
[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
-[033] DSN = mysql:%s, character sets has not been set, @@character_set_connection reports 'latin1', expecting 'latin2'done! \ No newline at end of file
+[033] DSN = mysql:%s, character sets has not been set, @@character_set_connection reports 'latin1', expecting 'latin2'done!