diff options
Diffstat (limited to 'ext/mysql/tests/mysql_db_query.phpt')
-rw-r--r-- | ext/mysql/tests/mysql_db_query.phpt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ext/mysql/tests/mysql_db_query.phpt b/ext/mysql/tests/mysql_db_query.phpt index 8adf48171..bb837dd6c 100644 --- a/ext/mysql/tests/mysql_db_query.phpt +++ b/ext/mysql/tests/mysql_db_query.phpt @@ -32,7 +32,7 @@ $row = mysql_fetch_assoc($res); if (1 != $row['id']) printf("[005] Expecting record 1/a, got record %s/%s\n", $row['id'], $row['label']); -if (ini_get('unicode.semantics') && !is_unicode($row['label'])) { +if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) && !is_unicode($row['label'])) { printf("[006] No unicode returned! [%d] %s\n", mysql_errno($link), mysql_error($link)); var_inspect($row); } @@ -47,7 +47,7 @@ $row = mysql_fetch_assoc($res); if (1 != $row['id']) printf("[008] Expecting record 1/a, got record %s/%s\n", $row['id'], $row['label']); -if (ini_get('unicode.semantics') && !is_unicode($row['label'])) { +if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) && !is_unicode($row['label'])) { printf("[009] No unicode returned! [%d] %s\n", mysql_errno(), mysql_error()); var_inspect($row); } @@ -57,5 +57,9 @@ mysql_close($link); print "done!\n"; ?> +--CLEAN-- +<?php +require_once("clean_table.inc"); +?> --EXPECTF-- done! |