summaryrefslogtreecommitdiff
path: root/ext/mysqli/tests
diff options
context:
space:
mode:
authorSVN Migration <svn@php.net>2008-12-03 20:30:45 +0000
committerSVN Migration <svn@php.net>2008-12-03 20:30:45 +0000
commit2876046398950e59c3b3c460e67e6fec7ff2ba3c (patch)
tree33b2b8b4b859960a6446ad19d0ada1c55f9cfcda /ext/mysqli/tests
parent3fb86b0b9e79e6a3312b694f30ee627e2e1b325c (diff)
downloadphp-git-php-5.3.0alpha2.tar.gz
This commit was manufactured by cvs2svn to create tag 'php_5_3_0alpha2'.php-5.3.0alpha2
Diffstat (limited to 'ext/mysqli/tests')
-rw-r--r--ext/mysqli/tests/010.phpt4
-rw-r--r--ext/mysqli/tests/057.phpt4
-rw-r--r--ext/mysqli/tests/bug34810.phpt2
-rw-r--r--ext/mysqli/tests/bug37090.phpt6
-rw-r--r--ext/mysqli/tests/mysqli_class_mysqli_interface.phpt2
-rw-r--r--ext/mysqli/tests/mysqli_connect_oo_defaults.phpt4
-rw-r--r--ext/mysqli/tests/mysqli_constants.phpt11
-rw-r--r--ext/mysqli/tests/mysqli_get_client_stats.phpt240
8 files changed, 17 insertions, 256 deletions
diff --git a/ext/mysqli/tests/010.phpt b/ext/mysqli/tests/010.phpt
index fc5aae8c5e..10f8824307 100644
--- a/ext/mysqli/tests/010.phpt
+++ b/ext/mysqli/tests/010.phpt
@@ -63,6 +63,6 @@ array(7) {
[5]=>
float(1)
[6]=>
- float(8.88888914608E+14)
+ float(888888914608000)
}
-done!
+done! \ No newline at end of file
diff --git a/ext/mysqli/tests/057.phpt b/ext/mysqli/tests/057.phpt
index 0efea3569c..a6a9cb6f97 100644
--- a/ext/mysqli/tests/057.phpt
+++ b/ext/mysqli/tests/057.phpt
@@ -1,8 +1,8 @@
--TEST--
mysqli_get_metadata
--SKIPIF--
-<?php
-require_once('skipif.inc');
+<?php
+require_once('skipif.inc');
require_once('skipifconnectfailure.inc');
?>
--FILE--
diff --git a/ext/mysqli/tests/bug34810.phpt b/ext/mysqli/tests/bug34810.phpt
index 9ddba23173..99bc7b6d76 100644
--- a/ext/mysqli/tests/bug34810.phpt
+++ b/ext/mysqli/tests/bug34810.phpt
@@ -52,7 +52,7 @@ object(mysqli)#%d (%d) {
["field_count"]=>
int(0)
["host_info"]=>
- string(%d) "MySQL host info: %s via %s%s"
+ string(42) "MySQL host info: Localhost via UNIX socket"
["info"]=>
NULL
["insert_id"]=>
diff --git a/ext/mysqli/tests/bug37090.phpt b/ext/mysqli/tests/bug37090.phpt
index 003ace9d11..651ba52b5b 100644
--- a/ext/mysqli/tests/bug37090.phpt
+++ b/ext/mysqli/tests/bug37090.phpt
@@ -18,7 +18,7 @@ if (ini_get('unicode.semantics')) {
$mysql = new mysqli($host, $user, $passwd, $db, $port, $socket);
$cs = array();
- $cs[] = $mysql->set_charset("latin1");
+ $cs[] = $mysql->set_charset("latin5");
$cs[] = $mysql->character_set_name();
$cs[] = $mysql->set_charset("utf8");
@@ -35,7 +35,7 @@ array(6) {
[0]=>
bool(true)
[1]=>
- string(6) "latin1"
+ string(6) "latin5"
[2]=>
bool(true)
[3]=>
@@ -45,4 +45,4 @@ array(6) {
[5]=>
string(4) "utf8"
}
-done!
+done! \ No newline at end of file
diff --git a/ext/mysqli/tests/mysqli_class_mysqli_interface.phpt b/ext/mysqli/tests/mysqli_class_mysqli_interface.phpt
index 30ed9d074a..c1dc6a590a 100644
--- a/ext/mysqli/tests/mysqli_class_mysqli_interface.phpt
+++ b/ext/mysqli/tests/mysqli_class_mysqli_interface.phpt
@@ -60,8 +60,6 @@ require_once('skipifconnectfailure.inc');
/* $expected_methods['get_cache_stats'] = true; */
/* $expected_methods['get_client_stats'] = true; */
$expected_methods['get_connection_stats'] = true;
- $expected_methods['poll'] = true;
- $expected_methods['reap_async_query'] = true;
} else {
// libmysql only
if (function_exists('mysqli_ssl_set'))
diff --git a/ext/mysqli/tests/mysqli_connect_oo_defaults.phpt b/ext/mysqli/tests/mysqli_connect_oo_defaults.phpt
index 6a72c249fe..d9ba6f246c 100644
--- a/ext/mysqli/tests/mysqli_connect_oo_defaults.phpt
+++ b/ext/mysqli/tests/mysqli_connect_oo_defaults.phpt
@@ -9,6 +9,7 @@ new mysqli()
$tmp = NULL;
$link = NULL;
+
ini_set('mysqli.default_socket', 'socket');
ini_set('mysqli.default_port', 9999);
ini_set('mysqli.default_pw', 'password');
@@ -35,6 +36,7 @@ new mysqli()
printf("[002] Usage of mysqli.default_socket failed\n");
}
+
ini_set('mysqli.default_port', $port);
try {
$mysqli = mysqli_init();
@@ -193,4 +195,4 @@ array(1) {
[u"all_defaults"]=>
unicode(13) "have been set"
}
-done!
+done! \ No newline at end of file
diff --git a/ext/mysqli/tests/mysqli_constants.phpt b/ext/mysqli/tests/mysqli_constants.phpt
index 471381ef6d..6cd09c652b 100644
--- a/ext/mysqli/tests/mysqli_constants.phpt
+++ b/ext/mysqli/tests/mysqli_constants.phpt
@@ -48,9 +48,6 @@ require_once('skipifconnectfailure.inc');
"MYSQLI_BINARY_FLAG" => true,
"MYSQLI_PART_KEY_FLAG" => true,
"MYSQLI_GROUP_FLAG" => true,
- "MYSQLI_SERVER_QUERY_NO_GOOD_INDEX_USED"=> true,
- "MYSQLI_SERVER_QUERY_NO_INDEX_USED" => true,
-
"MYSQLI_TYPE_DECIMAL" => true,
"MYSQLI_TYPE_TINY" => true,
"MYSQLI_TYPE_SHORT" => true,
@@ -87,8 +84,8 @@ require_once('skipifconnectfailure.inc');
);
/* depends on the build - experimental */
- if ($IS_MYSQLND && defined('MYSQLI_OPT_INT_AND_FLOAT_NATIVE')) {
- $expected_constants['MYSQLI_OPT_INT_AND_FLOAT_NATIVE'] = true;
+ if ($IS_MYSQLND && defined('MYSQLI_OPT_INT_AND_YEARS_AS_INT')) {
+ $expected_constants['MYSQLI_OPT_INT_AND_YEARS_AS_INT'] = true;
}
if ($IS_MYSQLND) {
@@ -96,7 +93,6 @@ require_once('skipifconnectfailure.inc');
$expected_constants['MYSQLI_OPT_NET_CMD_BUFFER_SIZE'] = true;
$expected_constants['MYSQLI_OPT_NET_READ_BUFFER_SIZE'] = true;
$expected_constants['MYSQLI_DEBUG_TRACE_ENABLED'] = true;
- $expected_constants['MYSQLI_ASYNC'] = true;
} else {
$version = mysqli_get_client_version();
@@ -105,9 +101,6 @@ require_once('skipifconnectfailure.inc');
if (($version > 51122 && $version < 60000) || ($version > 60003) || $IS_MYSQLND) {
$expected_constants['MYSQLI_ON_UPDATE_NOW_FLAG'] = true;
}
- if ($version > 60005 || $IS_MYSQLND) {
- $expected_constants['MYSQLI_SERVER_QUERY_WAS_SLOW'] = true;
- }
if ($version > 50002) {
$expected_constants = array_merge($expected_constants, array(
diff --git a/ext/mysqli/tests/mysqli_get_client_stats.phpt b/ext/mysqli/tests/mysqli_get_client_stats.phpt
index e59f029ed1..042f14bd99 100644
--- a/ext/mysqli/tests/mysqli_get_client_stats.phpt
+++ b/ext/mysqli/tests/mysqli_get_client_stats.phpt
@@ -859,7 +859,7 @@ mysqlnd.collect_memory_statistics=1
print "done!";
?>
--EXPECTF--
-array(119) {
+array(61) {
["bytes_sent"]=>
string(1) "0"
["bytes_received"]=>
@@ -872,36 +872,6 @@ array(119) {
string(1) "0"
["protocol_overhead_out"]=>
string(1) "0"
- ["bytes_received_ok_packet"]=>
- string(1) "0"
- ["bytes_received_eof_packet"]=>
- string(1) "0"
- ["bytes_received_rset_header_packet"]=>
- string(1) "0"
- ["bytes_received_rset_field_meta_packet"]=>
- string(1) "0"
- ["bytes_received_rset_row_packet"]=>
- string(1) "0"
- ["bytes_received_prepare_response_packet"]=>
- string(1) "0"
- ["bytes_received_change_user_packet"]=>
- string(1) "0"
- ["packets_sent_command"]=>
- string(1) "0"
- ["packets_received_ok"]=>
- string(1) "0"
- ["packets_received_eof"]=>
- string(1) "0"
- ["packets_received_rset_header"]=>
- string(1) "0"
- ["packets_received_rset_field_meta"]=>
- string(1) "0"
- ["packets_received_rset_row"]=>
- string(1) "0"
- ["packets_received_prepare_response"]=>
- string(1) "0"
- ["packets_received_change_user"]=>
- string(1) "0"
["result_set_queries"]=>
string(1) "0"
["non_result_set_queries"]=>
@@ -910,8 +880,6 @@ array(119) {
string(1) "0"
["bad_index_used"]=>
string(1) "0"
- ["slow_queries"]=>
- string(1) "0"
["buffered_sets"]=>
string(1) "0"
["unbuffered_sets"]=>
@@ -1008,96 +976,12 @@ array(119) {
string(1) "0"
["mem_calloc_ammount"]=>
string(1) "0"
- ["mem_realloc_count"]=>
+ ["mem_realloc_calloc"]=>
string(1) "0"
["mem_realloc_ammount"]=>
string(1) "0"
["mem_free_count"]=>
string(1) "0"
- ["proto_text_fetched_null"]=>
- string(1) "0"
- ["proto_text_fetched_bit"]=>
- string(1) "0"
- ["proto_text_fetched_tinyint"]=>
- string(1) "0"
- ["proto_text_fetched_short"]=>
- string(1) "0"
- ["proto_text_fetched_int24"]=>
- string(1) "0"
- ["proto_text_fetched_int"]=>
- string(1) "0"
- ["proto_text_fetched_bigint"]=>
- string(1) "0"
- ["proto_text_fetched_decimal"]=>
- string(1) "0"
- ["proto_text_fetched_float"]=>
- string(1) "0"
- ["proto_text_fetched_double"]=>
- string(1) "0"
- ["proto_text_fetched_date"]=>
- string(1) "0"
- ["proto_text_fetched_year"]=>
- string(1) "0"
- ["proto_text_fetched_time"]=>
- string(1) "0"
- ["proto_text_fetched_datetime"]=>
- string(1) "0"
- ["proto_text_fetched_timestamp"]=>
- string(1) "0"
- ["proto_text_fetched_string"]=>
- string(1) "0"
- ["proto_text_fetched_blob"]=>
- string(1) "0"
- ["proto_text_fetched_enum"]=>
- string(1) "0"
- ["proto_text_fetched_set"]=>
- string(1) "0"
- ["proto_text_fetched_geometry"]=>
- string(1) "0"
- ["proto_text_fetched_other"]=>
- string(1) "0"
- ["proto_binary_fetched_null"]=>
- string(1) "0"
- ["proto_binary_fetched_bit"]=>
- string(1) "0"
- ["proto_binary_fetched_tinyint"]=>
- string(1) "0"
- ["proto_binary_fetched_short"]=>
- string(1) "0"
- ["proto_binary_fetched_int24"]=>
- string(1) "0"
- ["proto_binary_fetched_int"]=>
- string(1) "0"
- ["proto_binary_fetched_bigint"]=>
- string(1) "0"
- ["proto_binary_fetched_decimal"]=>
- string(1) "0"
- ["proto_binary_fetched_float"]=>
- string(1) "0"
- ["proto_binary_fetched_double"]=>
- string(1) "0"
- ["proto_binary_fetched_date"]=>
- string(1) "0"
- ["proto_binary_fetched_year"]=>
- string(1) "0"
- ["proto_binary_fetched_time"]=>
- string(1) "0"
- ["proto_binary_fetched_datetime"]=>
- string(1) "0"
- ["proto_binary_fetched_timestamp"]=>
- string(1) "0"
- ["proto_binary_fetched_string"]=>
- string(1) "0"
- ["proto_binary_fetched_blob"]=>
- string(1) "0"
- ["proto_binary_fetched_enum"]=>
- string(1) "0"
- ["proto_binary_fetched_set"]=>
- string(1) "0"
- ["proto_binary_fetched_geometry"]=>
- string(1) "0"
- ["proto_binary_fetched_other"]=>
- string(1) "0"
}
Testing buffered normal...
Testing buffered normal... - SELECT id, label FROM test
@@ -1112,7 +996,7 @@ Testing unbuffered Prepared Statements... - fetching all but one
... done with fetch statistics
done!
--UEXPECTF--
-array(119) {
+array(61) {
[u"bytes_sent"]=>
unicode(1) "0"
[u"bytes_received"]=>
@@ -1125,36 +1009,6 @@ array(119) {
unicode(1) "0"
[u"protocol_overhead_out"]=>
unicode(1) "0"
- [u"bytes_received_ok_packet"]=>
- unicode(1) "0"
- [u"bytes_received_eof_packet"]=>
- unicode(1) "0"
- [u"bytes_received_rset_header_packet"]=>
- unicode(1) "0"
- [u"bytes_received_rset_field_meta_packet"]=>
- unicode(1) "0"
- [u"bytes_received_rset_row_packet"]=>
- unicode(1) "0"
- [u"bytes_received_prepare_response_packet"]=>
- unicode(1) "0"
- [u"bytes_received_change_user_packet"]=>
- unicode(1) "0"
- [u"packets_sent_command"]=>
- unicode(1) "0"
- [u"packets_received_ok"]=>
- unicode(1) "0"
- [u"packets_received_eof"]=>
- unicode(1) "0"
- [u"packets_received_rset_header"]=>
- unicode(1) "0"
- [u"packets_received_rset_field_meta"]=>
- unicode(1) "0"
- [u"packets_received_rset_row"]=>
- unicode(1) "0"
- [u"packets_received_prepare_response"]=>
- unicode(1) "0"
- [u"packets_received_change_user"]=>
- unicode(1) "0"
[u"result_set_queries"]=>
unicode(1) "0"
[u"non_result_set_queries"]=>
@@ -1163,8 +1017,6 @@ array(119) {
unicode(1) "0"
[u"bad_index_used"]=>
unicode(1) "0"
- [u"slow_queries"]=>
- unicode(1) "0"
[u"buffered_sets"]=>
unicode(1) "0"
[u"unbuffered_sets"]=>
@@ -1261,96 +1113,12 @@ array(119) {
unicode(1) "0"
[u"mem_calloc_ammount"]=>
unicode(1) "0"
- [u"mem_realloc_count"]=>
+ [u"mem_realloc_calloc"]=>
unicode(1) "0"
[u"mem_realloc_ammount"]=>
unicode(1) "0"
[u"mem_free_count"]=>
unicode(1) "0"
- [u"proto_text_fetched_null"]=>
- unicode(1) "0"
- [u"proto_text_fetched_bit"]=>
- unicode(1) "0"
- [u"proto_text_fetched_tinyint"]=>
- unicode(1) "0"
- [u"proto_text_fetched_short"]=>
- unicode(1) "0"
- [u"proto_text_fetched_int24"]=>
- unicode(1) "0"
- [u"proto_text_fetched_int"]=>
- unicode(1) "0"
- [u"proto_text_fetched_bigint"]=>
- unicode(1) "0"
- [u"proto_text_fetched_decimal"]=>
- unicode(1) "0"
- [u"proto_text_fetched_float"]=>
- unicode(1) "0"
- [u"proto_text_fetched_double"]=>
- unicode(1) "0"
- [u"proto_text_fetched_date"]=>
- unicode(1) "0"
- [u"proto_text_fetched_year"]=>
- unicode(1) "0"
- [u"proto_text_fetched_time"]=>
- unicode(1) "0"
- [u"proto_text_fetched_datetime"]=>
- unicode(1) "0"
- [u"proto_text_fetched_timestamp"]=>
- unicode(1) "0"
- [u"proto_text_fetched_unicode"]=>
- unicode(1) "0"
- [u"proto_text_fetched_blob"]=>
- unicode(1) "0"
- [u"proto_text_fetched_enum"]=>
- unicode(1) "0"
- [u"proto_text_fetched_set"]=>
- unicode(1) "0"
- [u"proto_text_fetched_geometry"]=>
- unicode(1) "0"
- [u"proto_text_fetched_other"]=>
- unicode(1) "0"
- [u"proto_binary_fetched_null"]=>
- unicode(1) "0"
- [u"proto_binary_fetched_bit"]=>
- unicode(1) "0"
- [u"proto_binary_fetched_tinyint"]=>
- unicode(1) "0"
- [u"proto_binary_fetched_short"]=>
- unicode(1) "0"
- [u"proto_binary_fetched_int24"]=>
- unicode(1) "0"
- [u"proto_binary_fetched_int"]=>
- unicode(1) "0"
- [u"proto_binary_fetched_bigint"]=>
- unicode(1) "0"
- [u"proto_binary_fetched_decimal"]=>
- unicode(1) "0"
- [u"proto_binary_fetched_float"]=>
- unicode(1) "0"
- [u"proto_binary_fetched_double"]=>
- unicode(1) "0"
- [u"proto_binary_fetched_date"]=>
- unicode(1) "0"
- [u"proto_binary_fetched_year"]=>
- unicode(1) "0"
- [u"proto_binary_fetched_time"]=>
- unicode(1) "0"
- [u"proto_binary_fetched_datetime"]=>
- unicode(1) "0"
- [u"proto_binary_fetched_timestamp"]=>
- unicode(1) "0"
- [u"proto_binary_fetched_unicode"]=>
- unicode(1) "0"
- [u"proto_binary_fetched_blob"]=>
- unicode(1) "0"
- [u"proto_binary_fetched_enum"]=>
- unicode(1) "0"
- [u"proto_binary_fetched_set"]=>
- unicode(1) "0"
- [u"proto_binary_fetched_geometry"]=>
- unicode(1) "0"
- [u"proto_binary_fetched_other"]=>
- unicode(1) "0"
}
Testing buffered normal...
Testing buffered normal... - SELECT id, label FROM test