johannes Thu, 21 Jan 2010 13:30:46 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=293804
Log:
Overlong hostnames breakthistest on NIS enabled FreeBSD
Changed paths:
U
php/php-src/branches/PHP_5_3/ext/pdo_mysql/tests/pdo_mysql___construct.phpt
U php/php-src/trunk/ext/pdo_mysql/tests/pdo_mysql___construct.phpt
Modified:
php/php-src/branches/PHP_5_3/ext/pdo_mysql/tests/pdo_mysql___construct.phpt
===================================================================
--- php/php-src/branches/PHP_5_3/ext/pdo_mysql/tests/pdo_mysql___construct.phpt
2010-01-21 08:25:46 UTC (rev 293803)
+++ php/php-src/branches/PHP_5_3/ext/pdo_mysql/tests/pdo_mysql___construct.phpt
2010-01-21 13:30:46 UTC (rev 293804)
@@ -101,7 +101,8 @@
}
// 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 @@
[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!
Modified: php/php-src/trunk/ext/pdo_mysql/tests/pdo_mysql___construct.phpt
===================================================================
--- php/php-src/trunk/ext/pdo_mysql/tests/pdo_mysql___construct.phpt
2010-01-21 08:25:46 UTC (rev 293803)
+++ php/php-src/trunk/ext/pdo_mysql/tests/pdo_mysql___construct.phpt
2010-01-21 13:30:46 UTC (rev 293804)
@@ -101,7 +101,8 @@
}
// 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 @@
[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!
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php