summaryrefslogtreecommitdiff
path: root/ext/mysql
diff options
context:
space:
mode:
authorULF WENDEL <uw@php.net>2012-09-29 12:21:55 +0200
committerULF WENDEL <uw@php.net>2012-09-29 12:21:55 +0200
commitccf749e38d1c05ab50d30781b47e55786d571585 (patch)
tree5b8749f3f039218de76c68352de70012cdf4f555 /ext/mysql
parent4969c7d50a0611a479f5cf93a2595a6c91c86006 (diff)
parent13d4d8e2d037385bfa2c7775929b65ae1f73998d (diff)
downloadphp-git-ccf749e38d1c05ab50d30781b47e55786d571585.tar.gz
Merge branch 'PHP-5.4'
* PHP-5.4: - BFN Minor changes for MySQL 5.6 NEWS for 76601c4
Diffstat (limited to 'ext/mysql')
-rw-r--r--ext/mysql/tests/mysql_field_flags.phpt8
-rw-r--r--ext/mysql/tests/mysql_stat.phpt4
2 files changed, 8 insertions, 4 deletions
diff --git a/ext/mysql/tests/mysql_field_flags.phpt b/ext/mysql/tests/mysql_field_flags.phpt
index 6489affc16..e07e041d2a 100644
--- a/ext/mysql/tests/mysql_field_flags.phpt
+++ b/ext/mysql/tests/mysql_field_flags.phpt
@@ -81,13 +81,17 @@ $tables = array(
array('label1', sprintf("'%s'", @date("Y-m-d H:i:s"))),
'label1' => array(
'timestamp',
- 'unsigned',
- 'zerofill',
'binary',
'not_null'),
),
);
+if ($version < 560) {
+ $tables['label1 TIMESTAMP']['label1'][] = 'zerofill';
+ $tables['label1 TIMESTAMP']['label1'][] = 'unsigned';
+}
+
+
foreach ($tables as $columns => $expected) {
if (!mysql_query("DROP TABLE IF EXISTS test", $link)) {
printf("[010/%s] [%d] %s\n", $columns, mysql_errno($link), mysql_error($link));
diff --git a/ext/mysql/tests/mysql_stat.phpt b/ext/mysql/tests/mysql_stat.phpt
index 288c53f067..30a840a2a1 100644
--- a/ext/mysql/tests/mysql_stat.phpt
+++ b/ext/mysql/tests/mysql_stat.phpt
@@ -34,7 +34,7 @@ if ((!is_string($stat_def = mysql_stat())) || ('' === $stat_def))
printf("[003] Expecting non empty string, got %s/'%s', [%d] %s\n",
gettype($stat_def), $stat_def, mysql_errno(), mysql_error());
-assert($stat === $stat_def);
+assert(soundex($stat) === soundex($stat_def));
mysql_close($link);
@@ -45,4 +45,4 @@ print "done!";
?>
--EXPECTF--
Warning: mysql_stat(): %d is not a valid MySQL-Link resource in %s on line %d
-done! \ No newline at end of file
+done!