summaryrefslogtreecommitdiff
path: root/ext/mysqli
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mysqli')
-rw-r--r--ext/mysqli/mysqli.c3
-rw-r--r--ext/mysqli/mysqli_api.c10
-rw-r--r--ext/mysqli/mysqli_fe.c2
-rw-r--r--ext/mysqli/mysqli_nonapi.c2
-rw-r--r--ext/mysqli/mysqli_prop.c2
-rw-r--r--ext/mysqli/tests/002.phpt4
-rw-r--r--ext/mysqli/tests/003.phpt12
-rw-r--r--ext/mysqli/tests/004.phpt16
-rw-r--r--ext/mysqli/tests/005.phpt4
-rw-r--r--ext/mysqli/tests/009.phpt2
-rw-r--r--ext/mysqli/tests/011.phpt2
-rw-r--r--ext/mysqli/tests/012.phpt2
-rw-r--r--ext/mysqli/tests/014.phpt8
-rw-r--r--ext/mysqli/tests/015.phpt8
-rw-r--r--ext/mysqli/tests/016.phpt2
-rw-r--r--ext/mysqli/tests/017.phpt4
-rw-r--r--ext/mysqli/tests/019.phpt4
-rw-r--r--ext/mysqli/tests/021.phpt4
-rw-r--r--ext/mysqli/tests/022.phpt2
-rw-r--r--ext/mysqli/tests/026.phpt4
-rw-r--r--ext/mysqli/tests/028.phpt2
-rw-r--r--ext/mysqli/tests/031.phpt4
-rw-r--r--ext/mysqli/tests/032.phpt2
-rw-r--r--ext/mysqli/tests/033.phpt2
-rw-r--r--ext/mysqli/tests/042.phpt26
-rw-r--r--ext/mysqli/tests/045.phpt11
-rw-r--r--ext/mysqli/tests/047.phpt240
-rw-r--r--ext/mysqli/tests/048.phpt4
-rw-r--r--ext/mysqli/tests/049.phpt2
-rw-r--r--ext/mysqli/tests/057.phpt28
-rw-r--r--ext/mysqli/tests/058.phpt4
-rw-r--r--ext/mysqli/tests/059.phpt2
-rw-r--r--ext/mysqli/tests/060.phpt26
-rw-r--r--ext/mysqli/tests/061.phpt6
-rw-r--r--ext/mysqli/tests/062.phpt2
-rw-r--r--ext/mysqli/tests/063.phpt2
-rw-r--r--ext/mysqli/tests/065.phpt5
-rw-r--r--ext/mysqli/tests/068.phpt2
-rw-r--r--ext/mysqli/tests/069.phpt4
-rw-r--r--ext/mysqli/tests/072.phpt4
-rw-r--r--ext/mysqli/tests/073.phpt2
-rw-r--r--ext/mysqli/tests/074.phpt4
-rw-r--r--ext/mysqli/tests/bug34810.phpt90
-rw-r--r--ext/mysqli/tests/bug35517.phpt6
-rw-r--r--ext/mysqli/tests/bug37090.phpt3
-rw-r--r--ext/mysqli/tests/bug38003.phpt6
-rw-r--r--ext/mysqli/tests/bug42378.phpt25
-rw-r--r--ext/mysqli/tests/bug45019.phpt6
-rw-r--r--ext/mysqli/tests/bug49027.phpt6
-rw-r--r--ext/mysqli/tests/bug49442.phpt24
-rw-r--r--ext/mysqli/tests/bug53503.phpt130
-rw-r--r--ext/mysqli/tests/bug55653.phpt70
-rw-r--r--ext/mysqli/tests/bug55859.phpt40
-rw-r--r--ext/mysqli/tests/bug62046.phpt78
-rw-r--r--ext/mysqli/tests/bug62885.phpt52
-rw-r--r--ext/mysqli/tests/bug74737.phpt19
-rw-r--r--ext/mysqli/tests/local_infile_tools.inc24
-rw-r--r--ext/mysqli/tests/mysqli_auth_pam.phpt4
-rw-r--r--ext/mysqli/tests/mysqli_change_user_set_names.phpt10
-rw-r--r--ext/mysqli/tests/mysqli_character_set.phpt1
-rw-r--r--ext/mysqli/tests/mysqli_class_mysqli_interface.phpt28
-rw-r--r--ext/mysqli/tests/mysqli_class_mysqli_reflection.phpt6
-rw-r--r--ext/mysqli/tests/mysqli_class_mysqli_result_interface.phpt4
-rw-r--r--ext/mysqli/tests/mysqli_class_mysqli_result_reflection.phpt6
-rw-r--r--ext/mysqli/tests/mysqli_class_mysqli_stmt_interface.phpt2
-rw-r--r--ext/mysqli/tests/mysqli_connect.phpt20
-rw-r--r--ext/mysqli/tests/mysqli_connect_oo_defaults.phpt20
-rw-r--r--ext/mysqli/tests/mysqli_connect_twice.phpt8
-rw-r--r--ext/mysqli/tests/mysqli_constants.phpt3
-rw-r--r--ext/mysqli/tests/mysqli_debug_append.phpt2
-rw-r--r--ext/mysqli/tests/mysqli_error_unicode.phpt8
-rw-r--r--ext/mysqli/tests/mysqli_expire_password.phpt4
-rw-r--r--ext/mysqli/tests/mysqli_explain_metadata.phpt3
-rw-r--r--ext/mysqli/tests/mysqli_fetch_all.phpt100
-rw-r--r--ext/mysqli/tests/mysqli_fetch_all_oo.phpt100
-rw-r--r--ext/mysqli/tests/mysqli_fetch_array.phpt76
-rw-r--r--ext/mysqli/tests/mysqli_fetch_array_assoc.phpt16
-rw-r--r--ext/mysqli/tests/mysqli_fetch_array_oo.phpt76
-rw-r--r--ext/mysqli/tests/mysqli_fetch_assoc.phpt50
-rw-r--r--ext/mysqli/tests/mysqli_fetch_assoc_no_alias.phpt40
-rw-r--r--ext/mysqli/tests/mysqli_fetch_assoc_no_alias_utf8.phpt120
-rw-r--r--ext/mysqli/tests/mysqli_fetch_assoc_oo.phpt26
-rw-r--r--ext/mysqli/tests/mysqli_fetch_field.phpt124
-rw-r--r--ext/mysqli/tests/mysqli_fetch_field_direct.phpt40
-rw-r--r--ext/mysqli/tests/mysqli_fetch_field_direct_oo.phpt40
-rw-r--r--ext/mysqli/tests/mysqli_fetch_field_oo.phpt80
-rw-r--r--ext/mysqli/tests/mysqli_fetch_fields.phpt80
-rw-r--r--ext/mysqli/tests/mysqli_fetch_object_no_constructor.phpt4
-rw-r--r--ext/mysqli/tests/mysqli_fetch_row.phpt6
-rw-r--r--ext/mysqli/tests/mysqli_field_seek.phpt160
-rw-r--r--ext/mysqli/tests/mysqli_field_tell.phpt40
-rw-r--r--ext/mysqli/tests/mysqli_get_client_stats.phpt659
-rw-r--r--ext/mysqli/tests/mysqli_get_warnings.phpt5
-rw-r--r--ext/mysqli/tests/mysqli_info.phpt12
-rw-r--r--ext/mysqli/tests/mysqli_kill.phpt64
-rw-r--r--ext/mysqli/tests/mysqli_mysqlnd_read_timeout_long.phpt4
-rw-r--r--ext/mysqli/tests/mysqli_mysqlnd_read_timeout_zero.phpt4
-rw-r--r--ext/mysqli/tests/mysqli_pconn_conn_multiple.phpt16
-rw-r--r--ext/mysqli/tests/mysqli_pconn_twice.phpt8
-rw-r--r--ext/mysqli/tests/mysqli_poll_kill.phpt6
-rw-r--r--ext/mysqli/tests/mysqli_poll_mixing_insert_select.phpt8
-rw-r--r--ext/mysqli/tests/mysqli_ps_select_union.phpt24
-rw-r--r--ext/mysqli/tests/mysqli_query.phpt10
-rw-r--r--ext/mysqli/tests/mysqli_query_stored_proc.phpt36
-rw-r--r--ext/mysqli/tests/mysqli_query_unicode.phpt37
-rw-r--r--ext/mysqli/tests/mysqli_real_connect.phpt38
-rw-r--r--ext/mysqli/tests/mysqli_real_escape_string_gbk.phpt4
-rw-r--r--ext/mysqli/tests/mysqli_real_escape_string_nobackslash.phpt4
-rw-r--r--ext/mysqli/tests/mysqli_real_escape_string_sjis.phpt4
-rw-r--r--ext/mysqli/tests/mysqli_real_query.phpt4
-rw-r--r--ext/mysqli/tests/mysqli_result_references.phpt58
-rw-r--r--ext/mysqli/tests/mysqli_result_references_mysqlnd.phpt74
-rw-r--r--ext/mysqli/tests/mysqli_set_charset.phpt6
-rw-r--r--ext/mysqli/tests/mysqli_stmt_bind_param_call_user_func.phpt26
-rw-r--r--ext/mysqli/tests/mysqli_stmt_bind_param_check_param_no_change.phpt28
-rw-r--r--ext/mysqli/tests/mysqli_stmt_bind_result.phpt40
-rw-r--r--ext/mysqli/tests/mysqli_stmt_bind_result_format.phpt22
-rw-r--r--ext/mysqli/tests/mysqli_stmt_bind_result_references.phpt56
-rw-r--r--ext/mysqli/tests/mysqli_stmt_datatype_change.phpt2
-rw-r--r--ext/mysqli/tests/mysqli_stmt_get_result.phpt8
-rw-r--r--ext/mysqli/tests/mysqli_stmt_get_result2.phpt12
-rw-r--r--ext/mysqli/tests/mysqli_stmt_get_result_metadata.phpt6
-rw-r--r--ext/mysqli/tests/mysqli_stmt_get_result_metadata_fetch_field.phpt160
-rw-r--r--ext/mysqli/tests/mysqli_stmt_get_result_types.phpt42
-rw-r--r--ext/mysqli/tests/mysqli_stmt_result_metadata.phpt40
-rw-r--r--ext/mysqli/tests/skipifunicode.inc5
126 files changed, 1904 insertions, 1995 deletions
diff --git a/ext/mysqli/mysqli.c b/ext/mysqli/mysqli.c
index 15cb4bc23b..00a9497fca 100644
--- a/ext/mysqli/mysqli.c
+++ b/ext/mysqli/mysqli.c
@@ -691,6 +691,9 @@ PHP_MINIT_FUNCTION(mysqli)
REGISTER_LONG_CONSTANT("MYSQLI_OPT_CONNECT_TIMEOUT", MYSQL_OPT_CONNECT_TIMEOUT, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("MYSQLI_OPT_LOCAL_INFILE", MYSQL_OPT_LOCAL_INFILE, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("MYSQLI_INIT_COMMAND", MYSQL_INIT_COMMAND, CONST_CS | CONST_PERSISTENT);
+#if MYSQL_VERSION_ID > 40101 || defined(MYSQLI_USE_MYSQLND)
+ REGISTER_LONG_CONSTANT("MYSQLI_OPT_READ_TIMEOUT", MYSQL_OPT_READ_TIMEOUT, CONST_CS | CONST_PERSISTENT);
+#endif
#if defined(MYSQLI_USE_MYSQLND)
REGISTER_LONG_CONSTANT("MYSQLI_OPT_NET_CMD_BUFFER_SIZE", MYSQLND_OPT_NET_CMD_BUFFER_SIZE, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("MYSQLI_OPT_NET_READ_BUFFER_SIZE", MYSQLND_OPT_NET_READ_BUFFER_SIZE, CONST_CS | CONST_PERSISTENT);
diff --git a/ext/mysqli/mysqli_api.c b/ext/mysqli/mysqli_api.c
index 9f176c9fb0..03a39d7e2e 100644
--- a/ext/mysqli/mysqli_api.c
+++ b/ext/mysqli/mysqli_api.c
@@ -596,7 +596,7 @@ PHP_FUNCTION(mysqli_stmt_bind_result)
MYSQLI_FETCH_RESOURCE_STMT(stmt, mysql_stmt, MYSQLI_STATUS_VALID);
- if ((uint)argc != mysql_stmt_field_count(stmt->stmt)) {
+ if ((uint32_t)argc != mysql_stmt_field_count(stmt->stmt)) {
php_error_docref(NULL, E_WARNING, "Number of bind variables doesn't match number of fields in prepared statement");
RETURN_FALSE;
}
@@ -1330,7 +1330,7 @@ PHP_FUNCTION(mysqli_field_seek)
}
MYSQLI_FETCH_RESOURCE(result, MYSQL_RES *, mysql_result, "mysqli_result", MYSQLI_STATUS_VALID);
- if (fieldnr < 0 || (uint)fieldnr >= mysql_num_fields(result)) {
+ if (fieldnr < 0 || (uint32_t)fieldnr >= mysql_num_fields(result)) {
php_error_docref(NULL, E_WARNING, "Invalid field offset");
RETURN_FALSE;
}
@@ -1712,14 +1712,14 @@ static int mysqli_options_get_option_zval_type(int option)
#ifdef MYSQL_OPT_PROTOCOL
case MYSQL_OPT_PROTOCOL:
#endif /* MySQL 4.1.0 */
-#ifdef MYSQL_OPT_READ_TIMEOUT
+#if MYSQL_VERSION_ID > 40101 || defined(MYSQLI_USE_MYSQLND)
case MYSQL_OPT_READ_TIMEOUT:
case MYSQL_OPT_WRITE_TIMEOUT:
case MYSQL_OPT_GUESS_CONNECTION:
case MYSQL_OPT_USE_EMBEDDED_CONNECTION:
case MYSQL_OPT_USE_REMOTE_CONNECTION:
case MYSQL_SECURE_AUTH:
-#endif /* MySQL 4.1.1 */
+#endif
#ifdef MYSQL_OPT_RECONNECT
case MYSQL_OPT_RECONNECT:
#endif /* MySQL 5.0.13 */
@@ -2538,7 +2538,7 @@ PHP_FUNCTION(mysqli_stmt_store_result)
#if MYSQL_VERSION_ID >= 50107
my_bool tmp=1;
#else
- uint tmp=1;
+ uint32_t tmp=1;
#endif
mysql_stmt_attr_set(stmt->stmt, STMT_ATTR_UPDATE_MAX_LENGTH, &tmp);
break;
diff --git a/ext/mysqli/mysqli_fe.c b/ext/mysqli/mysqli_fe.c
index 59354e5096..4f88bac295 100644
--- a/ext/mysqli/mysqli_fe.c
+++ b/ext/mysqli/mysqli_fe.c
@@ -453,7 +453,7 @@ const zend_function_entry mysqli_functions[] = {
#ifdef HAVE_MYSQLI_GET_CHARSET
PHP_FE(mysqli_get_charset, arginfo_mysqli_only_link)
#endif
- PHP_FE(mysqli_get_client_info, arginfo_mysqli_only_link)
+ PHP_FE(mysqli_get_client_info, arginfo_mysqli_no_options)
PHP_FE(mysqli_get_client_version, arginfo_mysqli_only_link)
PHP_FE(mysqli_get_links_stats, arginfo_mysqli_no_options)
PHP_FE(mysqli_get_host_info, arginfo_mysqli_only_link)
diff --git a/ext/mysqli/mysqli_nonapi.c b/ext/mysqli/mysqli_nonapi.c
index 19b4ddda85..3dba36317d 100644
--- a/ext/mysqli/mysqli_nonapi.c
+++ b/ext/mysqli/mysqli_nonapi.c
@@ -973,7 +973,7 @@ PHP_FUNCTION(mysqli_get_charset)
MY_MYSQL *mysql;
zval *mysql_link;
const char *name = NULL, *collation = NULL, *dir = NULL, *comment = NULL;
- uint minlength, maxlength, number, state;
+ uint32_t minlength, maxlength, number, state;
#if !defined(MYSQLI_USE_MYSQLND)
MY_CHARSET_INFO cs;
#else
diff --git a/ext/mysqli/mysqli_prop.c b/ext/mysqli/mysqli_prop.c
index 2e1e333b39..06a4736008 100644
--- a/ext/mysqli/mysqli_prop.c
+++ b/ext/mysqli/mysqli_prop.c
@@ -292,7 +292,7 @@ static zval *result_lengths_read(mysqli_object *obj, zval *retval)
#else
const zend_ulong *ret;
#endif
- uint field_count;
+ uint32_t field_count;
CHECK_STATUS(MYSQLI_STATUS_VALID);
p = (MYSQL_RES *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr;
diff --git a/ext/mysqli/tests/002.phpt b/ext/mysqli/tests/002.phpt
index 522c99e800..aaece46faf 100644
--- a/ext/mysqli/tests/002.phpt
+++ b/ext/mysqli/tests/002.phpt
@@ -78,8 +78,8 @@ array(11) {
[8]=>
NULL
[9]=>
- %unicode|string%(4) "foo1"
+ string(4) "foo1"
[10]=>
- %unicode|string%(4) "1000"
+ string(4) "1000"
}
done! \ No newline at end of file
diff --git a/ext/mysqli/tests/003.phpt b/ext/mysqli/tests/003.phpt
index 9374763862..63d5b43cfc 100644
--- a/ext/mysqli/tests/003.phpt
+++ b/ext/mysqli/tests/003.phpt
@@ -86,18 +86,18 @@ mysqli_close($link);
--EXPECTF--
array(7) {
[0]=>
- %unicode|string%(10) "2002-01-02"
+ string(10) "2002-01-02"
[1]=>
- %unicode|string%(8) "12:49:00"
+ string(8) "12:49:00"
[2]=>
- %unicode|string%(19) "2002-01-02 17:46:59"
+ string(19) "2002-01-02 17:46:59"
[3]=>
int(2010)
[4]=>
- %unicode|string%(19) "2010-07-10 00:00:00"
+ string(19) "2010-07-10 00:00:00"
[5]=>
- %unicode|string%(19) "0000-00-00 00:00:00"
+ string(19) "0000-00-00 00:00:00"
[6]=>
- %unicode|string%(19) "1999-12-29 00:00:00"
+ string(19) "1999-12-29 00:00:00"
}
done! \ No newline at end of file
diff --git a/ext/mysqli/tests/004.phpt b/ext/mysqli/tests/004.phpt
index 010d6e1960..4896a786a8 100644
--- a/ext/mysqli/tests/004.phpt
+++ b/ext/mysqli/tests/004.phpt
@@ -64,26 +64,26 @@ mysqli_close($link);
--EXPECTF--
array(2) {
[0]=>
- %unicode|string%(10) "1234567890"
+ string(10) "1234567890"
[1]=>
- %unicode|string%(15) "this is a test0"
+ string(15) "this is a test0"
}
array(2) {
[0]=>
- %unicode|string%(10) "1234567891"
+ string(10) "1234567891"
[1]=>
- %unicode|string%(15) "this is a test1"
+ string(15) "this is a test1"
}
array(2) {
[0]=>
- %unicode|string%(10) "1234567892"
+ string(10) "1234567892"
[1]=>
- %unicode|string%(15) "this is a test2"
+ string(15) "this is a test2"
}
array(2) {
[0]=>
- %unicode|string%(10) "1234567893"
+ string(10) "1234567893"
[1]=>
- %unicode|string%(15) "this is a test3"
+ string(15) "this is a test3"
}
done! \ No newline at end of file
diff --git a/ext/mysqli/tests/005.phpt b/ext/mysqli/tests/005.phpt
index 07292a1f3e..e433351e01 100644
--- a/ext/mysqli/tests/005.phpt
+++ b/ext/mysqli/tests/005.phpt
@@ -54,8 +54,8 @@ mysqli_close($link);
--EXPECTF--
array(2) {
[0]=>
- %unicode|string%(10) "1234567890"
+ string(10) "1234567890"
[1]=>
- %unicode|string%(13) "32K String ok"
+ string(13) "32K String ok"
}
done! \ No newline at end of file
diff --git a/ext/mysqli/tests/009.phpt b/ext/mysqli/tests/009.phpt
index 30d42c39a6..e82ca65859 100644
--- a/ext/mysqli/tests/009.phpt
+++ b/ext/mysqli/tests/009.phpt
@@ -101,7 +101,7 @@ array(8) {
[2]=>
int(4)
[3]=>
- %unicode|string%(14) "33333333333333"
+ string(14) "33333333333333"
[4]=>
int(0)
[5]=>
diff --git a/ext/mysqli/tests/011.phpt b/ext/mysqli/tests/011.phpt
index b14516ff78..3b93b0a207 100644
--- a/ext/mysqli/tests/011.phpt
+++ b/ext/mysqli/tests/011.phpt
@@ -73,6 +73,6 @@ array(8) {
[6]=>
string(6) "foobar"
[7]=>
- %unicode|string%(11) "mysql rulez"
+ string(11) "mysql rulez"
}
done!
diff --git a/ext/mysqli/tests/012.phpt b/ext/mysqli/tests/012.phpt
index 91abae4850..ebf8d76daf 100644
--- a/ext/mysqli/tests/012.phpt
+++ b/ext/mysqli/tests/012.phpt
@@ -72,6 +72,6 @@ array(8) {
[6]=>
string(3) "206"
[7]=>
- %unicode|string%(3) "6.7"
+ string(3) "6.7"
}
done!
diff --git a/ext/mysqli/tests/014.phpt b/ext/mysqli/tests/014.phpt
index da6a0052cc..30044dc4fb 100644
--- a/ext/mysqli/tests/014.phpt
+++ b/ext/mysqli/tests/014.phpt
@@ -84,14 +84,14 @@ mysqli autocommit/commit/rollback
Num_of_rows=1
array(2) {
[0]=>
- %unicode|string%(1) "1"
+ string(1) "1"
[1]=>
- %unicode|string%(6) "foobar"
+ string(6) "foobar"
}
array(2) {
[0]=>
- %unicode|string%(1) "2"
+ string(1) "2"
[1]=>
- %unicode|string%(4) "egon"
+ string(4) "egon"
}
done! \ No newline at end of file
diff --git a/ext/mysqli/tests/015.phpt b/ext/mysqli/tests/015.phpt
index c671ad68ff..227a142d6a 100644
--- a/ext/mysqli/tests/015.phpt
+++ b/ext/mysqli/tests/015.phpt
@@ -81,14 +81,14 @@ mysqli autocommit/commit/rollback with innodb
--EXPECTF--
array(2) {
[0]=>
- %unicode|string%(1) "1"
+ string(1) "1"
[1]=>
- %unicode|string%(6) "foobar"
+ string(6) "foobar"
}
array(2) {
[0]=>
- %unicode|string%(1) "2"
+ string(1) "2"
[1]=>
- %unicode|string%(4) "egon"
+ string(4) "egon"
}
done! \ No newline at end of file
diff --git a/ext/mysqli/tests/016.phpt b/ext/mysqli/tests/016.phpt
index 8e1ffe6200..143143c8f5 100644
--- a/ext/mysqli/tests/016.phpt
+++ b/ext/mysqli/tests/016.phpt
@@ -29,5 +29,5 @@ require_once('skipifconnectfailure.inc');
print "done!";
?>
--EXPECTF--
-%unicode|string%(6) "foobar"
+string(6) "foobar"
done! \ No newline at end of file
diff --git a/ext/mysqli/tests/017.phpt b/ext/mysqli/tests/017.phpt
index 082202f528..ee2713672d 100644
--- a/ext/mysqli/tests/017.phpt
+++ b/ext/mysqli/tests/017.phpt
@@ -36,8 +36,8 @@ array(3) {
[0]=>
string(32) "37b51d194a7513e45b56f6524f2d51f2"
[1]=>
- %unicode|string%(%d) "%s"
+ string(%d) "%s"
[2]=>
- %unicode|string%(3) "foo"
+ string(3) "foo"
}
done! \ No newline at end of file
diff --git a/ext/mysqli/tests/019.phpt b/ext/mysqli/tests/019.phpt
index 5e6aac0f0b..3c5530c03a 100644
--- a/ext/mysqli/tests/019.phpt
+++ b/ext/mysqli/tests/019.phpt
@@ -87,8 +87,8 @@ array(11) {
[8]=>
NULL
[9]=>
- %unicode|string%(3) "foo"
+ string(3) "foo"
[10]=>
- %unicode|string%(6) "foobar"
+ string(6) "foobar"
}
done! \ No newline at end of file
diff --git a/ext/mysqli/tests/021.phpt b/ext/mysqli/tests/021.phpt
index 5ff58c0348..6076529959 100644
--- a/ext/mysqli/tests/021.phpt
+++ b/ext/mysqli/tests/021.phpt
@@ -52,8 +52,8 @@ mysqli_close($link);
--EXPECTF--
array(2) {
[0]=>
- %unicode|string%(10) "1234567890"
+ string(10) "1234567890"
[1]=>
- %unicode|string%(14) "this is a test"
+ string(14) "this is a test"
}
done! \ No newline at end of file
diff --git a/ext/mysqli/tests/022.phpt b/ext/mysqli/tests/022.phpt
index 9cb71c0ea1..81450d2845 100644
--- a/ext/mysqli/tests/022.phpt
+++ b/ext/mysqli/tests/022.phpt
@@ -57,7 +57,7 @@ mysqli_close($link);
--EXPECTF--
array(2) {
[0]=>
- %unicode|string%(10) "1234567890"
+ string(10) "1234567890"
[1]=>
%s(13) "32K String ok"
}
diff --git a/ext/mysqli/tests/026.phpt b/ext/mysqli/tests/026.phpt
index 47d763a7c3..997dee6517 100644
--- a/ext/mysqli/tests/026.phpt
+++ b/ext/mysqli/tests/026.phpt
@@ -58,8 +58,8 @@ mysqli_close($link);
--EXPECTF--
array(2) {
[0]=>
- %unicode|string%(10) "Hello Worl"
+ string(10) "Hello Worl"
[1]=>
- %unicode|string%(99) "This is the first sentence. And this is the second sentence. And finally this is the last sentence."
+ string(99) "This is the first sentence. And this is the second sentence. And finally this is the last sentence."
}
done! \ No newline at end of file
diff --git a/ext/mysqli/tests/028.phpt b/ext/mysqli/tests/028.phpt
index af453dde01..67e54d632c 100644
--- a/ext/mysqli/tests/028.phpt
+++ b/ext/mysqli/tests/028.phpt
@@ -20,5 +20,5 @@ require_once('skipifconnectfailure.inc');
print "done!";
?>
--EXPECTF--
-%unicode|string%(%d) "%s"
+string(%d) "%s"
done! \ No newline at end of file
diff --git a/ext/mysqli/tests/031.phpt b/ext/mysqli/tests/031.phpt
index 9b8c720d3e..9360b4f3d4 100644
--- a/ext/mysqli/tests/031.phpt
+++ b/ext/mysqli/tests/031.phpt
@@ -25,6 +25,6 @@ require_once('skipifconnectfailure.inc');
print "done!";
?>
--EXPECTF--
-%unicode|string%(0) ""
-%unicode|string%(%d) "%s"
+string(0) ""
+string(%d) "%s"
done! \ No newline at end of file
diff --git a/ext/mysqli/tests/032.phpt b/ext/mysqli/tests/032.phpt
index 5fcd5484d2..d773defb26 100644
--- a/ext/mysqli/tests/032.phpt
+++ b/ext/mysqli/tests/032.phpt
@@ -38,5 +38,5 @@ if (!mysqli_query($link, "DROP TABLE IF EXISTS general_test"))
mysqli_close($link);
?>
--EXPECTF--
-%unicode|string%(38) "Records: 3 Duplicates: 0 Warnings: 0"
+string(38) "Records: 3 Duplicates: 0 Warnings: 0"
done! \ No newline at end of file
diff --git a/ext/mysqli/tests/033.phpt b/ext/mysqli/tests/033.phpt
index b499bd71a6..7ed9ba7523 100644
--- a/ext/mysqli/tests/033.phpt
+++ b/ext/mysqli/tests/033.phpt
@@ -21,5 +21,5 @@ require_once('skipifconnectfailure.inc');
print "done!";
?>
--EXPECTF--
-%unicode|string%(%d) "%s via %s"
+string(%d) "%s via %s"
done! \ No newline at end of file
diff --git a/ext/mysqli/tests/042.phpt b/ext/mysqli/tests/042.phpt
index 31f38f7651..2a324f7e40 100644
--- a/ext/mysqli/tests/042.phpt
+++ b/ext/mysqli/tests/042.phpt
@@ -61,19 +61,19 @@ mysqli_close($link);
?>
--EXPECTF--
object(stdClass)#%d (7) {
- [%u|b%"c1"]=>
- %unicode|string%(1) "0"
- [%u|b%"c2"]=>
- %unicode|string%(5) "35999"
- [%u|b%"c3"]=>
+ ["c1"]=>
+ string(1) "0"
+ ["c2"]=>
+ string(5) "35999"
+ ["c3"]=>
NULL
- [%u|b%"c4"]=>
- %unicode|string%(4) "-500"
- [%u|b%"c5"]=>
- %unicode|string%(6) "-32768"
- [%u|b%"c6"]=>
- %unicode|string%(1) "0"
- [%u|b%"c7"]=>
- %unicode|string%(1) "0"
+ ["c4"]=>
+ string(4) "-500"
+ ["c5"]=>
+ string(6) "-32768"
+ ["c6"]=>
+ string(1) "0"
+ ["c7"]=>
+ string(1) "0"
}
done! \ No newline at end of file
diff --git a/ext/mysqli/tests/045.phpt b/ext/mysqli/tests/045.phpt
index b643d159ae..5eff0b03bc 100644
--- a/ext/mysqli/tests/045.phpt
+++ b/ext/mysqli/tests/045.phpt
@@ -31,11 +31,6 @@ mysqli_stmt_bind_result (SHOW)
mysqli_stmt_bind_result($stmt, $c1, $c2);
mysqli_stmt_fetch($stmt);
mysqli_stmt_close($stmt);
- if ((version_compare(PHP_VERSION, '6.0', '==') == 1) && mysqli_get_server_version($link) < 50000) {
- /* variables are binary */
- settype($c1, "unicode");
- settype($c2, "unicode");
- }
$test = array ($c1,$c2);
var_dump($test);
@@ -46,8 +41,8 @@ mysqli_stmt_bind_result (SHOW)
--EXPECTF--
array(2) {
[0]=>
- %unicode|string%(4) "port"
+ string(4) "port"
[1]=>
- %unicode|string%(%d) "%s"
+ string(%d) "%s"
}
-done! \ No newline at end of file
+done!
diff --git a/ext/mysqli/tests/047.phpt b/ext/mysqli/tests/047.phpt
index 178a1aeba8..064bb42bb3 100644
--- a/ext/mysqli/tests/047.phpt
+++ b/ext/mysqli/tests/047.phpt
@@ -61,177 +61,177 @@ mysqli_close($link);
array(2) {
[0]=>
object(stdClass)#5 (13) {
- [%u|b%"name"]=>
- %unicode|string%(3) "foo"
- [%u|b%"orgname"]=>
- %unicode|string%(3) "foo"
- [%u|b%"table"]=>
- %unicode|string%(13) "test_affected"
- [%u|b%"orgtable"]=>
- %unicode|string%(13) "test_affected"
- [%u|b%"def"]=>
- %unicode|string%(0) ""
- [%u|b%"db"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"catalog"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"max_length"]=>
+ ["name"]=>
+ string(3) "foo"
+ ["orgname"]=>
+ string(3) "foo"
+ ["table"]=>
+ string(13) "test_affected"
+ ["orgtable"]=>
+ string(13) "test_affected"
+ ["def"]=>
+ string(0) ""
+ ["db"]=>
+ string(%d) "%s"
+ ["catalog"]=>
+ string(%d) "%s"
+ ["max_length"]=>
int(0)
- [%u|b%"length"]=>
+ ["length"]=>
int(%d)
- [%u|b%"charsetnr"]=>
+ ["charsetnr"]=>
int(%d)
- [%u|b%"flags"]=>
+ ["flags"]=>
int(32768)
- [%u|b%"type"]=>
+ ["type"]=>
int(3)
- [%u|b%"decimals"]=>
+ ["decimals"]=>
int(0)
}
[1]=>
object(stdClass)#6 (13) {
- [%u|b%"name"]=>
- %unicode|string%(3) "bar"
- [%u|b%"orgname"]=>
- %unicode|string%(3) "bar"
- [%u|b%"table"]=>
- %unicode|string%(13) "test_affected"
- [%u|b%"orgtable"]=>
- %unicode|string%(13) "test_affected"
- [%u|b%"def"]=>
- %unicode|string%(0) ""
- [%u|b%"db"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"catalog"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"max_length"]=>
+ ["name"]=>
+ string(3) "bar"
+ ["orgname"]=>
+ string(3) "bar"
+ ["table"]=>
+ string(13) "test_affected"
+ ["orgtable"]=>
+ string(13) "test_affected"
+ ["def"]=>
+ string(0) ""
+ ["db"]=>
+ string(%d) "%s"
+ ["catalog"]=>
+ string(%d) "%s"
+ ["max_length"]=>
int(0)
- [%u|b%"length"]=>
+ ["length"]=>
int(%d)
- [%u|b%"charsetnr"]=>
+ ["charsetnr"]=>
int(%d)
- [%u|b%"flags"]=>
+ ["flags"]=>
int(0)
- [%u|b%"type"]=>
+ ["type"]=>
int(253)
- [%u|b%"decimals"]=>
+ ["decimals"]=>
int(0)
}
}
=== fetch_field_direct ===
object(stdClass)#6 (13) {
- [%u|b%"name"]=>
- %unicode|string%(3) "foo"
- [%u|b%"orgname"]=>
- %unicode|string%(3) "foo"
- [%u|b%"table"]=>
- %unicode|string%(13) "test_affected"
- [%u|b%"orgtable"]=>
- %unicode|string%(13) "test_affected"
- [%u|b%"def"]=>
- %unicode|string%(0) ""
- [%u|b%"db"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"catalog"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"max_length"]=>
+ ["name"]=>
+ string(3) "foo"
+ ["orgname"]=>
+ string(3) "foo"
+ ["table"]=>
+ string(13) "test_affected"
+ ["orgtable"]=>
+ string(13) "test_affected"
+ ["def"]=>
+ string(0) ""
+ ["db"]=>
+ string(%d) "%s"
+ ["catalog"]=>
+ string(%d) "%s"
+ ["max_length"]=>
int(0)
- [%u|b%"length"]=>
+ ["length"]=>
int(%d)
- [%u|b%"charsetnr"]=>
+ ["charsetnr"]=>
int(%d)
- [%u|b%"flags"]=>
+ ["flags"]=>
int(32768)
- [%u|b%"type"]=>
+ ["type"]=>
int(3)
- [%u|b%"decimals"]=>
+ ["decimals"]=>
int(0)
}
object(stdClass)#6 (13) {
- [%u|b%"name"]=>
- %unicode|string%(3) "bar"
- [%u|b%"orgname"]=>
- %unicode|string%(3) "bar"
- [%u|b%"table"]=>
- %unicode|string%(13) "test_affected"
- [%u|b%"orgtable"]=>
- %unicode|string%(13) "test_affected"
- [%u|b%"def"]=>
- %unicode|string%(0) ""
- [%u|b%"db"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"catalog"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"max_length"]=>
+ ["name"]=>
+ string(3) "bar"
+ ["orgname"]=>
+ string(3) "bar"
+ ["table"]=>
+ string(13) "test_affected"
+ ["orgtable"]=>
+ string(13) "test_affected"
+ ["def"]=>
+ string(0) ""
+ ["db"]=>
+ string(%d) "%s"
+ ["catalog"]=>
+ string(%d) "%s"
+ ["max_length"]=>
int(0)
- [%u|b%"length"]=>
+ ["length"]=>
int(%d)
- [%u|b%"charsetnr"]=>
+ ["charsetnr"]=>
int(%d)
- [%u|b%"flags"]=>
+ ["flags"]=>
int(0)
- [%u|b%"type"]=>
+ ["type"]=>
int(253)
- [%u|b%"decimals"]=>
+ ["decimals"]=>
int(0)
}
=== fetch_field ===
object(stdClass)#6 (13) {
- [%u|b%"name"]=>
- %unicode|string%(3) "foo"
- [%u|b%"orgname"]=>
- %unicode|string%(3) "foo"
- [%u|b%"table"]=>
- %unicode|string%(13) "test_affected"
- [%u|b%"orgtable"]=>
- %unicode|string%(13) "test_affected"
- [%u|b%"def"]=>
- %unicode|string%(0) ""
- [%u|b%"db"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"catalog"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"max_length"]=>
+ ["name"]=>
+ string(3) "foo"
+ ["orgname"]=>
+ string(3) "foo"
+ ["table"]=>
+ string(13) "test_affected"
+ ["orgtable"]=>
+ string(13) "test_affected"
+ ["def"]=>
+ string(0) ""
+ ["db"]=>
+ string(%d) "%s"
+ ["catalog"]=>
+ string(%d) "%s"
+ ["max_length"]=>
int(0)
- [%u|b%"length"]=>
+ ["length"]=>
int(%d)
- [%u|b%"charsetnr"]=>
+ ["charsetnr"]=>
int(%d)
- [%u|b%"flags"]=>
+ ["flags"]=>
int(32768)
- [%u|b%"type"]=>
+ ["type"]=>
int(3)
- [%u|b%"decimals"]=>
+ ["decimals"]=>
int(0)
}
object(stdClass)#5 (13) {
- [%u|b%"name"]=>
- %unicode|string%(3) "bar"
- [%u|b%"orgname"]=>
- %unicode|string%(3) "bar"
- [%u|b%"table"]=>
- %unicode|string%(13) "test_affected"
- [%u|b%"orgtable"]=>
- %unicode|string%(13) "test_affected"
- [%u|b%"def"]=>
- %unicode|string%(0) ""
- [%u|b%"db"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"catalog"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"max_length"]=>
+ ["name"]=>
+ string(3) "bar"
+ ["orgname"]=>
+ string(3) "bar"
+ ["table"]=>
+ string(13) "test_affected"
+ ["orgtable"]=>
+ string(13) "test_affected"
+ ["def"]=>
+ string(0) ""
+ ["db"]=>
+ string(%d) "%s"
+ ["catalog"]=>
+ string(%d) "%s"
+ ["max_length"]=>
int(0)
- [%u|b%"length"]=>
+ ["length"]=>
int(%d)
- [%u|b%"charsetnr"]=>
+ ["charsetnr"]=>
int(%d)
- [%u|b%"flags"]=>
+ ["flags"]=>
int(0)
- [%u|b%"type"]=>
+ ["type"]=>
int(253)
- [%u|b%"decimals"]=>
+ ["decimals"]=>
int(0)
}
done! \ No newline at end of file
diff --git a/ext/mysqli/tests/048.phpt b/ext/mysqli/tests/048.phpt
index afc0923577..bd2625ad61 100644
--- a/ext/mysqli/tests/048.phpt
+++ b/ext/mysqli/tests/048.phpt
@@ -72,8 +72,8 @@ array(11) {
[8]=>
NULL
[9]=>
- %unicode|string%(4) "foo1"
+ string(4) "foo1"
[10]=>
- %unicode|string%(4) "1000"
+ string(4) "1000"
}
done! \ No newline at end of file
diff --git a/ext/mysqli/tests/049.phpt b/ext/mysqli/tests/049.phpt
index c87f369487..e91d8c26ef 100644
--- a/ext/mysqli/tests/049.phpt
+++ b/ext/mysqli/tests/049.phpt
@@ -28,6 +28,6 @@ require_once('skipifconnectfailure.inc');
--EXPECTF--
array(1) {
[0]=>
- %unicode|string%(%d) "%s"
+ string(%d) "%s"
}
done! \ No newline at end of file
diff --git a/ext/mysqli/tests/057.phpt b/ext/mysqli/tests/057.phpt
index 7c7e2b7568..ed445f22de 100644
--- a/ext/mysqli/tests/057.phpt
+++ b/ext/mysqli/tests/057.phpt
@@ -77,37 +77,37 @@ mysqli_close($link);
bool(true)
bool(true)
object(mysqli_stmt)#%d (%d) {
- [%u|b%"affected_rows"]=>
+ ["affected_rows"]=>
int(%i)
- [%u|b%"insert_id"]=>
+ ["insert_id"]=>
int(0)
- [%u|b%"num_rows"]=>
+ ["num_rows"]=>
int(0)
- [%u|b%"param_count"]=>
+ ["param_count"]=>
int(0)
- [%u|b%"field_count"]=>
+ ["field_count"]=>
int(1)
- [%u|b%"errno"]=>
+ ["errno"]=>
int(0)
- [%u|b%"error"]=>
- %unicode|string%(0) ""
- [%u|b%"error_list"]=>
+ ["error"]=>
+ string(0) ""
+ ["error_list"]=>
array(0) {
}
- [%u|b%"sqlstate"]=>
- %unicode|string%(5) "00000"
- [%u|b%"id"]=>
+ ["sqlstate"]=>
+ string(5) "00000"
+ ["id"]=>
int(3)
}
bool(true)
bool(false)
-%unicode|string%(0) ""
+string(0) ""
Warning: mysqli_stmt_reset() expects parameter 1 to be mysqli_stmt, boolean given in %s on line %d
NULL
Rows: 3
array(1) {
[0]=>
- %unicode|string%(1) "1"
+ string(1) "1"
}
done! \ No newline at end of file
diff --git a/ext/mysqli/tests/058.phpt b/ext/mysqli/tests/058.phpt
index 3d2eed7fbe..3d268749b9 100644
--- a/ext/mysqli/tests/058.phpt
+++ b/ext/mysqli/tests/058.phpt
@@ -64,10 +64,10 @@ array(4) {
[0]=>
int(1)
[1]=>
- %unicode|string%(3) "foo"
+ string(3) "foo"
[2]=>
int(2)
[3]=>
- %unicode|string%(3) "bar"
+ string(3) "bar"
}
done! \ No newline at end of file
diff --git a/ext/mysqli/tests/059.phpt b/ext/mysqli/tests/059.phpt
index e4b6a0b9fe..d6e9d6ed55 100644
--- a/ext/mysqli/tests/059.phpt
+++ b/ext/mysqli/tests/059.phpt
@@ -53,5 +53,5 @@ if (!mysqli_query($link, "DROP TABLE IF EXISTS mbind"))
mysqli_close($link);
?>
--EXPECTF--
-%unicode|string%(6) "foobar"
+string(6) "foobar"
done! \ No newline at end of file
diff --git a/ext/mysqli/tests/060.phpt b/ext/mysqli/tests/060.phpt
index 5d17f8f953..04d6c8a015 100644
--- a/ext/mysqli/tests/060.phpt
+++ b/ext/mysqli/tests/060.phpt
@@ -56,19 +56,19 @@ mysqli_close($link);
--EXPECTF--
test_class::__construct(1,2)
object(test_class)#%d (7) {
- [%u|b%"c1"]=>
- %unicode|string%(1) "0"
- [%u|b%"c2"]=>
- %unicode|string%(5) "35999"
- [%u|b%"c3"]=>
+ ["c1"]=>
+ string(1) "0"
+ ["c2"]=>
+ string(5) "35999"
+ ["c3"]=>
NULL
- [%u|b%"c4"]=>
- %unicode|string%(4) "-500"
- [%u|b%"c5"]=>
- %unicode|string%(6) "-32768"
- [%u|b%"c6"]=>
- %unicode|string%(1) "0"
- [%u|b%"c7"]=>
- %unicode|string%(1) "0"
+ ["c4"]=>
+ string(4) "-500"
+ ["c5"]=>
+ string(6) "-32768"
+ ["c6"]=>
+ string(1) "0"
+ ["c7"]=>
+ string(1) "0"
}
Done \ No newline at end of file
diff --git a/ext/mysqli/tests/061.phpt b/ext/mysqli/tests/061.phpt
index 5817d8230d..a6a0c4f205 100644
--- a/ext/mysqli/tests/061.phpt
+++ b/ext/mysqli/tests/061.phpt
@@ -32,7 +32,7 @@ mysqli_close($link);
/* create temporary file */
$filename = dirname(__FILE__) . "061.csv";
$fp = fopen($filename, "w");
- fwrite($fp, b"foo;bar");
+ fwrite($fp, "foo;bar");
fclose($fp);
if (!mysqli_query($link,"DROP TABLE IF EXISTS t_061"))
@@ -72,7 +72,7 @@ mysqli_close($link);
?>
--EXPECTF--
foo-bar
-%unicode|string%-%unicode|string%
+string-string
rab-oof
-%unicode|string%-%unicode|string%
+string-string
done!
diff --git a/ext/mysqli/tests/062.phpt b/ext/mysqli/tests/062.phpt
index bc6198c6a1..bfb7ea35bf 100644
--- a/ext/mysqli/tests/062.phpt
+++ b/ext/mysqli/tests/062.phpt
@@ -25,6 +25,6 @@ require_once('skipifconnectfailure.inc');
--EXPECTF--
array(1) {
[0]=>
- %unicode|string%(3) "foo"
+ string(3) "foo"
}
done! \ No newline at end of file
diff --git a/ext/mysqli/tests/063.phpt b/ext/mysqli/tests/063.phpt
index b184d72eea..da6708c0ac 100644
--- a/ext/mysqli/tests/063.phpt
+++ b/ext/mysqli/tests/063.phpt
@@ -21,4 +21,4 @@ require_once('skipifconnectfailure.inc');
var_dump($foo);
?>
--EXPECTF--
-%unicode|string%(3) "foo" \ No newline at end of file
+string(3) "foo" \ No newline at end of file
diff --git a/ext/mysqli/tests/065.phpt b/ext/mysqli/tests/065.phpt
index fbdf6e1277..59754bc278 100644
--- a/ext/mysqli/tests/065.phpt
+++ b/ext/mysqli/tests/065.phpt
@@ -8,9 +8,6 @@ require_once('skipifconnectfailure.inc');
if (!function_exists('mysqli_set_charset')) {
die('skip mysqli_set_charset() not available');
}
-if (version_compare(PHP_VERSION, '6.0', '==') == 1) {
- die('skip set character set not functional with PHP 6 (fomerly PHP 6 && unicode.semantics=On)');
-}
?>
--FILE--
<?php
@@ -52,4 +49,4 @@ if (version_compare(PHP_VERSION, '6.0', '==') == 1) {
print "done!";
?>
--EXPECT--
-done! \ No newline at end of file
+done!
diff --git a/ext/mysqli/tests/068.phpt b/ext/mysqli/tests/068.phpt
index 57a4a2543a..78f710db8c 100644
--- a/ext/mysqli/tests/068.phpt
+++ b/ext/mysqli/tests/068.phpt
@@ -8,4 +8,4 @@ mysqli get_client_info
echo gettype($s);
?>
--EXPECTF--
-%unicode|string% \ No newline at end of file
+string \ No newline at end of file
diff --git a/ext/mysqli/tests/069.phpt b/ext/mysqli/tests/069.phpt
index ee76ca5c10..c83cbc3c16 100644
--- a/ext/mysqli/tests/069.phpt
+++ b/ext/mysqli/tests/069.phpt
@@ -29,10 +29,10 @@ require_once('skipifconnectfailure.inc');
--EXPECTF--
array(1) {
[1]=>
- %unicode|string%(1) "1"
+ string(1) "1"
}
array(1) {
[2]=>
- %unicode|string%(1) "2"
+ string(1) "2"
}
done! \ No newline at end of file
diff --git a/ext/mysqli/tests/072.phpt b/ext/mysqli/tests/072.phpt
index a1e9983bf3..3aaef33c67 100644
--- a/ext/mysqli/tests/072.phpt
+++ b/ext/mysqli/tests/072.phpt
@@ -27,6 +27,6 @@ require_once('skipifconnectfailure.inc');
--EXPECTF--
int(1)
int(1051)
-%unicode|string%(%d) "Unknown table %snot_exists%s"
-%unicode|string%(5) "HY000"
+string(%d) "Unknown table %snot_exists%s"
+string(5) "HY000"
done! \ No newline at end of file
diff --git a/ext/mysqli/tests/073.phpt b/ext/mysqli/tests/073.phpt
index c70f7d9471..90fae8b7c6 100644
--- a/ext/mysqli/tests/073.phpt
+++ b/ext/mysqli/tests/073.phpt
@@ -17,7 +17,7 @@ mysqli_driver properties
--EXPECTF--
bool(%s)
int(%d)
-%unicode|string%(%d) "%s"
+string(%d) "%s"
int(%d)
bool(%s)
int(%d)
diff --git a/ext/mysqli/tests/074.phpt b/ext/mysqli/tests/074.phpt
index 7d9d01b3be..7b4590f99c 100644
--- a/ext/mysqli/tests/074.phpt
+++ b/ext/mysqli/tests/074.phpt
@@ -25,10 +25,10 @@ require_once('skipifconnectfailure.inc');
bool(true)
array(1) {
[0]=>
- %unicode|string%(1) "0"
+ string(1) "0"
}
bool(true)
array(1) {
[0]=>
- %unicode|string%(1) "1"
+ string(1) "1"
} \ No newline at end of file
diff --git a/ext/mysqli/tests/bug34810.phpt b/ext/mysqli/tests/bug34810.phpt
index 4fe87f4c00..43edfd7d50 100644
--- a/ext/mysqli/tests/bug34810.phpt
+++ b/ext/mysqli/tests/bug34810.phpt
@@ -63,84 +63,84 @@ mysqli_close($link);
?>
--EXPECTF--
object(mysqli)#%d (%d) {
- [%u|b%"affected_rows"]=>
+ ["affected_rows"]=>
int(0)
- [%u|b%"client_info"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"client_version"]=>
+ ["client_info"]=>
+ string(%d) "%s"
+ ["client_version"]=>
int(%d)
- [%u|b%"connect_errno"]=>
+ ["connect_errno"]=>
int(0)
- [%u|b%"connect_error"]=>
+ ["connect_error"]=>
NULL
- [%u|b%"errno"]=>
+ ["errno"]=>
int(0)
- [%u|b%"error"]=>
- %unicode|string%(0) ""
- [%u|b%"error_list"]=>
+ ["error"]=>
+ string(0) ""
+ ["error_list"]=>
array(0) {
}
- [%u|b%"field_count"]=>
+ ["field_count"]=>
int(0)
- [%u|b%"host_info"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"info"]=>
+ ["host_info"]=>
+ string(%d) "%s"
+ ["info"]=>
NULL
- [%u|b%"insert_id"]=>
+ ["insert_id"]=>
int(0)
- [%u|b%"server_info"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"server_version"]=>
+ ["server_info"]=>
+ string(%d) "%s"
+ ["server_version"]=>
int(%d)
- [%u|b%"stat"]=>
+ ["stat"]=>
string(%d) "Uptime: %d Threads: %d Questions: %d Slow queries: %d Opens: %d Flush tables: %d Open tables: %d Queries per second avg: %d.%d"
- [%u|b%"sqlstate"]=>
- %unicode|string%(5) "00000"
- [%u|b%"protocol_version"]=>
+ ["sqlstate"]=>
+ string(5) "00000"
+ ["protocol_version"]=>
int(10)
- [%u|b%"thread_id"]=>
+ ["thread_id"]=>
int(%d)
- [%u|b%"warning_count"]=>
+ ["warning_count"]=>
int(0)
}
object(mysqli)#%d (%d) {
- [%u|b%"affected_rows"]=>
+ ["affected_rows"]=>
NULL
- [%u|b%"client_info"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"client_version"]=>
+ ["client_info"]=>
+ string(%d) "%s"
+ ["client_version"]=>
int(%d)
- [%u|b%"connect_errno"]=>
+ ["connect_errno"]=>
int(0)
- [%u|b%"connect_error"]=>
+ ["connect_error"]=>
NULL
- [%u|b%"errno"]=>
+ ["errno"]=>
int(0)
- [%u|b%"error"]=>
- %unicode|string%(0) ""
- [%u|b%"error_list"]=>
+ ["error"]=>
+ string(0) ""
+ ["error_list"]=>
NULL
- [%u|b%"field_count"]=>
+ ["field_count"]=>
NULL
- [%u|b%"host_info"]=>
+ ["host_info"]=>
NULL
- [%u|b%"info"]=>
+ ["info"]=>
NULL
- [%u|b%"insert_id"]=>
+ ["insert_id"]=>
NULL
- [%u|b%"server_info"]=>
+ ["server_info"]=>
NULL
- [%u|b%"server_version"]=>
+ ["server_version"]=>
NULL
- [%u|b%"stat"]=>
+ ["stat"]=>
NULL
- [%u|b%"sqlstate"]=>
+ ["sqlstate"]=>
NULL
- [%u|b%"protocol_version"]=>
+ ["protocol_version"]=>
NULL
- [%u|b%"thread_id"]=>
+ ["thread_id"]=>
NULL
- [%u|b%"warning_count"]=>
+ ["warning_count"]=>
NULL
}
Done
diff --git a/ext/mysqli/tests/bug35517.phpt b/ext/mysqli/tests/bug35517.phpt
index d2ef748e45..c40035d9c8 100644
--- a/ext/mysqli/tests/bug35517.phpt
+++ b/ext/mysqli/tests/bug35517.phpt
@@ -24,10 +24,6 @@ require_once('skipifconnectfailure.inc');
if (gettype($id) !== 'string') {
printf("[002] Expecting string on 32bit got %s/%s\n", gettype($id), var_export($id, true));
}
- if ((version_compare(PHP_VERSION, '6.0', '==') == 1) &&
- !is_unicode($id)) {
- printf("[003] Expecting unicode string\n");
- }
}
print $id;
print "\n";
@@ -54,4 +50,4 @@ mysqli_close($link);
3800001532
3900002281
3100059612
-done! \ No newline at end of file
+done!
diff --git a/ext/mysqli/tests/bug37090.phpt b/ext/mysqli/tests/bug37090.phpt
index 7c5a44851e..d24e0d4a7f 100644
--- a/ext/mysqli/tests/bug37090.phpt
+++ b/ext/mysqli/tests/bug37090.phpt
@@ -7,9 +7,6 @@ require_once('skipifconnectfailure.inc');
if (!function_exists('mysqli_set_charset')) {
die('skip mysqli_set_charset() not available');
}
-if ((version_compare(PHP_VERSION, '6.0', '==') == 1)) {
- die("skip Functionality not available in unicode mode");
-}
?>
--FILE--
<?php
diff --git a/ext/mysqli/tests/bug38003.phpt b/ext/mysqli/tests/bug38003.phpt
index f3a4823b9d..a974815d4d 100644
--- a/ext/mysqli/tests/bug38003.phpt
+++ b/ext/mysqli/tests/bug38003.phpt
@@ -17,5 +17,7 @@ $DB = new DB();
echo "Done\n";
?>
--EXPECTF--
-Fatal error: Access level to DB::__construct() must be public (as in class mysqli) in %s%ebug38003.php on line %d
-
+Fatal error: Uncaught Error: Call to private DB::__construct() from invalid context in %s
+Stack trace:
+#0 {main}
+ thrown in %s
diff --git a/ext/mysqli/tests/bug42378.phpt b/ext/mysqli/tests/bug42378.phpt
index b3fd7ca524..f3bbe346fa 100644
--- a/ext/mysqli/tests/bug42378.phpt
+++ b/ext/mysqli/tests/bug42378.phpt
@@ -128,19 +128,18 @@ memory_limit=83886080
}
}
- if (!empty($expected))
- reset($expected);
- while ((list($k, $v) = each($expected)) && mysqli_stmt_fetch($stmt)) {
- if (!empty($expected)) {
- if ($result !== $v) {
- printf("[%03d] Row %d - expecting %s/%s got %s/%s [%s] with %s - %s.\n",
- $offset + 8,
- $k,
- gettype($v), $v,
- gettype($result), $result,
- $order_by_col,
- $format, $sql);
- }
+ foreach ($expected as $k => $v) {
+ if (!mysqli_stmt_fetch($stmt)) {
+ break;
+ }
+ if ($result !== $v) {
+ printf("[%03d] Row %d - expecting %s/%s got %s/%s [%s] with %s - %s.\n",
+ $offset + 8,
+ $k,
+ gettype($v), $v,
+ gettype($result), $result,
+ $order_by_col,
+ $format, $sql);
}
}
diff --git a/ext/mysqli/tests/bug45019.phpt b/ext/mysqli/tests/bug45019.phpt
index b8828c7428..b4c115d4cc 100644
--- a/ext/mysqli/tests/bug45019.phpt
+++ b/ext/mysqli/tests/bug45019.phpt
@@ -53,7 +53,7 @@ require_once('skipifconnectfailure.inc');
?>
--EXPECTF--
Using CAST('somestring' AS CHAR)...
-%unicode|string%(3) "one"
-%unicode|string%(5) "three"
-%unicode|string%(3) "two"
+string(3) "one"
+string(5) "three"
+string(3) "two"
done!
diff --git a/ext/mysqli/tests/bug49027.phpt b/ext/mysqli/tests/bug49027.phpt
index 35434bdd2d..55b74ce017 100644
--- a/ext/mysqli/tests/bug49027.phpt
+++ b/ext/mysqli/tests/bug49027.phpt
@@ -53,10 +53,10 @@ require_once('skipifconnectfailure.inc');
--EXPECTF--
array(1) {
[0]=>
- %unicode|string%(2) "42"
+ string(2) "42"
}
array(1) {
- [%u|b%"id"]=>
- %unicode|string%(1) "1"
+ ["id"]=>
+ string(1) "1"
}
done!
diff --git a/ext/mysqli/tests/bug49442.phpt b/ext/mysqli/tests/bug49442.phpt
index 54267451ee..dce7b33cb7 100644
--- a/ext/mysqli/tests/bug49442.phpt
+++ b/ext/mysqli/tests/bug49442.phpt
@@ -110,21 +110,21 @@ mysqli.max_persistent=1
?>
--EXPECTF--
array(2) {
- [%u|b%"id"]=>
- %unicode|string%(2) "97"
- [%u|b%"label"]=>
- %unicode|string%(1) "x"
+ ["id"]=>
+ string(2) "97"
+ ["label"]=>
+ string(1) "x"
}
array(2) {
- [%u|b%"id"]=>
- %unicode|string%(2) "98"
- [%u|b%"label"]=>
- %unicode|string%(1) "y"
+ ["id"]=>
+ string(2) "98"
+ ["label"]=>
+ string(1) "y"
}
array(2) {
- [%u|b%"id"]=>
- %unicode|string%(2) "99"
- [%u|b%"label"]=>
- %unicode|string%(1) "z"
+ ["id"]=>
+ string(2) "99"
+ ["label"]=>
+ string(1) "z"
}
done! \ No newline at end of file
diff --git a/ext/mysqli/tests/bug53503.phpt b/ext/mysqli/tests/bug53503.phpt
index 339fce7a8e..a34b7a3416 100644
--- a/ext/mysqli/tests/bug53503.phpt
+++ b/ext/mysqli/tests/bug53503.phpt
@@ -1,66 +1,66 @@
---TEST--
-Bug #53503 (mysqli::query returns false after successful LOAD DATA query)
---SKIPIF--
-<?php
-require_once('skipif.inc');
-require_once('skipifconnectfailure.inc');
-
-if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
- die("skip Cannot connect to MySQL");
-
-include_once("local_infile_tools.inc");
-if ($msg = check_local_infile_support($link, $engine))
- die(sprintf("skip %s, [%d] %s", $msg, $link->errno, $link->error));
-
-mysqli_close($link);
-
-?>
---FILE--
-<?php
- require_once("connect.inc");
-
- if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
- printf("[001] Connect failed, [%d] %s\n", mysqli_connect_errno(), mysqli_connect_error());
- }
-
- if (!$link->query("DROP TABLE IF EXISTS test")) {
- printf("[002] [%d] %s\n", $link->errno, $link->error);
- }
-
- if (!$link->query("CREATE TABLE test (dump1 INT UNSIGNED NOT NULL PRIMARY KEY) ENGINE=" . $engine)) {
- printf("[003] [%d] %s\n", $link->errno, $link->error);
- }
-
- if (FALSE == file_put_contents('bug53503.data', "1\n2\n3\n"))
- printf("[004] Failed to create CVS file\n");
-
- if (!$link->query("SELECT 1 FROM DUAL"))
- printf("[005] [%d] %s\n", $link->errno, $link->error);
-
- if (!$link->query("LOAD DATA LOCAL INFILE 'bug53503.data' INTO TABLE test")) {
- printf("[006] [%d] %s\n", $link->errno, $link->error);
- echo "bug";
- } else {
- echo "done";
- }
- $link->close();
-?>
---CLEAN--
-<?php
-require_once('connect.inc');
-
-if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
- printf("[clean] Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
- $host, $user, $db, $port, $socket);
-}
-
-if (!$link->query($link, 'DROP TABLE IF EXISTS test')) {
- printf("[clean] Failed to drop old test table: [%d] %s\n", mysqli_errno($link), mysqli_error($link));
-}
-
-$link->close();
-
-unlink('bug53503.data');
-?>
---EXPECT--
+--TEST--
+Bug #53503 (mysqli::query returns false after successful LOAD DATA query)
+--SKIPIF--
+<?php
+require_once('skipif.inc');
+require_once('skipifconnectfailure.inc');
+
+if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
+ die("skip Cannot connect to MySQL");
+
+include_once("local_infile_tools.inc");
+if ($msg = check_local_infile_support($link, $engine))
+ die(sprintf("skip %s, [%d] %s", $msg, $link->errno, $link->error));
+
+mysqli_close($link);
+
+?>
+--FILE--
+<?php
+ require_once("connect.inc");
+
+ if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
+ printf("[001] Connect failed, [%d] %s\n", mysqli_connect_errno(), mysqli_connect_error());
+ }
+
+ if (!$link->query("DROP TABLE IF EXISTS test")) {
+ printf("[002] [%d] %s\n", $link->errno, $link->error);
+ }
+
+ if (!$link->query("CREATE TABLE test (dump1 INT UNSIGNED NOT NULL PRIMARY KEY) ENGINE=" . $engine)) {
+ printf("[003] [%d] %s\n", $link->errno, $link->error);
+ }
+
+ if (FALSE == file_put_contents('bug53503.data', "1\n2\n3\n"))
+ printf("[004] Failed to create CVS file\n");
+
+ if (!$link->query("SELECT 1 FROM DUAL"))
+ printf("[005] [%d] %s\n", $link->errno, $link->error);
+
+ if (!$link->query("LOAD DATA LOCAL INFILE 'bug53503.data' INTO TABLE test")) {
+ printf("[006] [%d] %s\n", $link->errno, $link->error);
+ echo "bug";
+ } else {
+ echo "done";
+ }
+ $link->close();
+?>
+--CLEAN--
+<?php
+require_once('connect.inc');
+
+if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
+ printf("[clean] Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
+ $host, $user, $db, $port, $socket);
+}
+
+if (!$link->query($link, 'DROP TABLE IF EXISTS test')) {
+ printf("[clean] Failed to drop old test table: [%d] %s\n", mysqli_errno($link), mysqli_error($link));
+}
+
+$link->close();
+
+unlink('bug53503.data');
+?>
+--EXPECT--
done \ No newline at end of file
diff --git a/ext/mysqli/tests/bug55653.phpt b/ext/mysqli/tests/bug55653.phpt
index f9cd297eba..1caff1a27a 100644
--- a/ext/mysqli/tests/bug55653.phpt
+++ b/ext/mysqli/tests/bug55653.phpt
@@ -1,36 +1,36 @@
---TEST--
-Bug #55653 PS crash with libmysql when binding same variable as param and out
---SKIPIF--
-<?php
-require_once('skipif.inc');
-require_once('skipifconnectfailure.inc');
-?>
---FILE--
-<?php
- require_once("connect.inc");
-
- if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
- printf("[001] Connect failed, [%d] %s\n", mysqli_connect_errno(), mysqli_connect_error());
- }
-
- $in_and_out = "a";
-
- if (!($stmt = $link->stmt_init()))
- printf("[002] [%d] %s\n", $link->errno, $link->error);
-
- if (!($stmt->prepare("SELECT ?")) ||
- !($stmt->bind_param("s", $in_and_out)) ||
- !($stmt->execute()) ||
- !($stmt->bind_result($in_and_out)))
- printf("[003] [%d] %s\n", $stmt->errno, $stmt->error);
-
- if (!$stmt->fetch())
- printf("[004] [%d] %s\n", $stmt->errno, $stmt->error);
-
- if ("a" !== $in_and_out)
- printf("[005] Wrong result: '%s'\n", $in_and_out);
-
- echo "done!";
-?>
---EXPECT--
+--TEST--
+Bug #55653 PS crash with libmysql when binding same variable as param and out
+--SKIPIF--
+<?php
+require_once('skipif.inc');
+require_once('skipifconnectfailure.inc');
+?>
+--FILE--
+<?php
+ require_once("connect.inc");
+
+ if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
+ printf("[001] Connect failed, [%d] %s\n", mysqli_connect_errno(), mysqli_connect_error());
+ }
+
+ $in_and_out = "a";
+
+ if (!($stmt = $link->stmt_init()))
+ printf("[002] [%d] %s\n", $link->errno, $link->error);
+
+ if (!($stmt->prepare("SELECT ?")) ||
+ !($stmt->bind_param("s", $in_and_out)) ||
+ !($stmt->execute()) ||
+ !($stmt->bind_result($in_and_out)))
+ printf("[003] [%d] %s\n", $stmt->errno, $stmt->error);
+
+ if (!$stmt->fetch())
+ printf("[004] [%d] %s\n", $stmt->errno, $stmt->error);
+
+ if ("a" !== $in_and_out)
+ printf("[005] Wrong result: '%s'\n", $in_and_out);
+
+ echo "done!";
+?>
+--EXPECT--
done! \ No newline at end of file
diff --git a/ext/mysqli/tests/bug55859.phpt b/ext/mysqli/tests/bug55859.phpt
index ba6e9902b3..04467bce24 100644
--- a/ext/mysqli/tests/bug55859.phpt
+++ b/ext/mysqli/tests/bug55859.phpt
@@ -1,20 +1,20 @@
---TEST--
-Bug #55859 mysqli->stat property access gives error
---SKIPIF--
-<?php
-require_once('skipif.inc');
-require_once('skipifconnectfailure.inc');
-?>
---FILE--
-<?php
- require_once("connect.inc");
-
- if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
- printf("[001] Connect failed, [%d] %s\n", mysqli_connect_errno(), mysqli_connect_error());
- }
- var_dump(soundex(mysqli_stat($link)) === soundex($link->stat));
- echo "done!";
-?>
---EXPECT--
-bool(true)
-done!
+--TEST--
+Bug #55859 mysqli->stat property access gives error
+--SKIPIF--
+<?php
+require_once('skipif.inc');
+require_once('skipifconnectfailure.inc');
+?>
+--FILE--
+<?php
+ require_once("connect.inc");
+
+ if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
+ printf("[001] Connect failed, [%d] %s\n", mysqli_connect_errno(), mysqli_connect_error());
+ }
+ var_dump(soundex(mysqli_stat($link)) === soundex($link->stat));
+ echo "done!";
+?>
+--EXPECT--
+bool(true)
+done!
diff --git a/ext/mysqli/tests/bug62046.phpt b/ext/mysqli/tests/bug62046.phpt
index 31a7328b70..c8ad3c3675 100644
--- a/ext/mysqli/tests/bug62046.phpt
+++ b/ext/mysqli/tests/bug62046.phpt
@@ -1,40 +1,40 @@
---TEST--
-Bug #62046 mysqli@mysqlnd can't iterate over stored sets after call to mysqli_stmt_reset()
---SKIPIF--
-<?php
-require_once('skipif.inc');
-require_once('skipifconnectfailure.inc');
-?>
---FILE--
-<?php
- require_once("connect.inc");
-
- if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
- printf("[001] Connect failed, [%d] %s\n", mysqli_connect_errno(), mysqli_connect_error());
- }
- if (FALSE === ($stmt = $link->prepare('SELECT 42'))) {
- printf("[002] Prepare failed, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
- }
- if (FALSE === $stmt->execute()) {
- printf("[003] Execute failed, [%d] %s\n", $stmt->errorno, $stmt->error);
- }
- if (FALSE === $stmt->store_result()) {
- printf("[004] store_result failed, [%d] %s\n", $stmt->errorno, $stmt->error);
- }
- $one = NULL;
- if (FALSE === $stmt->bind_result($one)) {
- printf("[005] bind_result failed, [%d] %s\n", $stmt->errorno, $stmt->error);
- }
- if (FALSE === $stmt->reset()) {
- printf("[006] bind_result failed, [%d] %s\n", $stmt->errorno, $stmt->error);
- }
- while ($stmt->fetch()) {
- var_dump($one);
- }
- $stmt->close();
- $link->close();
- echo "done!";
-?>
---EXPECT--
-int(42)
+--TEST--
+Bug #62046 mysqli@mysqlnd can't iterate over stored sets after call to mysqli_stmt_reset()
+--SKIPIF--
+<?php
+require_once('skipif.inc');
+require_once('skipifconnectfailure.inc');
+?>
+--FILE--
+<?php
+ require_once("connect.inc");
+
+ if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
+ printf("[001] Connect failed, [%d] %s\n", mysqli_connect_errno(), mysqli_connect_error());
+ }
+ if (FALSE === ($stmt = $link->prepare('SELECT 42'))) {
+ printf("[002] Prepare failed, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
+ }
+ if (FALSE === $stmt->execute()) {
+ printf("[003] Execute failed, [%d] %s\n", $stmt->errorno, $stmt->error);
+ }
+ if (FALSE === $stmt->store_result()) {
+ printf("[004] store_result failed, [%d] %s\n", $stmt->errorno, $stmt->error);
+ }
+ $one = NULL;
+ if (FALSE === $stmt->bind_result($one)) {
+ printf("[005] bind_result failed, [%d] %s\n", $stmt->errorno, $stmt->error);
+ }
+ if (FALSE === $stmt->reset()) {
+ printf("[006] bind_result failed, [%d] %s\n", $stmt->errorno, $stmt->error);
+ }
+ while ($stmt->fetch()) {
+ var_dump($one);
+ }
+ $stmt->close();
+ $link->close();
+ echo "done!";
+?>
+--EXPECT--
+int(42)
done! \ No newline at end of file
diff --git a/ext/mysqli/tests/bug62885.phpt b/ext/mysqli/tests/bug62885.phpt
index 9fb0aa0f03..4d02475570 100644
--- a/ext/mysqli/tests/bug62885.phpt
+++ b/ext/mysqli/tests/bug62885.phpt
@@ -1,26 +1,26 @@
---TEST--
-Bug #62885 (mysqli_poll - Segmentation fault)
---SKIPIF--
-<?php
-require_once('skipif.inc');
-require_once("connect.inc");
-if (!$IS_MYSQLND) {
- die("skip mysqlnd only test");
-}
-?>
---FILE--
-<?php
-error_reporting(E_ALL);
-$tablica = array();
-$test1 = mysqli_poll($test2, $test3, $tablica, null);
-
-$test2 = array();
-$test2 = array();
-$test1 = mysqli_poll($test2, $test3, $tablica, null);
-echo "okey";
-?>
---EXPECTF--
-Warning: mysqli_poll(): No stream arrays were passed in %sbug62885.php on line %d
-
-Warning: mysqli_poll(): No stream arrays were passed in %sbug62885.php on line %d
-okey
+--TEST--
+Bug #62885 (mysqli_poll - Segmentation fault)
+--SKIPIF--
+<?php
+require_once('skipif.inc');
+require_once("connect.inc");
+if (!$IS_MYSQLND) {
+ die("skip mysqlnd only test");
+}
+?>
+--FILE--
+<?php
+error_reporting(E_ALL);
+$tablica = array();
+$test1 = mysqli_poll($test2, $test3, $tablica, null);
+
+$test2 = array();
+$test2 = array();
+$test1 = mysqli_poll($test2, $test3, $tablica, null);
+echo "okey";
+?>
+--EXPECTF--
+Warning: mysqli_poll(): No stream arrays were passed in %sbug62885.php on line %d
+
+Warning: mysqli_poll(): No stream arrays were passed in %sbug62885.php on line %d
+okey
diff --git a/ext/mysqli/tests/bug74737.phpt b/ext/mysqli/tests/bug74737.phpt
new file mode 100644
index 0000000000..b45f843830
--- /dev/null
+++ b/ext/mysqli/tests/bug74737.phpt
@@ -0,0 +1,19 @@
+--TEST--
+Bug #74737: Incorrect ReflectionFunction information for mysqli_get_client_info
+--SKIPIF--
+<?php
+require_once('skipif.inc');
+if (!extension_loaded('reflection')) { die("skip"); }
+?>
+--FILE--
+<?php
+$client_info = mysqli_get_client_info();
+$rf = new ReflectionFunction('mysqli_get_client_info');
+echo $rf->getNumberOfParameters();
+echo PHP_EOL;
+echo $rf->getNumberOfRequiredParameters();
+?>
+
+--EXPECT--
+0
+0
diff --git a/ext/mysqli/tests/local_infile_tools.inc b/ext/mysqli/tests/local_infile_tools.inc
index 7b4d9c12a9..af66d4c20c 100644
--- a/ext/mysqli/tests/local_infile_tools.inc
+++ b/ext/mysqli/tests/local_infile_tools.inc
@@ -59,22 +59,12 @@
register_shutdown_function("shutdown_clean", $file);
}
- if ((version_compare(PHP_VERSION, '6.0', '==') == 1)) {
- if (!fwrite($fp, (binary)"'97';'x';\n") ||
- !fwrite($fp, (binary)"'98';'y';\n") ||
- !fwrite($fp, (binary)"99;'z';\n")) {
- if ($verbose)
- printf("[%03d + 2] Cannot write CVS file '%s'\n", $offset, $file);
- return NULL;
- }
- } else {
- if (!fwrite($fp, "97;'x';\n") ||
- !fwrite($fp, "98;'y';\n") ||
- !fwrite($fp, "99;'z';\n")) {
- if ($verbose)
- printf("[%03d + 3] Cannot write CVS file '%s'\n", $offset, $file);
- return NULL;
- }
+ if (!fwrite($fp, "97;'x';\n") ||
+ !fwrite($fp, "98;'y';\n") ||
+ !fwrite($fp, "99;'z';\n")) {
+ if ($verbose)
+ printf("[%03d + 3] Cannot write CVS file '%s'\n", $offset, $file);
+ return NULL;
}
fclose($fp);
@@ -153,4 +143,4 @@
return true;
}
-?> \ No newline at end of file
+?>
diff --git a/ext/mysqli/tests/mysqli_auth_pam.phpt b/ext/mysqli/tests/mysqli_auth_pam.phpt
index fe1552954a..b5dfad77cd 100644
--- a/ext/mysqli/tests/mysqli_auth_pam.phpt
+++ b/ext/mysqli/tests/mysqli_auth_pam.phpt
@@ -6,10 +6,6 @@ require_once('skipif.inc');
require_once('skipifemb.inc');
require_once('connect.inc');
-if (version_compare(PHP_VERSION, '5.3.99') >= 0) {
- die("SKIP Available as of PHP 5.3.99");
-}
-
if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
die(sprintf("SKIP Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
$host, $user, $db, $port, $socket));
diff --git a/ext/mysqli/tests/mysqli_change_user_set_names.phpt b/ext/mysqli/tests/mysqli_change_user_set_names.phpt
index 913ade275e..0adaf52b85 100644
--- a/ext/mysqli/tests/mysqli_change_user_set_names.phpt
+++ b/ext/mysqli/tests/mysqli_change_user_set_names.phpt
@@ -129,14 +129,6 @@ if ($version[0] <= 4 && $version[1] < 1)
var_dump($defaults);
}
- if ((version_compare(PHP_VERSION, '6.0', '==') == 1)) {
- // charsets cannot take any other value but utf8 in unicode mode
- $defaults['charset_client'] = 'utf8';
- $defaults['charset_connection'] = 'utf8';
- $defaults['charset_results'] = 'utf8';
- $defaults['collation_connection'] = 'utf8_general_ci';
- }
-
if ($new != $defaults) {
printf("[012] Charsets/collations have not been reset to their defaults.\n");
printf("Got:\n");
@@ -162,4 +154,4 @@ if ($version[0] <= 4 && $version[1] < 1)
print "done!";
?>
--EXPECTF--
-done! \ No newline at end of file
+done!
diff --git a/ext/mysqli/tests/mysqli_character_set.phpt b/ext/mysqli/tests/mysqli_character_set.phpt
index 7c25473331..82be2c4683 100644
--- a/ext/mysqli/tests/mysqli_character_set.phpt
+++ b/ext/mysqli/tests/mysqli_character_set.phpt
@@ -4,7 +4,6 @@ Fetching results from tables of different charsets.
<?php
require_once('skipif.inc');
require_once('skipifconnectfailure.inc');
-require_once('skipifunicode.inc');
require_once('skipifemb.inc');
if (!function_exists('mysqli_set_charset')) {
diff --git a/ext/mysqli/tests/mysqli_class_mysqli_interface.phpt b/ext/mysqli/tests/mysqli_class_mysqli_interface.phpt
index c816163e13..27d399be16 100644
--- a/ext/mysqli/tests/mysqli_class_mysqli_interface.phpt
+++ b/ext/mysqli/tests/mysqli_class_mysqli_interface.phpt
@@ -60,10 +60,6 @@ require_once('skipifconnectfailure.inc');
'use_result' => true,
);
- if (version_compare(PHP_VERSION, '5.3.99', '<=')) {
- $expected_methods['client_encoding'] = true;
- }
-
if ($IS_MYSQLND) {
// mysqlnd only
/* $expected_methods['get_client_stats'] = true; */
@@ -118,10 +114,8 @@ require_once('skipifconnectfailure.inc');
"warning_count" => true,
);
- if (version_compare(PHP_VERSION, '5.3.99', '>')) {
- $expected_class_variables["error_list"] = true;
- $expected_object_variables["error_list"] = true;
- }
+ $expected_class_variables["error_list"] = true;
+ $expected_object_variables["error_list"] = true;
$variables = get_class_vars(get_class($mysqli));
foreach ($variables as $var => $v) {
@@ -188,10 +182,8 @@ require_once('skipifconnectfailure.inc');
$mysqli->error, gettype($mysqli->error),
mysqli_error($link), gettype(mysqli_error($link)));
- if (version_compare(PHP_VERSION, '5.3.99', '>')) {
- assert(mysqli_error_list($link) === $mysqli->error_list);
- assert(is_array($mysqli->error_list));
- }
+ assert(mysqli_error_list($link) === $mysqli->error_list);
+ assert(is_array($mysqli->error_list));
assert(mysqli_field_count($link) === $mysqli->field_count);
printf("mysqli->field_count = '%s'/%s ('%s'/%s)\n",
@@ -289,19 +281,19 @@ ok
Magic, magic properties:
mysqli->affected_rows = '%s'/integer ('%s'/integer)
-mysqli->client_info = '%s'/%unicode|string% ('%s'/%unicode|string%)
+mysqli->client_info = '%s'/string ('%s'/string)
mysqli->client_version = '%d'/integer ('%d'/integer)
mysqli->errno = '0'/integer ('0'/integer)
-mysqli->error = ''/%unicode|string% (''/%unicode|string%)
+mysqli->error = ''/string (''/string)
mysqli->field_count = '0'/integer ('0'/integer)
mysqli->insert_id = '0'/integer ('0'/integer)
-mysqli->sqlstate = '00000'/%unicode|string% ('00000'/%unicode|string%)
+mysqli->sqlstate = '00000'/string ('00000'/string)
mysqli->stat = 'Uptime: %d Threads: %d Questions: %d Slow queries: %d Opens: %d Flush tables: %d Open tables: %d Queries per second avg: %d.%d'/string ('Uptime: %d Threads: %d Questions: %d Slow queries: %d Opens: %d Flush tables: %d Open tables: %d Queries per second avg: %d.%d'/string)
-mysqli->host_info = '%s'/%unicode|string% ('%s'/%unicode|string%)
+mysqli->host_info = '%s'/string ('%s'/string)
mysqli->info = ''/NULL (''/NULL)
mysqli->thread_id = '%d'/integer ('%d'/integer)
mysqli->protocol_version = '%d'/integer ('%d'/integer)
-mysqli->server_info = '%s'/%unicode|string% ('%s'/%unicode|string%)
+mysqli->server_info = '%s'/string ('%s'/string)
mysqli->server_version = '%d'/integer ('%d'/integer)
mysqli->warning_count = '0'/integer ('0'/integer)
@@ -313,4 +305,4 @@ setting mysqli->unknown, mysqli_unknown = 'friday'
Access hidden properties for MYSLQI_STATUS_INITIALIZED (TODO documentation):
mysqli->connect_error = ''/NULL (''/NULL)
mysqli->connect_errno = '0'/integer ('0'/integer)
-done! \ No newline at end of file
+done!
diff --git a/ext/mysqli/tests/mysqli_class_mysqli_reflection.phpt b/ext/mysqli/tests/mysqli_class_mysqli_reflection.phpt
index f85d68932b..db1d3444c7 100644
--- a/ext/mysqli/tests/mysqli_class_mysqli_reflection.phpt
+++ b/ext/mysqli/tests/mysqli_class_mysqli_reflection.phpt
@@ -49,7 +49,7 @@ isDestructor: no
isInternal: yes
isUserDefined: no
returnsReference: no
-Modifiers: 8448
+Modifiers: 256
Number of Parameters: 6
Number of Required Parameters: 0
@@ -107,7 +107,7 @@ isDestructor: no
isInternal: yes
isUserDefined: no
returnsReference: no
-Modifiers: 8448
+Modifiers: 256
Number of Parameters: 6
Number of Required Parameters: 0
@@ -657,7 +657,7 @@ isDestructor: no
isInternal: yes
isUserDefined: no
returnsReference: no
-Modifiers: 268435713
+Modifiers: 257
Number of Parameters: 5
Number of Required Parameters: 4
diff --git a/ext/mysqli/tests/mysqli_class_mysqli_result_interface.phpt b/ext/mysqli/tests/mysqli_class_mysqli_result_interface.phpt
index 4381805acd..544a6a3f22 100644
--- a/ext/mysqli/tests/mysqli_class_mysqli_result_interface.phpt
+++ b/ext/mysqli/tests/mysqli_class_mysqli_result_interface.phpt
@@ -187,7 +187,7 @@ mysqli_result->unknown = ''
Constructor:
-Warning: mysqli_result::__construct() expects parameter 2 to be integer, %unicode_string_optional% given in %s on line %d
+Warning: mysqli_result::__construct() expects parameter 2 to be integer, string given in %s on line %d
-Warning: mysqli_result::__construct() expects parameter 1 to be mysqli, %unicode_string_optional% given in %s on line %d
+Warning: mysqli_result::__construct() expects parameter 1 to be mysqli, string given in %s on line %d
done! \ No newline at end of file
diff --git a/ext/mysqli/tests/mysqli_class_mysqli_result_reflection.phpt b/ext/mysqli/tests/mysqli_class_mysqli_result_reflection.phpt
index 95400e43e0..5e65afdb7d 100644
--- a/ext/mysqli/tests/mysqli_class_mysqli_result_reflection.phpt
+++ b/ext/mysqli/tests/mysqli_class_mysqli_result_reflection.phpt
@@ -52,7 +52,7 @@ isDestructor: no
isInternal: yes
isUserDefined: no
returnsReference: no
-Modifiers: 8448
+Modifiers: 256
Number of Parameters: 0
Number of Required Parameters: 0
@@ -68,7 +68,7 @@ isDestructor: no
isInternal: yes
isUserDefined: no
returnsReference: no
-Modifiers: 8448
+Modifiers: 256
Number of Parameters: 0
Number of Required Parameters: 0
@@ -233,7 +233,7 @@ isDestructor: no
isInternal: yes
isUserDefined: no
returnsReference: no
-Modifiers: 268435712
+Modifiers: 256
Number of Parameters: 2
Number of Required Parameters: 0
diff --git a/ext/mysqli/tests/mysqli_class_mysqli_stmt_interface.phpt b/ext/mysqli/tests/mysqli_class_mysqli_stmt_interface.phpt
index acf7379198..fd14154322 100644
--- a/ext/mysqli/tests/mysqli_class_mysqli_stmt_interface.phpt
+++ b/ext/mysqli/tests/mysqli_class_mysqli_stmt_interface.phpt
@@ -194,5 +194,5 @@ stmt->unknown = '13'
Prepare using the constructor:
-Warning: mysqli_stmt::__construct() expects parameter 2 to be %binary_string_optional%, object given in %s on line %d
+Warning: mysqli_stmt::__construct() expects parameter 2 to be string, object given in %s on line %d
done! \ No newline at end of file
diff --git a/ext/mysqli/tests/mysqli_connect.phpt b/ext/mysqli/tests/mysqli_connect.phpt
index e14d88fe71..8b1c923304 100644
--- a/ext/mysqli/tests/mysqli_connect.phpt
+++ b/ext/mysqli/tests/mysqli_connect.phpt
@@ -151,25 +151,25 @@ require_once('skipifconnectfailure.inc');
--EXPECTF--
Warning: mysqli_connect(): (%s/%d): Access denied for user '%s'@'%s' (using password: YES) in %s on line %d
array(1) {
- [%u|b%"testing"]=>
- %unicode|string%(21) "mysqli.default_socket"
+ ["testing"]=>
+ string(21) "mysqli.default_socket"
}
array(1) {
- [%u|b%"testing"]=>
- %unicode|string%(19) "mysqli.default_port"
+ ["testing"]=>
+ string(19) "mysqli.default_port"
}
array(1) {
- [%u|b%"testing"]=>
- %unicode|string%(17) "mysqli.default_pw"
+ ["testing"]=>
+ string(17) "mysqli.default_pw"
}
array(2) {
[0]=>
- %unicode|string%(19) "mysqli.default_user"
- [%u|b%"testing"]=>
- %unicode|string%(19) "mysqli.default_user"
+ string(19) "mysqli.default_user"
+ ["testing"]=>
+ string(19) "mysqli.default_user"
}
array(1) {
[0]=>
- %unicode|string%(19) "mysqli.default_host"
+ string(19) "mysqli.default_host"
}
done! \ No newline at end of file
diff --git a/ext/mysqli/tests/mysqli_connect_oo_defaults.phpt b/ext/mysqli/tests/mysqli_connect_oo_defaults.phpt
index 1855a20314..7f049b052f 100644
--- a/ext/mysqli/tests/mysqli_connect_oo_defaults.phpt
+++ b/ext/mysqli/tests/mysqli_connect_oo_defaults.phpt
@@ -158,23 +158,23 @@ require_once('skipifconnectfailure.inc');
?>
--EXPECTF--
array(1) {
- [%u|b%"testing"]=>
- %unicode|string%(19) "mysqli.default_port"
+ ["testing"]=>
+ string(19) "mysqli.default_port"
}
array(1) {
- [%u|b%"testing"]=>
- %unicode|string%(17) "mysqli.default_pw"
+ ["testing"]=>
+ string(17) "mysqli.default_pw"
}
array(1) {
- [%u|b%"testing"]=>
- %unicode|string%(19) "mysqli.default_user"
+ ["testing"]=>
+ string(19) "mysqli.default_user"
}
array(1) {
- [%u|b%"all_defaults"]=>
- %unicode|string%(13) "have been set"
+ ["all_defaults"]=>
+ string(13) "have been set"
}
array(1) {
- [%u|b%"all_defaults"]=>
- %unicode|string%(13) "have been set"
+ ["all_defaults"]=>
+ string(13) "have been set"
}
done! \ No newline at end of file
diff --git a/ext/mysqli/tests/mysqli_connect_twice.phpt b/ext/mysqli/tests/mysqli_connect_twice.phpt
index a9d5b7ec94..2809a3feda 100644
--- a/ext/mysqli/tests/mysqli_connect_twice.phpt
+++ b/ext/mysqli/tests/mysqli_connect_twice.phpt
@@ -74,11 +74,11 @@ require_once('skipifconnectfailure.inc');
?>
--EXPECTF--
array(1) {
- [%u|b%"it_works"]=>
- %unicode|string%(2) "ok"
+ ["it_works"]=>
+ string(2) "ok"
}
array(1) {
- [%u|b%"syntax"]=>
- %unicode|string%(18) "works also with oo"
+ ["syntax"]=>
+ string(18) "works also with oo"
}
done! \ No newline at end of file
diff --git a/ext/mysqli/tests/mysqli_constants.phpt b/ext/mysqli/tests/mysqli_constants.phpt
index cc5fa9f1c4..42113aef2b 100644
--- a/ext/mysqli/tests/mysqli_constants.phpt
+++ b/ext/mysqli/tests/mysqli_constants.phpt
@@ -20,6 +20,7 @@ require_once('skipifconnectfailure.inc');
'MYSQLI_READ_DEFAULT_FILE' => true,
'MYSQLI_OPT_CONNECT_TIMEOUT' => true,
'MYSQLI_OPT_LOCAL_INFILE' => true,
+ 'MYSQLI_OPT_READ_TIMEOUT' => true,
'MYSQLI_INIT_COMMAND' => true,
'MYSQLI_CLIENT_SSL' => true,
"MYSQLI_CLIENT_COMPRESS" => true,
@@ -199,7 +200,7 @@ require_once('skipifconnectfailure.inc');
}
}
- if (($IS_MYSQLND && version_compare(PHP_VERSION, ' 5.4.12-dev', '>=')) || (!$IS_MYSQLND && ($version > 50610))) {
+ if ($IS_MYSQLND || (!$IS_MYSQLND && ($version > 50610))) {
/* could be that MySQL/libmysql 5.6.9 had the flag already but it was no stable release */
$expected_constants["MYSQLI_OPT_CAN_HANDLE_EXPIRED_PASSWORDS"] = true;
$expected_constants["MYSQLI_CLIENT_CAN_HANDLE_EXPIRED_PASSWORDS"] = true;
diff --git a/ext/mysqli/tests/mysqli_debug_append.phpt b/ext/mysqli/tests/mysqli_debug_append.phpt
index f916995464..fbb0d0a84e 100644
--- a/ext/mysqli/tests/mysqli_debug_append.phpt
+++ b/ext/mysqli/tests/mysqli_debug_append.phpt
@@ -46,7 +46,7 @@ if (!$IS_MYSQLND)
printf("[004] Cannot create trace file to test append mode\n");
} else {
- if (!fwrite($fp, (binary) 'mysqli_debug.phpt test line'))
+ if (!fwrite($fp, 'mysqli_debug.phpt test line'))
printf("[005] Cannot write to trace file.\n");
fclose($fp);
diff --git a/ext/mysqli/tests/mysqli_error_unicode.phpt b/ext/mysqli/tests/mysqli_error_unicode.phpt
index b6fdeacaa8..e6bf1c9bc7 100644
--- a/ext/mysqli/tests/mysqli_error_unicode.phpt
+++ b/ext/mysqli/tests/mysqli_error_unicode.phpt
@@ -24,9 +24,7 @@ require_once('skipifconnectfailure.inc');
$host, $user, $db, $port, $socket);
}
- if (!(version_compare(PHP_VERSION, '6.0', '==') == 1)) {
- mysqli_query($link, "set names utf8");
- }
+ mysqli_query($link, "set names utf8");
$tmp = mysqli_error($link);
if (!is_string($tmp) || ('' !== $tmp))
@@ -44,8 +42,8 @@ require_once('skipifconnectfailure.inc');
print "done!";
?>
--EXPECTF--
-%unicode|string%(%d) "Table 'няма_такава_таблица' doesn't exist"
+string(%d) "Table 'няма_такава_таблица' doesn't exist"
Warning: mysqli_error(): Couldn't fetch mysqli in %s on line %d
NULL
-done! \ No newline at end of file
+done!
diff --git a/ext/mysqli/tests/mysqli_expire_password.phpt b/ext/mysqli/tests/mysqli_expire_password.phpt
index 6ce5eeaacc..272be79f8c 100644
--- a/ext/mysqli/tests/mysqli_expire_password.phpt
+++ b/ext/mysqli/tests/mysqli_expire_password.phpt
@@ -6,10 +6,6 @@ require_once('skipif.inc');
require_once('skipifemb.inc');
require_once('connect.inc');
-if ($IS_MYSQLND && !version_compare(PHP_VERSION, '5.4.12-dev', ">=")) {
- die("SKIP Available in mysqlnd as of PHP 5.4.12-dev");
-}
-
if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
die(sprintf("SKIP Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
$host, $user, $db, $port, $socket));
diff --git a/ext/mysqli/tests/mysqli_explain_metadata.phpt b/ext/mysqli/tests/mysqli_explain_metadata.phpt
index fc1f9dbe49..8f4a7cc8c5 100644
--- a/ext/mysqli/tests/mysqli_explain_metadata.phpt
+++ b/ext/mysqli/tests/mysqli_explain_metadata.phpt
@@ -130,7 +130,8 @@ if (!$IS_MYSQLND)
}
reset($fields);
foreach ($fields_stmt as $fields_stmt_val) {
- list(,$fields_val) = each($fields);
+ $fields_val = current($fields);
+ next($fields);
unset($fields_stmt_val->max_length);
unset($fields_val->max_length);
if ($fields_stmt_val != $fields_val) {
diff --git a/ext/mysqli/tests/mysqli_fetch_all.phpt b/ext/mysqli/tests/mysqli_fetch_all.phpt
index 854b8160f0..dce785af51 100644
--- a/ext/mysqli/tests/mysqli_fetch_all.phpt
+++ b/ext/mysqli/tests/mysqli_fetch_all.phpt
@@ -331,16 +331,16 @@ array(2) {
[0]=>
array(2) {
[0]=>
- %unicode|string%(1) "1"
+ string(1) "1"
[1]=>
- %unicode|string%(1) "a"
+ string(1) "a"
}
[1]=>
array(2) {
[0]=>
- %unicode|string%(1) "2"
+ string(1) "2"
[1]=>
- %unicode|string%(1) "b"
+ string(1) "b"
}
}
[007]
@@ -348,16 +348,16 @@ array(2) {
[0]=>
array(2) {
[0]=>
- %unicode|string%(1) "1"
+ string(1) "1"
[1]=>
- %unicode|string%(1) "a"
+ string(1) "a"
}
[1]=>
array(2) {
[0]=>
- %unicode|string%(1) "2"
+ string(1) "2"
[1]=>
- %unicode|string%(1) "b"
+ string(1) "b"
}
}
[008]
@@ -365,41 +365,41 @@ array(2) {
[0]=>
array(4) {
[0]=>
- %unicode|string%(1) "1"
- [%u|b%"id"]=>
- %unicode|string%(1) "1"
+ string(1) "1"
+ ["id"]=>
+ string(1) "1"
[1]=>
- %unicode|string%(1) "a"
- [%u|b%"label"]=>
- %unicode|string%(1) "a"
+ string(1) "a"
+ ["label"]=>
+ string(1) "a"
}
[1]=>
array(4) {
[0]=>
- %unicode|string%(1) "2"
- [%u|b%"id"]=>
- %unicode|string%(1) "2"
+ string(1) "2"
+ ["id"]=>
+ string(1) "2"
[1]=>
- %unicode|string%(1) "b"
- [%u|b%"label"]=>
- %unicode|string%(1) "b"
+ string(1) "b"
+ ["label"]=>
+ string(1) "b"
}
}
[010]
array(2) {
[0]=>
array(2) {
- [%u|b%"id"]=>
- %unicode|string%(1) "1"
- [%u|b%"label"]=>
- %unicode|string%(1) "a"
+ ["id"]=>
+ string(1) "1"
+ ["label"]=>
+ string(1) "a"
}
[1]=>
array(2) {
- [%u|b%"id"]=>
- %unicode|string%(1) "2"
- [%u|b%"label"]=>
- %unicode|string%(1) "b"
+ ["id"]=>
+ string(1) "2"
+ ["label"]=>
+ string(1) "b"
}
}
[011]
@@ -409,17 +409,17 @@ array(0) {
array(2) {
[0]=>
array(2) {
- [%u|b%"id"]=>
- %unicode|string%(1) "1"
- [%u|b%"label"]=>
- %unicode|string%(1) "a"
+ ["id"]=>
+ string(1) "1"
+ ["label"]=>
+ string(1) "a"
}
[1]=>
array(2) {
- [%u|b%"id"]=>
- %unicode|string%(1) "2"
- [%u|b%"label"]=>
- %unicode|string%(1) "b"
+ ["id"]=>
+ string(1) "2"
+ ["label"]=>
+ string(1) "b"
}
}
[016]
@@ -430,27 +430,27 @@ array(1) {
[0]=>
array(11) {
[0]=>
- %unicode|string%(1) "1"
- [%u|b%"a"]=>
- %unicode|string%(1) "2"
+ string(1) "1"
+ ["a"]=>
+ string(1) "2"
[1]=>
- %unicode|string%(1) "2"
+ string(1) "2"
[2]=>
- %unicode|string%(1) "3"
- [%u|b%"c"]=>
- %unicode|string%(1) "3"
+ string(1) "3"
+ ["c"]=>
+ string(1) "3"
[3]=>
- %unicode|string%(1) "4"
- [%u|b%"C"]=>
- %unicode|string%(1) "4"
+ string(1) "4"
+ ["C"]=>
+ string(1) "4"
[4]=>
NULL
- [%u|b%"d"]=>
+ ["d"]=>
NULL
[5]=>
- %unicode|string%(1) "1"
- [%u|b%"e"]=>
- %unicode|string%(1) "1"
+ string(1) "1"
+ ["e"]=>
+ string(1) "1"
}
}
diff --git a/ext/mysqli/tests/mysqli_fetch_all_oo.phpt b/ext/mysqli/tests/mysqli_fetch_all_oo.phpt
index 575f953969..450c67ecd9 100644
--- a/ext/mysqli/tests/mysqli_fetch_all_oo.phpt
+++ b/ext/mysqli/tests/mysqli_fetch_all_oo.phpt
@@ -313,16 +313,16 @@ array(2) {
[0]=>
array(2) {
[0]=>
- %unicode|string%(1) "1"
+ string(1) "1"
[1]=>
- %unicode|string%(1) "a"
+ string(1) "a"
}
[1]=>
array(2) {
[0]=>
- %unicode|string%(1) "2"
+ string(1) "2"
[1]=>
- %unicode|string%(1) "b"
+ string(1) "b"
}
}
[007]
@@ -330,16 +330,16 @@ array(2) {
[0]=>
array(2) {
[0]=>
- %unicode|string%(1) "1"
+ string(1) "1"
[1]=>
- %unicode|string%(1) "a"
+ string(1) "a"
}
[1]=>
array(2) {
[0]=>
- %unicode|string%(1) "2"
+ string(1) "2"
[1]=>
- %unicode|string%(1) "b"
+ string(1) "b"
}
}
[008]
@@ -347,41 +347,41 @@ array(2) {
[0]=>
array(4) {
[0]=>
- %unicode|string%(1) "1"
- [%u|b%"id"]=>
- %unicode|string%(1) "1"
+ string(1) "1"
+ ["id"]=>
+ string(1) "1"
[1]=>
- %unicode|string%(1) "a"
- [%u|b%"label"]=>
- %unicode|string%(1) "a"
+ string(1) "a"
+ ["label"]=>
+ string(1) "a"
}
[1]=>
array(4) {
[0]=>
- %unicode|string%(1) "2"
- [%u|b%"id"]=>
- %unicode|string%(1) "2"
+ string(1) "2"
+ ["id"]=>
+ string(1) "2"
[1]=>
- %unicode|string%(1) "b"
- [%u|b%"label"]=>
- %unicode|string%(1) "b"
+ string(1) "b"
+ ["label"]=>
+ string(1) "b"
}
}
[010]
array(2) {
[0]=>
array(2) {
- [%u|b%"id"]=>
- %unicode|string%(1) "1"
- [%u|b%"label"]=>
- %unicode|string%(1) "a"
+ ["id"]=>
+ string(1) "1"
+ ["label"]=>
+ string(1) "a"
}
[1]=>
array(2) {
- [%u|b%"id"]=>
- %unicode|string%(1) "2"
- [%u|b%"label"]=>
- %unicode|string%(1) "b"
+ ["id"]=>
+ string(1) "2"
+ ["label"]=>
+ string(1) "b"
}
}
[011]
@@ -390,17 +390,17 @@ NULL
array(2) {
[0]=>
array(2) {
- [%u|b%"id"]=>
- %unicode|string%(1) "1"
- [%u|b%"label"]=>
- %unicode|string%(1) "a"
+ ["id"]=>
+ string(1) "1"
+ ["label"]=>
+ string(1) "a"
}
[1]=>
array(2) {
- [%u|b%"id"]=>
- %unicode|string%(1) "2"
- [%u|b%"label"]=>
- %unicode|string%(1) "b"
+ ["id"]=>
+ string(1) "2"
+ ["label"]=>
+ string(1) "b"
}
}
[016]
@@ -410,27 +410,27 @@ array(1) {
[0]=>
array(11) {
[0]=>
- %unicode|string%(1) "1"
- [%u|b%"a"]=>
- %unicode|string%(1) "2"
+ string(1) "1"
+ ["a"]=>
+ string(1) "2"
[1]=>
- %unicode|string%(1) "2"
+ string(1) "2"
[2]=>
- %unicode|string%(1) "3"
- [%u|b%"c"]=>
- %unicode|string%(1) "3"
+ string(1) "3"
+ ["c"]=>
+ string(1) "3"
[3]=>
- %unicode|string%(1) "4"
- [%u|b%"C"]=>
- %unicode|string%(1) "4"
+ string(1) "4"
+ ["C"]=>
+ string(1) "4"
[4]=>
NULL
- [%u|b%"d"]=>
+ ["d"]=>
NULL
[5]=>
- %unicode|string%(1) "1"
- [%u|b%"e"]=>
- %unicode|string%(1) "1"
+ string(1) "1"
+ ["e"]=>
+ string(1) "1"
}
}
diff --git a/ext/mysqli/tests/mysqli_fetch_array.phpt b/ext/mysqli/tests/mysqli_fetch_array.phpt
index aa19ff6eb3..e232898c7b 100644
--- a/ext/mysqli/tests/mysqli_fetch_array.phpt
+++ b/ext/mysqli/tests/mysqli_fetch_array.phpt
@@ -296,74 +296,74 @@ require_once('skipifconnectfailure.inc');
[005]
array(4) {
[0]=>
- %unicode|string%(1) "1"
- [%u|b%"id"]=>
- %unicode|string%(1) "1"
+ string(1) "1"
+ ["id"]=>
+ string(1) "1"
[1]=>
- %unicode|string%(1) "a"
- [%u|b%"label"]=>
- %unicode|string%(1) "a"
+ string(1) "a"
+ ["label"]=>
+ string(1) "a"
}
[006]
array(2) {
[0]=>
- %unicode|string%(1) "2"
+ string(1) "2"
[1]=>
- %unicode|string%(1) "b"
+ string(1) "b"
}
[007]
array(4) {
[0]=>
- %unicode|string%(1) "3"
- [%u|b%"id"]=>
- %unicode|string%(1) "3"
+ string(1) "3"
+ ["id"]=>
+ string(1) "3"
[1]=>
- %unicode|string%(1) "c"
- [%u|b%"label"]=>
- %unicode|string%(1) "c"
+ string(1) "c"
+ ["label"]=>
+ string(1) "c"
}
[008]
array(2) {
- [%u|b%"id"]=>
- %unicode|string%(1) "4"
- [%u|b%"label"]=>
- %unicode|string%(1) "d"
+ ["id"]=>
+ string(1) "4"
+ ["label"]=>
+ string(1) "d"
}
[009]
array(4) {
[0]=>
- %unicode|string%(1) "5"
- [%u|b%"id"]=>
- %unicode|string%(1) "5"
+ string(1) "5"
+ ["id"]=>
+ string(1) "5"
[1]=>
- %unicode|string%(1) "e"
- [%u|b%"label"]=>
- %unicode|string%(1) "e"
+ string(1) "e"
+ ["label"]=>
+ string(1) "e"
}
[011]
array(11) {
[0]=>
- %unicode|string%(1) "1"
- [%u|b%"a"]=>
- %unicode|string%(1) "2"
+ string(1) "1"
+ ["a"]=>
+ string(1) "2"
[1]=>
- %unicode|string%(1) "2"
+ string(1) "2"
[2]=>
- %unicode|string%(1) "3"
- [%u|b%"c"]=>
- %unicode|string%(1) "3"
+ string(1) "3"
+ ["c"]=>
+ string(1) "3"
[3]=>
- %unicode|string%(1) "4"
- [%u|b%"C"]=>
- %unicode|string%(1) "4"
+ string(1) "4"
+ ["C"]=>
+ string(1) "4"
[4]=>
NULL
- [%u|b%"d"]=>
+ ["d"]=>
NULL
[5]=>
- %unicode|string%(1) "1"
- [%u|b%"e"]=>
- %unicode|string%(1) "1"
+ string(1) "1"
+ ["e"]=>
+ string(1) "1"
}
Warning: mysqli_fetch_array(): The result type should be either MYSQLI_NUM, MYSQLI_ASSOC or MYSQLI_BOTH in %s on line %d
diff --git a/ext/mysqli/tests/mysqli_fetch_array_assoc.phpt b/ext/mysqli/tests/mysqli_fetch_array_assoc.phpt
index 957ca12de9..2fb8281939 100644
--- a/ext/mysqli/tests/mysqli_fetch_array_assoc.phpt
+++ b/ext/mysqli/tests/mysqli_fetch_array_assoc.phpt
@@ -34,16 +34,16 @@ require_once('skipifconnectfailure.inc');
--EXPECTF--
[002]
array(2) {
- [%u|b%"id"]=>
- %unicode|string%(1) "1"
- [%u|b%"label"]=>
- %unicode|string%(1) "a"
+ ["id"]=>
+ string(1) "1"
+ ["label"]=>
+ string(1) "a"
}
[004]
array(2) {
- [%u|b%"id"]=>
- %unicode|string%(1) "1"
- [%u|b%"label"]=>
- %unicode|string%(1) "a"
+ ["id"]=>
+ string(1) "1"
+ ["label"]=>
+ string(1) "a"
}
done! \ No newline at end of file
diff --git a/ext/mysqli/tests/mysqli_fetch_array_oo.phpt b/ext/mysqli/tests/mysqli_fetch_array_oo.phpt
index 21d78ae6fb..0fb1a72e93 100644
--- a/ext/mysqli/tests/mysqli_fetch_array_oo.phpt
+++ b/ext/mysqli/tests/mysqli_fetch_array_oo.phpt
@@ -284,74 +284,74 @@ require_once('skipifconnectfailure.inc');
[005]
array(4) {
[0]=>
- %unicode|string%(1) "1"
- [%u|b%"id"]=>
- %unicode|string%(1) "1"
+ string(1) "1"
+ ["id"]=>
+ string(1) "1"
[1]=>
- %unicode|string%(1) "a"
- [%u|b%"label"]=>
- %unicode|string%(1) "a"
+ string(1) "a"
+ ["label"]=>
+ string(1) "a"
}
[006]
array(2) {
[0]=>
- %unicode|string%(1) "2"
+ string(1) "2"
[1]=>
- %unicode|string%(1) "b"
+ string(1) "b"
}
[007]
array(4) {
[0]=>
- %unicode|string%(1) "3"
- [%u|b%"id"]=>
- %unicode|string%(1) "3"
+ string(1) "3"
+ ["id"]=>
+ string(1) "3"
[1]=>
- %unicode|string%(1) "c"
- [%u|b%"label"]=>
- %unicode|string%(1) "c"
+ string(1) "c"
+ ["label"]=>
+ string(1) "c"
}
[008]
array(2) {
- [%u|b%"id"]=>
- %unicode|string%(1) "4"
- [%u|b%"label"]=>
- %unicode|string%(1) "d"
+ ["id"]=>
+ string(1) "4"
+ ["label"]=>
+ string(1) "d"
}
[009]
array(4) {
[0]=>
- %unicode|string%(1) "5"
- [%u|b%"id"]=>
- %unicode|string%(1) "5"
+ string(1) "5"
+ ["id"]=>
+ string(1) "5"
[1]=>
- %unicode|string%(1) "e"
- [%u|b%"label"]=>
- %unicode|string%(1) "e"
+ string(1) "e"
+ ["label"]=>
+ string(1) "e"
}
[011]
array(11) {
[0]=>
- %unicode|string%(1) "1"
- [%u|b%"a"]=>
- %unicode|string%(1) "2"
+ string(1) "1"
+ ["a"]=>
+ string(1) "2"
[1]=>
- %unicode|string%(1) "2"
+ string(1) "2"
[2]=>
- %unicode|string%(1) "3"
- [%u|b%"c"]=>
- %unicode|string%(1) "3"
+ string(1) "3"
+ ["c"]=>
+ string(1) "3"
[3]=>
- %unicode|string%(1) "4"
- [%u|b%"C"]=>
- %unicode|string%(1) "4"
+ string(1) "4"
+ ["C"]=>
+ string(1) "4"
[4]=>
NULL
- [%u|b%"d"]=>
+ ["d"]=>
NULL
[5]=>
- %unicode|string%(1) "1"
- [%u|b%"e"]=>
- %unicode|string%(1) "1"
+ string(1) "1"
+ ["e"]=>
+ string(1) "1"
}
Warning: mysqli_result::fetch_array(): The result type should be either MYSQLI_NUM, MYSQLI_ASSOC or MYSQLI_BOTH in %s on line %d
diff --git a/ext/mysqli/tests/mysqli_fetch_assoc.phpt b/ext/mysqli/tests/mysqli_fetch_assoc.phpt
index edf143b726..0d721fd5c6 100644
--- a/ext/mysqli/tests/mysqli_fetch_assoc.phpt
+++ b/ext/mysqli/tests/mysqli_fetch_assoc.phpt
@@ -74,45 +74,45 @@ require_once('skipifconnectfailure.inc');
--EXPECTF--
[005]
array(2) {
- [%u|b%"id"]=>
- %unicode|string%(1) "1"
- [%u|b%"label"]=>
- %unicode|string%(1) "a"
+ ["id"]=>
+ string(1) "1"
+ ["label"]=>
+ string(1) "a"
}
[006]
NULL
[008]
array(15) {
- [%u|b%"a"]=>
- %unicode|string%(1) "2"
- [%u|b%"c"]=>
- %unicode|string%(1) "3"
- [%u|b%"C"]=>
- %unicode|string%(1) "4"
- [%u|b%"d"]=>
+ ["a"]=>
+ string(1) "2"
+ ["c"]=>
+ string(1) "3"
+ ["C"]=>
+ string(1) "4"
+ ["d"]=>
NULL
- [%u|b%"e"]=>
- %unicode|string%(1) "1"
+ ["e"]=>
+ string(1) "1"
[-1]=>
- %unicode|string%(1) "5"
+ string(1) "5"
[-10]=>
- %unicode|string%(1) "6"
+ string(1) "6"
[-100]=>
- %unicode|string%(1) "7"
+ string(1) "7"
[-1000]=>
- %unicode|string%(1) "8"
+ string(1) "8"
[10000]=>
- %unicode|string%(1) "9"
+ string(1) "9"
[100000]=>
- %unicode|string%(1) "a"
+ string(1) "a"
[1000000]=>
- %unicode|string%(1) "b"
+ string(1) "b"
[9]=>
- %unicode|string%(1) "d"
- [%u|b%"01"]=>
- %unicode|string%(1) "e"
- [%u|b%"-02"]=>
- %unicode|string%(1) "f"
+ string(1) "d"
+ ["01"]=>
+ string(1) "e"
+ ["-02"]=>
+ string(1) "f"
}
Warning: mysqli_fetch_assoc(): Couldn't fetch mysqli_result in %s on line %d
diff --git a/ext/mysqli/tests/mysqli_fetch_assoc_no_alias.phpt b/ext/mysqli/tests/mysqli_fetch_assoc_no_alias.phpt
index a273b73aa9..e09e8b2cc3 100644
--- a/ext/mysqli/tests/mysqli_fetch_assoc_no_alias.phpt
+++ b/ext/mysqli/tests/mysqli_fetch_assoc_no_alias.phpt
@@ -86,57 +86,57 @@ require_once('skipifconnectfailure.inc');
[002]
array(2) {
[1]=>
- %unicode|string%(1) "1"
+ string(1) "1"
[2]=>
- %unicode|string%(1) "2"
+ string(1) "2"
}
[004]
array(2) {
- [%u|b%"a"]=>
- %unicode|string%(1) "1"
+ ["a"]=>
+ string(1) "1"
[2]=>
- %unicode|string%(1) "2"
+ string(1) "2"
}
[006]
array(2) {
- [%u|b%"a"]=>
- %unicode|string%(1) "1"
+ ["a"]=>
+ string(1) "1"
[2]=>
- %unicode|string%(1) "2"
+ string(1) "2"
}
[008]
array(2) {
- [%u|b%"a"]=>
- %unicode|string%(1) "1"
+ ["a"]=>
+ string(1) "1"
[2]=>
- %unicode|string%(1) "2"
+ string(1) "2"
}
[011]
array(2) {
[1]=>
- %unicode|string%(1) "1"
+ string(1) "1"
[2]=>
- %unicode|string%(1) "2"
+ string(1) "2"
}
[014]
array(2) {
- [%u|b%"a"]=>
+ ["a"]=>
%s(1) "1"
[2]=>
%s(1) "2"
}
[017]
array(2) {
- [%u|b%"a"]=>
- %unicode|string%(1) "1"
+ ["a"]=>
+ string(1) "1"
[2]=>
- %unicode|string%(1) "2"
+ string(1) "2"
}
[017]
array(2) {
- [%u|b%"a"]=>
- %unicode|string%(1) "1"
+ ["a"]=>
+ string(1) "1"
[2]=>
- %unicode|string%(1) "2"
+ string(1) "2"
}
done! \ No newline at end of file
diff --git a/ext/mysqli/tests/mysqli_fetch_assoc_no_alias_utf8.phpt b/ext/mysqli/tests/mysqli_fetch_assoc_no_alias_utf8.phpt
index ac2e7c0001..22aee90c49 100644
--- a/ext/mysqli/tests/mysqli_fetch_assoc_no_alias_utf8.phpt
+++ b/ext/mysqli/tests/mysqli_fetch_assoc_no_alias_utf8.phpt
@@ -81,84 +81,84 @@ mysqli_fetch_assoc() - utf8
--EXPECTF--
[003]
array(3) {
- [%u|b%"Андрей Христов"]=>
- %unicode|string%(%r[1|3]%r) "1"
- [%u|b%"Улф Вендел"]=>
- %unicode|string%(1) "2"
- [%u|b%"Георг Рихтер"]=>
- %unicode|string%(1) "3"
+ ["Андрей Христов"]=>
+ string(%r[1|3]%r) "1"
+ ["Улф Вендел"]=>
+ string(1) "2"
+ ["Георг Рихтер"]=>
+ string(1) "3"
}
[009]
array(3) {
- [%u|b%"id"]=>
- %unicode|string%(1) "4"
- [%u|b%"име"]=>
- %unicode|string%(6) "Andrey"
- [%u|b%"фамилия"]=>
- %unicode|string%(7) "Hristov"
+ ["id"]=>
+ string(1) "4"
+ ["име"]=>
+ string(6) "Andrey"
+ ["фамилия"]=>
+ string(7) "Hristov"
}
array(3) {
- [%u|b%"id"]=>
- %unicode|string%(1) "7"
- [%u|b%"име"]=>
- %unicode|string%(9) "安德烈"
- [%u|b%"фамилия"]=>
- %unicode|string%(7) "Hristov"
+ ["id"]=>
+ string(1) "7"
+ ["име"]=>
+ string(9) "安德烈"
+ ["фамилия"]=>
+ string(7) "Hristov"
}
array(3) {
- [%u|b%"id"]=>
- %unicode|string%(1) "5"
- [%u|b%"име"]=>
- %unicode|string%(5) "Georg"
- [%u|b%"фамилия"]=>
- %unicode|string%(7) "Richter"
+ ["id"]=>
+ string(1) "5"
+ ["име"]=>
+ string(5) "Georg"
+ ["фамилия"]=>
+ string(7) "Richter"
}
array(3) {
- [%u|b%"id"]=>
- %unicode|string%(1) "8"
- [%u|b%"име"]=>
- %unicode|string%(9) "格奥尔"
- [%u|b%"фамилия"]=>
- %unicode|string%(7) "Richter"
+ ["id"]=>
+ string(1) "8"
+ ["име"]=>
+ string(9) "格奥尔"
+ ["фамилия"]=>
+ string(7) "Richter"
}
array(3) {
- [%u|b%"id"]=>
- %unicode|string%(1) "6"
- [%u|b%"име"]=>
- %unicode|string%(3) "Ulf"
- [%u|b%"фамилия"]=>
- %unicode|string%(6) "Wendel"
+ ["id"]=>
+ string(1) "6"
+ ["име"]=>
+ string(3) "Ulf"
+ ["фамилия"]=>
+ string(6) "Wendel"
}
array(3) {
- [%u|b%"id"]=>
- %unicode|string%(1) "9"
- [%u|b%"име"]=>
- %unicode|string%(9) "乌尔夫"
- [%u|b%"фамилия"]=>
- %unicode|string%(6) "Wendel"
+ ["id"]=>
+ string(1) "9"
+ ["име"]=>
+ string(9) "乌尔夫"
+ ["фамилия"]=>
+ string(6) "Wendel"
}
array(3) {
- [%u|b%"id"]=>
- %unicode|string%(1) "3"
- [%u|b%"име"]=>
- %unicode|string%(6) "Улф"
- [%u|b%"фамилия"]=>
- %unicode|string%(12) "Вендел"
+ ["id"]=>
+ string(1) "3"
+ ["име"]=>
+ string(6) "Улф"
+ ["фамилия"]=>
+ string(12) "Вендел"
}
array(3) {
- [%u|b%"id"]=>
- %unicode|string%(1) "2"
- [%u|b%"име"]=>
- %unicode|string%(10) "Георг"
- [%u|b%"фамилия"]=>
- %unicode|string%(12) "Рихтер"
+ ["id"]=>
+ string(1) "2"
+ ["име"]=>
+ string(10) "Георг"
+ ["фамилия"]=>
+ string(12) "Рихтер"
}
array(3) {
- [%u|b%"id"]=>
- %unicode|string%(1) "1"
- [%u|b%"име"]=>
- %unicode|string%(12) "Андрей"
- [%u|b%"фамилия"]=>
- %unicode|string%(14) "Христов"
+ ["id"]=>
+ string(1) "1"
+ ["име"]=>
+ string(12) "Андрей"
+ ["фамилия"]=>
+ string(14) "Христов"
}
done! \ No newline at end of file
diff --git a/ext/mysqli/tests/mysqli_fetch_assoc_oo.phpt b/ext/mysqli/tests/mysqli_fetch_assoc_oo.phpt
index 8a71fa740c..026252b504 100644
--- a/ext/mysqli/tests/mysqli_fetch_assoc_oo.phpt
+++ b/ext/mysqli/tests/mysqli_fetch_assoc_oo.phpt
@@ -61,25 +61,25 @@ require_once('skipifconnectfailure.inc');
--EXPECTF--
[005]
array(2) {
- [%u|b%"id"]=>
- %unicode|string%(1) "1"
- [%u|b%"label"]=>
- %unicode|string%(1) "a"
+ ["id"]=>
+ string(1) "1"
+ ["label"]=>
+ string(1) "a"
}
[006]
NULL
[008]
array(5) {
- [%u|b%"a"]=>
- %unicode|string%(1) "2"
- [%u|b%"c"]=>
- %unicode|string%(1) "3"
- [%u|b%"C"]=>
- %unicode|string%(1) "4"
- [%u|b%"d"]=>
+ ["a"]=>
+ string(1) "2"
+ ["c"]=>
+ string(1) "3"
+ ["C"]=>
+ string(1) "4"
+ ["d"]=>
NULL
- [%u|b%"e"]=>
- %unicode|string%(1) "1"
+ ["e"]=>
+ string(1) "1"
}
Warning: mysqli_result::fetch_assoc(): Couldn't fetch mysqli_result in %s on line %d
diff --git a/ext/mysqli/tests/mysqli_fetch_field.phpt b/ext/mysqli/tests/mysqli_fetch_field.phpt
index 2b9108072b..f1d6db0599 100644
--- a/ext/mysqli/tests/mysqli_fetch_field.phpt
+++ b/ext/mysqli/tests/mysqli_fetch_field.phpt
@@ -88,94 +88,94 @@ require_once('skipifconnectfailure.inc');
?>
--EXPECTF--
object(stdClass)#%d (13) {
- [%u|b%"name"]=>
- %unicode|string%(2) "ID"
- [%u|b%"orgname"]=>
- %unicode|string%(2) "id"
- [%u|b%"table"]=>
- %unicode|string%(4) "TEST"
- [%u|b%"orgtable"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"def"]=>
- %unicode|string%(0) ""
- [%u|b%"db"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"catalog"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"max_length"]=>
+ ["name"]=>
+ string(2) "ID"
+ ["orgname"]=>
+ string(2) "id"
+ ["table"]=>
+ string(4) "TEST"
+ ["orgtable"]=>
+ string(%d) "%s"
+ ["def"]=>
+ string(0) ""
+ ["db"]=>
+ string(%d) "%s"
+ ["catalog"]=>
+ string(%d) "%s"
+ ["max_length"]=>
int(1)
- [%u|b%"length"]=>
+ ["length"]=>
int(11)
- [%u|b%"charsetnr"]=>
+ ["charsetnr"]=>
int(63)
- [%u|b%"flags"]=>
+ ["flags"]=>
int(49155)
- [%u|b%"type"]=>
+ ["type"]=>
int(3)
- [%u|b%"decimals"]=>
+ ["decimals"]=>
int(0)
}
object(stdClass)#%d (13) {
- [%u|b%"name"]=>
- %unicode|string%(5) "label"
- [%u|b%"orgname"]=>
- %unicode|string%(5) "label"
- [%u|b%"table"]=>
- %unicode|string%(4) "TEST"
- [%u|b%"orgtable"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"def"]=>
- %unicode|string%(0) ""
- [%u|b%"db"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"catalog"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"max_length"]=>
+ ["name"]=>
+ string(5) "label"
+ ["orgname"]=>
+ string(5) "label"
+ ["table"]=>
+ string(4) "TEST"
+ ["orgtable"]=>
+ string(%d) "%s"
+ ["def"]=>
+ string(0) ""
+ ["db"]=>
+ string(%d) "%s"
+ ["catalog"]=>
+ string(%d) "%s"
+ ["max_length"]=>
int(%d)
- [%u|b%"length"]=>
+ ["length"]=>
int(%d)
- [%u|b%"charsetnr"]=>
+ ["charsetnr"]=>
int(%d)
- [%u|b%"flags"]=>
+ ["flags"]=>
int(0)
- [%u|b%"type"]=>
+ ["type"]=>
int(254)
- [%u|b%"decimals"]=>
+ ["decimals"]=>
int(0)
}
bool(false)
Warning: mysqli_fetch_field(): Couldn't fetch mysqli_result in %s on line %d
array(1) {
- [%u|b%"_default_test"]=>
- %unicode|string%(1) "2"
+ ["_default_test"]=>
+ string(1) "2"
}
object(stdClass)#%d (13) {
- [%u|b%"name"]=>
- %unicode|string%(13) "_default_test"
- [%u|b%"orgname"]=>
- %unicode|string%(2) "id"
- [%u|b%"table"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"orgtable"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"def"]=>
- %unicode|string%(0) ""
- [%u|b%"db"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"catalog"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"max_length"]=>
+ ["name"]=>
+ string(13) "_default_test"
+ ["orgname"]=>
+ string(2) "id"
+ ["table"]=>
+ string(%d) "%s"
+ ["orgtable"]=>
+ string(%d) "%s"
+ ["def"]=>
+ string(0) ""
+ ["db"]=>
+ string(%d) "%s"
+ ["catalog"]=>
+ string(%d) "%s"
+ ["max_length"]=>
int(1)
- [%u|b%"length"]=>
+ ["length"]=>
int(11)
- [%u|b%"charsetnr"]=>
+ ["charsetnr"]=>
int(63)
- [%u|b%"flags"]=>
+ ["flags"]=>
int(32769)
- [%u|b%"type"]=>
+ ["type"]=>
int(3)
- [%u|b%"decimals"]=>
+ ["decimals"]=>
int(0)
}
done!
diff --git a/ext/mysqli/tests/mysqli_fetch_field_direct.phpt b/ext/mysqli/tests/mysqli_fetch_field_direct.phpt
index fb34e44a6a..d17eb7506f 100644
--- a/ext/mysqli/tests/mysqli_fetch_field_direct.phpt
+++ b/ext/mysqli/tests/mysqli_fetch_field_direct.phpt
@@ -48,31 +48,31 @@ require_once('skipifconnectfailure.inc');
Warning: mysqli_fetch_field_direct(): Field offset is invalid for resultset in %s on line %d
bool(false)
object(stdClass)#%d (13) {
- [%u|b%"name"]=>
- %unicode|string%(2) "ID"
- [%u|b%"orgname"]=>
- %unicode|string%(2) "id"
- [%u|b%"table"]=>
- %unicode|string%(4) "TEST"
- [%u|b%"orgtable"]=>
- %unicode|string%(4) "test"
- [%u|b%"def"]=>
- %unicode|string%(0) ""
- [%u|b%"db"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"catalog"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"max_length"]=>
+ ["name"]=>
+ string(2) "ID"
+ ["orgname"]=>
+ string(2) "id"
+ ["table"]=>
+ string(4) "TEST"
+ ["orgtable"]=>
+ string(4) "test"
+ ["def"]=>
+ string(0) ""
+ ["db"]=>
+ string(%d) "%s"
+ ["catalog"]=>
+ string(%d) "%s"
+ ["max_length"]=>
int(%d)
- [%u|b%"length"]=>
+ ["length"]=>
int(%d)
- [%u|b%"charsetnr"]=>
+ ["charsetnr"]=>
int(%d)
- [%u|b%"flags"]=>
+ ["flags"]=>
int(%d)
- [%u|b%"type"]=>
+ ["type"]=>
int(%d)
- [%u|b%"decimals"]=>
+ ["decimals"]=>
int(%d)
}
diff --git a/ext/mysqli/tests/mysqli_fetch_field_direct_oo.phpt b/ext/mysqli/tests/mysqli_fetch_field_direct_oo.phpt
index 9d511aa900..4ac84d580a 100644
--- a/ext/mysqli/tests/mysqli_fetch_field_direct_oo.phpt
+++ b/ext/mysqli/tests/mysqli_fetch_field_direct_oo.phpt
@@ -57,31 +57,31 @@ require_once('skipifconnectfailure.inc');
Warning: mysqli_result::fetch_field_direct(): Field offset is invalid for resultset in %s on line %d
bool(false)
object(stdClass)#%d (13) {
- [%u|b%"name"]=>
- %unicode|string%(2) "ID"
- [%u|b%"orgname"]=>
- %unicode|string%(2) "id"
- [%u|b%"table"]=>
- %unicode|string%(4) "TEST"
- [%u|b%"orgtable"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"def"]=>
- %unicode|string%(0) ""
- [%u|b%"db"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"catalog"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"max_length"]=>
+ ["name"]=>
+ string(2) "ID"
+ ["orgname"]=>
+ string(2) "id"
+ ["table"]=>
+ string(4) "TEST"
+ ["orgtable"]=>
+ string(%d) "%s"
+ ["def"]=>
+ string(0) ""
+ ["db"]=>
+ string(%d) "%s"
+ ["catalog"]=>
+ string(%d) "%s"
+ ["max_length"]=>
int(%d)
- [%u|b%"length"]=>
+ ["length"]=>
int(11)
- [%u|b%"charsetnr"]=>
+ ["charsetnr"]=>
int(%d)
- [%u|b%"flags"]=>
+ ["flags"]=>
int(%d)
- [%u|b%"type"]=>
+ ["type"]=>
int(%d)
- [%u|b%"decimals"]=>
+ ["decimals"]=>
int(%d)
}
diff --git a/ext/mysqli/tests/mysqli_fetch_field_oo.phpt b/ext/mysqli/tests/mysqli_fetch_field_oo.phpt
index 8c5609b163..039d2b4e31 100644
--- a/ext/mysqli/tests/mysqli_fetch_field_oo.phpt
+++ b/ext/mysqli/tests/mysqli_fetch_field_oo.phpt
@@ -71,59 +71,59 @@ require_once('skipifconnectfailure.inc');
?>
--EXPECTF--
object(stdClass)#%d (13) {
- [%u|b%"name"]=>
- %unicode|string%(2) "ID"
- [%u|b%"orgname"]=>
- %unicode|string%(2) "id"
- [%u|b%"table"]=>
- %unicode|string%(4) "TEST"
- [%u|b%"orgtable"]=>
- %unicode|string%(4) "test"
- [%u|b%"def"]=>
- %unicode|string%(0) ""
- [%u|b%"db"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"catalog"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"max_length"]=>
+ ["name"]=>
+ string(2) "ID"
+ ["orgname"]=>
+ string(2) "id"
+ ["table"]=>
+ string(4) "TEST"
+ ["orgtable"]=>
+ string(4) "test"
+ ["def"]=>
+ string(0) ""
+ ["db"]=>
+ string(%d) "%s"
+ ["catalog"]=>
+ string(%d) "%s"
+ ["max_length"]=>
int(1)
- [%u|b%"length"]=>
+ ["length"]=>
int(11)
- [%u|b%"charsetnr"]=>
+ ["charsetnr"]=>
int(63)
- [%u|b%"flags"]=>
+ ["flags"]=>
int(49155)
- [%u|b%"type"]=>
+ ["type"]=>
int(3)
- [%u|b%"decimals"]=>
+ ["decimals"]=>
int(0)
}
object(stdClass)#%d (13) {
- [%u|b%"name"]=>
- %unicode|string%(5) "label"
- [%u|b%"orgname"]=>
- %unicode|string%(5) "label"
- [%u|b%"table"]=>
- %unicode|string%(4) "TEST"
- [%u|b%"orgtable"]=>
- %unicode|string%(4) "test"
- [%u|b%"def"]=>
- %unicode|string%(0) ""
- [%u|b%"db"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"catalog"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"max_length"]=>
+ ["name"]=>
+ string(5) "label"
+ ["orgname"]=>
+ string(5) "label"
+ ["table"]=>
+ string(4) "TEST"
+ ["orgtable"]=>
+ string(4) "test"
+ ["def"]=>
+ string(0) ""
+ ["db"]=>
+ string(%d) "%s"
+ ["catalog"]=>
+ string(%d) "%s"
+ ["max_length"]=>
int(%d)
- [%u|b%"length"]=>
+ ["length"]=>
int(%d)
- [%u|b%"charsetnr"]=>
+ ["charsetnr"]=>
int(%d)
- [%u|b%"flags"]=>
+ ["flags"]=>
int(0)
- [%u|b%"type"]=>
+ ["type"]=>
int(254)
- [%u|b%"decimals"]=>
+ ["decimals"]=>
int(0)
}
bool(false)
diff --git a/ext/mysqli/tests/mysqli_fetch_fields.phpt b/ext/mysqli/tests/mysqli_fetch_fields.phpt
index 6b66d6f231..854af23302 100644
--- a/ext/mysqli/tests/mysqli_fetch_fields.phpt
+++ b/ext/mysqli/tests/mysqli_fetch_fields.phpt
@@ -67,59 +67,59 @@ require_once('skipifconnectfailure.inc');
?>
--EXPECTF--
object(stdClass)#%d (13) {
- [%u|b%"name"]=>
- %unicode|string%(2) "ID"
- [%u|b%"orgname"]=>
- %unicode|string%(2) "id"
- [%u|b%"table"]=>
- %unicode|string%(4) "TEST"
- [%u|b%"orgtable"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"def"]=>
- %unicode|string%(0) ""
- [%u|b%"db"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"catalog"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"max_length"]=>
+ ["name"]=>
+ string(2) "ID"
+ ["orgname"]=>
+ string(2) "id"
+ ["table"]=>
+ string(4) "TEST"
+ ["orgtable"]=>
+ string(%d) "%s"
+ ["def"]=>
+ string(0) ""
+ ["db"]=>
+ string(%d) "%s"
+ ["catalog"]=>
+ string(%d) "%s"
+ ["max_length"]=>
int(1)
- [%u|b%"length"]=>
+ ["length"]=>
int(11)
- [%u|b%"charsetnr"]=>
+ ["charsetnr"]=>
int(63)
- [%u|b%"flags"]=>
+ ["flags"]=>
int(49155)
- [%u|b%"type"]=>
+ ["type"]=>
int(3)
- [%u|b%"decimals"]=>
+ ["decimals"]=>
int(0)
}
object(stdClass)#%d (13) {
- [%u|b%"name"]=>
- %unicode|string%(5) "label"
- [%u|b%"orgname"]=>
- %unicode|string%(5) "label"
- [%u|b%"table"]=>
- %unicode|string%(4) "TEST"
- [%u|b%"orgtable"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"def"]=>
- %unicode|string%(0) ""
- [%u|b%"db"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"catalog"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"max_length"]=>
+ ["name"]=>
+ string(5) "label"
+ ["orgname"]=>
+ string(5) "label"
+ ["table"]=>
+ string(4) "TEST"
+ ["orgtable"]=>
+ string(%d) "%s"
+ ["def"]=>
+ string(0) ""
+ ["db"]=>
+ string(%d) "%s"
+ ["catalog"]=>
+ string(%d) "%s"
+ ["max_length"]=>
int(1)
- [%u|b%"length"]=>
+ ["length"]=>
int(%d)
- [%u|b%"charsetnr"]=>
+ ["charsetnr"]=>
int(%d)
- [%u|b%"flags"]=>
+ ["flags"]=>
int(0)
- [%u|b%"type"]=>
+ ["type"]=>
int(254)
- [%u|b%"decimals"]=>
+ ["decimals"]=>
int(0)
}
diff --git a/ext/mysqli/tests/mysqli_fetch_object_no_constructor.phpt b/ext/mysqli/tests/mysqli_fetch_object_no_constructor.phpt
index 3a047a50fc..cb9f98cfa6 100644
--- a/ext/mysqli/tests/mysqli_fetch_object_no_constructor.phpt
+++ b/ext/mysqli/tests/mysqli_fetch_object_no_constructor.phpt
@@ -51,9 +51,9 @@ require_once('skipifconnectfailure.inc');
--EXPECTF--
No exception with PHP:
object(mysqli_fetch_object_test)#%d (%d) {
- [%u|b%"a"]=>
+ ["a"]=>
NULL
- [%u|b%"b"]=>
+ ["b"]=>
NULL
}
diff --git a/ext/mysqli/tests/mysqli_fetch_row.phpt b/ext/mysqli/tests/mysqli_fetch_row.phpt
index e0359e058e..59f6cbae3b 100644
--- a/ext/mysqli/tests/mysqli_fetch_row.phpt
+++ b/ext/mysqli/tests/mysqli_fetch_row.phpt
@@ -45,11 +45,11 @@ require_once('skipifconnectfailure.inc');
[004]
array(3) {
[0]=>
- %unicode|string%(1) "1"
+ string(1) "1"
[1]=>
- %unicode|string%(1) "a"
+ string(1) "a"
[2]=>
- %unicode|string%(1) "1"
+ string(1) "1"
}
[005]
NULL
diff --git a/ext/mysqli/tests/mysqli_field_seek.phpt b/ext/mysqli/tests/mysqli_field_seek.phpt
index 952c5056b7..b30b11cd27 100644
--- a/ext/mysqli/tests/mysqli_field_seek.phpt
+++ b/ext/mysqli/tests/mysqli_field_seek.phpt
@@ -127,89 +127,89 @@ require_once('skipifconnectfailure.inc');
Warning: mysqli_field_seek(): Invalid field offset in %s on line %d
bool(false)
object(stdClass)#%d (13) {
- [%u|b%"name"]=>
- %unicode|string%(2) "id"
- [%u|b%"orgname"]=>
- %unicode|string%(2) "id"
- [%u|b%"table"]=>
- %unicode|string%(4) "test"
- [%u|b%"orgtable"]=>
- %unicode|string%(4) "test"
- [%u|b%"def"]=>
- %unicode|string%(0) ""
- [%u|b%"db"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"catalog"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"max_length"]=>
+ ["name"]=>
+ string(2) "id"
+ ["orgname"]=>
+ string(2) "id"
+ ["table"]=>
+ string(4) "test"
+ ["orgtable"]=>
+ string(4) "test"
+ ["def"]=>
+ string(0) ""
+ ["db"]=>
+ string(%d) "%s"
+ ["catalog"]=>
+ string(%d) "%s"
+ ["max_length"]=>
int(0)
- [%u|b%"length"]=>
+ ["length"]=>
int(11)
- [%u|b%"charsetnr"]=>
+ ["charsetnr"]=>
int(63)
- [%u|b%"flags"]=>
+ ["flags"]=>
int(49155)
- [%u|b%"type"]=>
+ ["type"]=>
int(3)
- [%u|b%"decimals"]=>
+ ["decimals"]=>
int(0)
}
bool(true)
object(stdClass)#%d (13) {
- [%u|b%"name"]=>
- %unicode|string%(2) "id"
- [%u|b%"orgname"]=>
- %unicode|string%(2) "id"
- [%u|b%"table"]=>
- %unicode|string%(4) "test"
- [%u|b%"orgtable"]=>
- %unicode|string%(4) "test"
- [%u|b%"def"]=>
- %unicode|string%(0) ""
- [%u|b%"db"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"catalog"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"max_length"]=>
+ ["name"]=>
+ string(2) "id"
+ ["orgname"]=>
+ string(2) "id"
+ ["table"]=>
+ string(4) "test"
+ ["orgtable"]=>
+ string(4) "test"
+ ["def"]=>
+ string(0) ""
+ ["db"]=>
+ string(%d) "%s"
+ ["catalog"]=>
+ string(%d) "%s"
+ ["max_length"]=>
int(0)
- [%u|b%"length"]=>
+ ["length"]=>
int(11)
- [%u|b%"charsetnr"]=>
+ ["charsetnr"]=>
int(63)
- [%u|b%"flags"]=>
+ ["flags"]=>
int(49155)
- [%u|b%"type"]=>
+ ["type"]=>
int(3)
- [%u|b%"decimals"]=>
+ ["decimals"]=>
int(0)
}
bool(true)
object(stdClass)#%d (13) {
- [%u|b%"name"]=>
- %unicode|string%(5) "label"
- [%u|b%"orgname"]=>
- %unicode|string%(5) "label"
- [%u|b%"table"]=>
- %unicode|string%(4) "test"
- [%u|b%"orgtable"]=>
- %unicode|string%(4) "test"
- [%u|b%"def"]=>
- %unicode|string%(0) ""
- [%u|b%"db"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"catalog"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"max_length"]=>
+ ["name"]=>
+ string(5) "label"
+ ["orgname"]=>
+ string(5) "label"
+ ["table"]=>
+ string(4) "test"
+ ["orgtable"]=>
+ string(4) "test"
+ ["def"]=>
+ string(0) ""
+ ["db"]=>
+ string(%d) "%s"
+ ["catalog"]=>
+ string(%d) "%s"
+ ["max_length"]=>
int(%d)
- [%u|b%"length"]=>
+ ["length"]=>
int(%d)
- [%u|b%"charsetnr"]=>
+ ["charsetnr"]=>
int(%d)
- [%u|b%"flags"]=>
+ ["flags"]=>
int(0)
- [%u|b%"type"]=>
+ ["type"]=>
int(254)
- [%u|b%"decimals"]=>
+ ["decimals"]=>
int(0)
}
int(2)
@@ -222,31 +222,31 @@ Warning: mysqli_field_seek() expects parameter 2 to be integer, float given in %
NULL
bool(true)
object(stdClass)#%d (13) {
- [%u|b%"name"]=>
- %unicode|string%(5) "_null"
- [%u|b%"orgname"]=>
- %unicode|string%(0) ""
- [%u|b%"table"]=>
- %unicode|string%(0) ""
- [%u|b%"orgtable"]=>
- %unicode|string%(0) ""
- [%u|b%"def"]=>
- %unicode|string%(0) ""
- [%u|b%"db"]=>
- %unicode|string%(0) ""
- [%u|b%"catalog"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"max_length"]=>
+ ["name"]=>
+ string(5) "_null"
+ ["orgname"]=>
+ string(0) ""
+ ["table"]=>
+ string(0) ""
+ ["orgtable"]=>
+ string(0) ""
+ ["def"]=>
+ string(0) ""
+ ["db"]=>
+ string(0) ""
+ ["catalog"]=>
+ string(%d) "%s"
+ ["max_length"]=>
int(0)
- [%u|b%"length"]=>
+ ["length"]=>
int(0)
- [%u|b%"charsetnr"]=>
+ ["charsetnr"]=>
int(63)
- [%u|b%"flags"]=>
+ ["flags"]=>
int(32896)
- [%u|b%"type"]=>
+ ["type"]=>
int(6)
- [%u|b%"decimals"]=>
+ ["decimals"]=>
int(0)
}
diff --git a/ext/mysqli/tests/mysqli_field_tell.phpt b/ext/mysqli/tests/mysqli_field_tell.phpt
index cac2001acf..0a89e45914 100644
--- a/ext/mysqli/tests/mysqli_field_tell.phpt
+++ b/ext/mysqli/tests/mysqli_field_tell.phpt
@@ -65,31 +65,31 @@ Warning: mysqli_field_seek() expects exactly 2 parameters, 1 given in %s on line
NULL
int(0)
object(stdClass)#%d (13) {
- [%u|b%"name"]=>
- %unicode|string%(2) "id"
- [%u|b%"orgname"]=>
- %unicode|string%(2) "id"
- [%u|b%"table"]=>
- %unicode|string%(4) "test"
- [%u|b%"orgtable"]=>
- %unicode|string%(4) "test"
- [%u|b%"def"]=>
- %unicode|string%(0) ""
- [%u|b%"db"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"catalog"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"max_length"]=>
+ ["name"]=>
+ string(2) "id"
+ ["orgname"]=>
+ string(2) "id"
+ ["table"]=>
+ string(4) "test"
+ ["orgtable"]=>
+ string(4) "test"
+ ["def"]=>
+ string(0) ""
+ ["db"]=>
+ string(%d) "%s"
+ ["catalog"]=>
+ string(%d) "%s"
+ ["max_length"]=>
int(0)
- [%u|b%"length"]=>
+ ["length"]=>
int(11)
- [%u|b%"charsetnr"]=>
+ ["charsetnr"]=>
int(63)
- [%u|b%"flags"]=>
+ ["flags"]=>
int(49155)
- [%u|b%"type"]=>
+ ["type"]=>
int(3)
- [%u|b%"decimals"]=>
+ ["decimals"]=>
int(0)
}
bool(false)
diff --git a/ext/mysqli/tests/mysqli_get_client_stats.phpt b/ext/mysqli/tests/mysqli_get_client_stats.phpt
index 3e80c78e74..29f8b430de 100644
--- a/ext/mysqli/tests/mysqli_get_client_stats.phpt
+++ b/ext/mysqli/tests/mysqli_get_client_stats.phpt
@@ -119,8 +119,7 @@ mysqlnd.collect_memory_statistics=1
mysqli_get_client_stats_assert_eq('result_set_queries', $new_info, $info, $test_counter);
/* we need to skip this test in unicode - we send set names utf8 during mysql_connect */
- if (!(version_compare(PHP_VERSION, '6.0', '==') == 1))
- mysqli_get_client_stats_assert_eq('non_result_set_queries', $new_info, $info, $test_counter);
+ mysqli_get_client_stats_assert_eq('non_result_set_queries', $new_info, $info, $test_counter);
mysqli_get_client_stats_assert_eq('buffered_sets', $new_info, $info, $test_counter);
mysqli_get_client_stats_assert_eq('unbuffered_sets', $new_info, $info, $test_counter);
mysqli_get_client_stats_assert_eq('ps_buffered_sets', $new_info, $info, $test_counter);
@@ -130,7 +129,7 @@ mysqlnd.collect_memory_statistics=1
mysqli_get_client_stats_assert_eq('copy_on_write_saved', $new_info, $info, $test_counter);
mysqli_get_client_stats_assert_eq('copy_on_write_performed', $new_info, $info, $test_counter);
mysqli_get_client_stats_assert_eq('command_buffer_too_small', $new_info, $info, $test_counter);
- // This is not a mistake that I use %unicode|string%(1) "1" here! Andrey did not go for int to avoid any
+ // This is not a mistake that I use string(1) "1" here! Andrey did not go for int to avoid any
// issues for very large numbers and 32 vs. 64bit systems
mysqli_get_client_stats_assert_eq('connect_success', $new_info, "1", $test_counter);
mysqli_get_client_stats_assert_eq('connect_failure', $new_info, $info, $test_counter);
@@ -959,332 +958,332 @@ mysqli_close($link);
?>
--EXPECTF--
array(163) {
- [%u|b%"bytes_sent"]=>
- %unicode|string%(1) "0"
- [%u|b%"bytes_received"]=>
- %unicode|string%(1) "0"
- [%u|b%"packets_sent"]=>
- %unicode|string%(1) "0"
- [%u|b%"packets_received"]=>
- %unicode|string%(1) "0"
- [%u|b%"protocol_overhead_in"]=>
- %unicode|string%(1) "0"
- [%u|b%"protocol_overhead_out"]=>
- %unicode|string%(1) "0"
- [%u|b%"bytes_received_ok_packet"]=>
- %unicode|string%(1) "0"
- [%u|b%"bytes_received_eof_packet"]=>
- %unicode|string%(1) "0"
- [%u|b%"bytes_received_rset_header_packet"]=>
- %unicode|string%(1) "0"
- [%u|b%"bytes_received_rset_field_meta_packet"]=>
- %unicode|string%(1) "0"
- [%u|b%"bytes_received_rset_row_packet"]=>
- %unicode|string%(1) "0"
- [%u|b%"bytes_received_prepare_response_packet"]=>
- %unicode|string%(1) "0"
- [%u|b%"bytes_received_change_user_packet"]=>
- %unicode|string%(1) "0"
- [%u|b%"packets_sent_command"]=>
- %unicode|string%(1) "0"
- [%u|b%"packets_received_ok"]=>
- %unicode|string%(1) "0"
- [%u|b%"packets_received_eof"]=>
- %unicode|string%(1) "0"
- [%u|b%"packets_received_rset_header"]=>
- %unicode|string%(1) "0"
- [%u|b%"packets_received_rset_field_meta"]=>
- %unicode|string%(1) "0"
- [%u|b%"packets_received_rset_row"]=>
- %unicode|string%(1) "0"
- [%u|b%"packets_received_prepare_response"]=>
- %unicode|string%(1) "0"
- [%u|b%"packets_received_change_user"]=>
- %unicode|string%(1) "0"
- [%u|b%"result_set_queries"]=>
- %unicode|string%(1) "0"
- [%u|b%"non_result_set_queries"]=>
- %unicode|string%(1) "0"
- [%u|b%"no_index_used"]=>
- %unicode|string%(1) "0"
- [%u|b%"bad_index_used"]=>
- %unicode|string%(1) "0"
- [%u|b%"slow_queries"]=>
- %unicode|string%(1) "0"
- [%u|b%"buffered_sets"]=>
- %unicode|string%(1) "0"
- [%u|b%"unbuffered_sets"]=>
- %unicode|string%(1) "0"
- [%u|b%"ps_buffered_sets"]=>
- %unicode|string%(1) "0"
- [%u|b%"ps_unbuffered_sets"]=>
- %unicode|string%(1) "0"
- [%u|b%"flushed_normal_sets"]=>
- %unicode|string%(1) "0"
- [%u|b%"flushed_ps_sets"]=>
- %unicode|string%(1) "0"
- [%u|b%"ps_prepared_never_executed"]=>
- %unicode|string%(1) "0"
- [%u|b%"ps_prepared_once_executed"]=>
- %unicode|string%(1) "0"
- [%u|b%"rows_fetched_from_server_normal"]=>
- %unicode|string%(1) "0"
- [%u|b%"rows_fetched_from_server_ps"]=>
- %unicode|string%(1) "0"
- [%u|b%"rows_buffered_from_client_normal"]=>
- %unicode|string%(1) "0"
- [%u|b%"rows_buffered_from_client_ps"]=>
- %unicode|string%(1) "0"
- [%u|b%"rows_fetched_from_client_normal_buffered"]=>
- %unicode|string%(1) "0"
- [%u|b%"rows_fetched_from_client_normal_unbuffered"]=>
- %unicode|string%(1) "0"
- [%u|b%"rows_fetched_from_client_ps_buffered"]=>
- %unicode|string%(1) "0"
- [%u|b%"rows_fetched_from_client_ps_unbuffered"]=>
- %unicode|string%(1) "0"
- [%u|b%"rows_fetched_from_client_ps_cursor"]=>
- %unicode|string%(1) "0"
- [%u|b%"rows_affected_normal"]=>
- %unicode|string%(1) "0"
- [%u|b%"rows_affected_ps"]=>
- %unicode|string%(1) "0"
- [%u|b%"rows_skipped_normal"]=>
- %unicode|string%(1) "0"
- [%u|b%"rows_skipped_ps"]=>
- %unicode|string%(1) "0"
- [%u|b%"copy_on_write_saved"]=>
- %unicode|string%(1) "0"
- [%u|b%"copy_on_write_performed"]=>
- %unicode|string%(1) "0"
- [%u|b%"command_buffer_too_small"]=>
- %unicode|string%(1) "0"
- [%u|b%"connect_success"]=>
- %unicode|string%(1) "0"
- [%u|b%"connect_failure"]=>
- %unicode|string%(1) "0"
- [%u|b%"connection_reused"]=>
- %unicode|string%(1) "0"
- [%u|b%"reconnect"]=>
- %unicode|string%(1) "0"
- [%u|b%"pconnect_success"]=>
- %unicode|string%(1) "0"
- [%u|b%"active_connections"]=>
- %unicode|string%(1) "0"
- [%u|b%"active_persistent_connections"]=>
- %unicode|string%(1) "0"
- [%u|b%"explicit_close"]=>
- %unicode|string%(1) "0"
- [%u|b%"implicit_close"]=>
- %unicode|string%(1) "0"
- [%u|b%"disconnect_close"]=>
- %unicode|string%(1) "0"
- [%u|b%"in_middle_of_command_close"]=>
- %unicode|string%(1) "0"
- [%u|b%"explicit_free_result"]=>
- %unicode|string%(1) "0"
- [%u|b%"implicit_free_result"]=>
- %unicode|string%(1) "0"
- [%u|b%"explicit_stmt_close"]=>
- %unicode|string%(1) "0"
- [%u|b%"implicit_stmt_close"]=>
- %unicode|string%(1) "0"
- [%u|b%"mem_emalloc_count"]=>
- %unicode|string%(1) "0"
- [%u|b%"mem_emalloc_amount"]=>
- %unicode|string%(1) "0"
- [%u|b%"mem_ecalloc_count"]=>
- %unicode|string%(1) "0"
- [%u|b%"mem_ecalloc_amount"]=>
- %unicode|string%(1) "0"
- [%u|b%"mem_erealloc_count"]=>
- %unicode|string%(1) "0"
- [%u|b%"mem_erealloc_amount"]=>
- %unicode|string%(1) "0"
- [%u|b%"mem_efree_count"]=>
- %unicode|string%(1) "0"
- [%u|b%"mem_efree_amount"]=>
- %unicode|string%(1) "0"
- [%u|b%"mem_malloc_count"]=>
- %unicode|string%(1) "0"
- [%u|b%"mem_malloc_amount"]=>
- %unicode|string%(1) "0"
- [%u|b%"mem_calloc_count"]=>
- %unicode|string%(%d) "%d"
- [%u|b%"mem_calloc_amount"]=>
- %unicode|string%(%d) "%d"
- [%u|b%"mem_realloc_count"]=>
- %unicode|string%(1) "0"
- [%u|b%"mem_realloc_amount"]=>
- %unicode|string%(1) "0"
- [%u|b%"mem_free_count"]=>
- %unicode|string%(1) "0"
- [%u|b%"mem_free_amount"]=>
- %unicode|string%(1) "0"
- [%u|b%"mem_estrndup_count"]=>
- %unicode|string%(1) "0"
- [%u|b%"mem_strndup_count"]=>
- %unicode|string%(1) "0"
- [%u|b%"mem_estrdup_count"]=>
- %unicode|string%(1) "0"
- [%u|b%"mem_strdup_count"]=>
- %unicode|string%(1) "0"
- [%u|b%"mem_edupl_count"]=>
- %unicode|string%(1) "0"
- [%u|b%"mem_dupl_count"]=>
- %unicode|string%(1) "0"
- [%u|b%"proto_text_fetched_null"]=>
- %unicode|string%(1) "0"
- [%u|b%"proto_text_fetched_bit"]=>
- %unicode|string%(1) "0"
- [%u|b%"proto_text_fetched_tinyint"]=>
- %unicode|string%(1) "0"
- [%u|b%"proto_text_fetched_short"]=>
- %unicode|string%(1) "0"
- [%u|b%"proto_text_fetched_int24"]=>
- %unicode|string%(1) "0"
- [%u|b%"proto_text_fetched_int"]=>
- %unicode|string%(1) "0"
- [%u|b%"proto_text_fetched_bigint"]=>
- %unicode|string%(1) "0"
- [%u|b%"proto_text_fetched_decimal"]=>
- %unicode|string%(1) "0"
- [%u|b%"proto_text_fetched_float"]=>
- %unicode|string%(1) "0"
- [%u|b%"proto_text_fetched_double"]=>
- %unicode|string%(1) "0"
- [%u|b%"proto_text_fetched_date"]=>
- %unicode|string%(1) "0"
- [%u|b%"proto_text_fetched_year"]=>
- %unicode|string%(1) "0"
- [%u|b%"proto_text_fetched_time"]=>
- %unicode|string%(1) "0"
- [%u|b%"proto_text_fetched_datetime"]=>
- %unicode|string%(1) "0"
- [%u|b%"proto_text_fetched_timestamp"]=>
- %unicode|string%(1) "0"
- [%u|b%"proto_text_fetched_string"]=>
- %unicode|string%(1) "0"
- [%u|b%"proto_text_fetched_blob"]=>
- %unicode|string%(1) "0"
- [%u|b%"proto_text_fetched_enum"]=>
- %unicode|string%(1) "0"
- [%u|b%"proto_text_fetched_set"]=>
- %unicode|string%(1) "0"
- [%u|b%"proto_text_fetched_geometry"]=>
- %unicode|string%(1) "0"
- [%u|b%"proto_text_fetched_other"]=>
- %unicode|string%(1) "0"
- [%u|b%"proto_binary_fetched_null"]=>
- %unicode|string%(1) "0"
- [%u|b%"proto_binary_fetched_bit"]=>
- %unicode|string%(1) "0"
- [%u|b%"proto_binary_fetched_tinyint"]=>
- %unicode|string%(1) "0"
- [%u|b%"proto_binary_fetched_short"]=>
- %unicode|string%(1) "0"
- [%u|b%"proto_binary_fetched_int24"]=>
- %unicode|string%(1) "0"
- [%u|b%"proto_binary_fetched_int"]=>
- %unicode|string%(1) "0"
- [%u|b%"proto_binary_fetched_bigint"]=>
- %unicode|string%(1) "0"
- [%u|b%"proto_binary_fetched_decimal"]=>
- %unicode|string%(1) "0"
- [%u|b%"proto_binary_fetched_float"]=>
- %unicode|string%(1) "0"
- [%u|b%"proto_binary_fetched_double"]=>
- %unicode|string%(1) "0"
- [%u|b%"proto_binary_fetched_date"]=>
- %unicode|string%(1) "0"
- [%u|b%"proto_binary_fetched_year"]=>
- %unicode|string%(1) "0"
- [%u|b%"proto_binary_fetched_time"]=>
- %unicode|string%(1) "0"
- [%u|b%"proto_binary_fetched_datetime"]=>
- %unicode|string%(1) "0"
- [%u|b%"proto_binary_fetched_timestamp"]=>
- %unicode|string%(1) "0"
- [%u|b%"proto_binary_fetched_string"]=>
- %unicode|string%(1) "0"
- [%u|b%"proto_binary_fetched_json"]=>
- %unicode|string%(1) "0"
- [%u|b%"proto_binary_fetched_blob"]=>
- %unicode|string%(1) "0"
- [%u|b%"proto_binary_fetched_enum"]=>
- %unicode|string%(1) "0"
- [%u|b%"proto_binary_fetched_set"]=>
- %unicode|string%(1) "0"
- [%u|b%"proto_binary_fetched_geometry"]=>
- %unicode|string%(1) "0"
- [%u|b%"proto_binary_fetched_other"]=>
- %unicode|string%(1) "0"
- [%u|b%"init_command_executed_count"]=>
- %unicode|string%(1) "0"
- [%u|b%"init_command_failed_count"]=>
- %unicode|string%(1) "0"
- [%u|b%"com_quit"]=>
- %unicode|string%(1) "0"
- [%u|b%"com_init_db"]=>
- %unicode|string%(1) "0"
- [%u|b%"com_query"]=>
- %unicode|string%(1) "0"
- [%u|b%"com_field_list"]=>
- %unicode|string%(1) "0"
- [%u|b%"com_create_db"]=>
- %unicode|string%(1) "0"
- [%u|b%"com_drop_db"]=>
- %unicode|string%(1) "0"
- [%u|b%"com_refresh"]=>
- %unicode|string%(1) "0"
- [%u|b%"com_shutdown"]=>
- %unicode|string%(1) "0"
- [%u|b%"com_statistics"]=>
- %unicode|string%(1) "0"
- [%u|b%"com_process_info"]=>
- %unicode|string%(1) "0"
- [%u|b%"com_connect"]=>
- %unicode|string%(1) "0"
- [%u|b%"com_process_kill"]=>
- %unicode|string%(1) "0"
- [%u|b%"com_debug"]=>
- %unicode|string%(1) "0"
- [%u|b%"com_ping"]=>
- %unicode|string%(1) "0"
- [%u|b%"com_time"]=>
- %unicode|string%(1) "0"
- [%u|b%"com_delayed_insert"]=>
- %unicode|string%(1) "0"
- [%u|b%"com_change_user"]=>
- %unicode|string%(1) "0"
- [%u|b%"com_binlog_dump"]=>
- %unicode|string%(1) "0"
- [%u|b%"com_table_dump"]=>
- %unicode|string%(1) "0"
- [%u|b%"com_connect_out"]=>
- %unicode|string%(1) "0"
- [%u|b%"com_register_slave"]=>
- %unicode|string%(1) "0"
- [%u|b%"com_stmt_prepare"]=>
- %unicode|string%(1) "0"
- [%u|b%"com_stmt_execute"]=>
- %unicode|string%(1) "0"
- [%u|b%"com_stmt_send_long_data"]=>
- %unicode|string%(1) "0"
- [%u|b%"com_stmt_close"]=>
- %unicode|string%(1) "0"
- [%u|b%"com_stmt_reset"]=>
- %unicode|string%(1) "0"
- [%u|b%"com_stmt_set_option"]=>
- %unicode|string%(1) "0"
- [%u|b%"com_stmt_fetch"]=>
- %unicode|string%(1) "0"
- [%u|b%"com_deamon"]=>
- %unicode|string%(1) "0"
- [%u|b%"bytes_received_real_data_normal"]=>
- %unicode|string%(1) "0"
- [%u|b%"bytes_received_real_data_ps"]=>
- %unicode|string%(1) "0"
+ ["bytes_sent"]=>
+ string(1) "0"
+ ["bytes_received"]=>
+ string(1) "0"
+ ["packets_sent"]=>
+ string(1) "0"
+ ["packets_received"]=>
+ string(1) "0"
+ ["protocol_overhead_in"]=>
+ 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"]=>
+ string(1) "0"
+ ["no_index_used"]=>
+ string(1) "0"
+ ["bad_index_used"]=>
+ string(1) "0"
+ ["slow_queries"]=>
+ string(1) "0"
+ ["buffered_sets"]=>
+ string(1) "0"
+ ["unbuffered_sets"]=>
+ string(1) "0"
+ ["ps_buffered_sets"]=>
+ string(1) "0"
+ ["ps_unbuffered_sets"]=>
+ string(1) "0"
+ ["flushed_normal_sets"]=>
+ string(1) "0"
+ ["flushed_ps_sets"]=>
+ string(1) "0"
+ ["ps_prepared_never_executed"]=>
+ string(1) "0"
+ ["ps_prepared_once_executed"]=>
+ string(1) "0"
+ ["rows_fetched_from_server_normal"]=>
+ string(1) "0"
+ ["rows_fetched_from_server_ps"]=>
+ string(1) "0"
+ ["rows_buffered_from_client_normal"]=>
+ string(1) "0"
+ ["rows_buffered_from_client_ps"]=>
+ string(1) "0"
+ ["rows_fetched_from_client_normal_buffered"]=>
+ string(1) "0"
+ ["rows_fetched_from_client_normal_unbuffered"]=>
+ string(1) "0"
+ ["rows_fetched_from_client_ps_buffered"]=>
+ string(1) "0"
+ ["rows_fetched_from_client_ps_unbuffered"]=>
+ string(1) "0"
+ ["rows_fetched_from_client_ps_cursor"]=>
+ string(1) "0"
+ ["rows_affected_normal"]=>
+ string(1) "0"
+ ["rows_affected_ps"]=>
+ string(1) "0"
+ ["rows_skipped_normal"]=>
+ string(1) "0"
+ ["rows_skipped_ps"]=>
+ string(1) "0"
+ ["copy_on_write_saved"]=>
+ string(1) "0"
+ ["copy_on_write_performed"]=>
+ string(1) "0"
+ ["command_buffer_too_small"]=>
+ string(1) "0"
+ ["connect_success"]=>
+ string(1) "0"
+ ["connect_failure"]=>
+ string(1) "0"
+ ["connection_reused"]=>
+ string(1) "0"
+ ["reconnect"]=>
+ string(1) "0"
+ ["pconnect_success"]=>
+ string(1) "0"
+ ["active_connections"]=>
+ string(1) "0"
+ ["active_persistent_connections"]=>
+ string(1) "0"
+ ["explicit_close"]=>
+ string(1) "0"
+ ["implicit_close"]=>
+ string(1) "0"
+ ["disconnect_close"]=>
+ string(1) "0"
+ ["in_middle_of_command_close"]=>
+ string(1) "0"
+ ["explicit_free_result"]=>
+ string(1) "0"
+ ["implicit_free_result"]=>
+ string(1) "0"
+ ["explicit_stmt_close"]=>
+ string(1) "0"
+ ["implicit_stmt_close"]=>
+ string(1) "0"
+ ["mem_emalloc_count"]=>
+ string(1) "0"
+ ["mem_emalloc_amount"]=>
+ string(1) "0"
+ ["mem_ecalloc_count"]=>
+ string(1) "0"
+ ["mem_ecalloc_amount"]=>
+ string(1) "0"
+ ["mem_erealloc_count"]=>
+ string(1) "0"
+ ["mem_erealloc_amount"]=>
+ string(1) "0"
+ ["mem_efree_count"]=>
+ string(1) "0"
+ ["mem_efree_amount"]=>
+ string(1) "0"
+ ["mem_malloc_count"]=>
+ string(1) "0"
+ ["mem_malloc_amount"]=>
+ string(1) "0"
+ ["mem_calloc_count"]=>
+ string(%d) "%d"
+ ["mem_calloc_amount"]=>
+ string(%d) "%d"
+ ["mem_realloc_count"]=>
+ string(1) "0"
+ ["mem_realloc_amount"]=>
+ string(1) "0"
+ ["mem_free_count"]=>
+ string(1) "0"
+ ["mem_free_amount"]=>
+ string(1) "0"
+ ["mem_estrndup_count"]=>
+ string(1) "0"
+ ["mem_strndup_count"]=>
+ string(1) "0"
+ ["mem_estrdup_count"]=>
+ string(1) "0"
+ ["mem_strdup_count"]=>
+ string(1) "0"
+ ["mem_edupl_count"]=>
+ string(1) "0"
+ ["mem_dupl_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_json"]=>
+ 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"
+ ["init_command_executed_count"]=>
+ string(1) "0"
+ ["init_command_failed_count"]=>
+ string(1) "0"
+ ["com_quit"]=>
+ string(1) "0"
+ ["com_init_db"]=>
+ string(1) "0"
+ ["com_query"]=>
+ string(1) "0"
+ ["com_field_list"]=>
+ string(1) "0"
+ ["com_create_db"]=>
+ string(1) "0"
+ ["com_drop_db"]=>
+ string(1) "0"
+ ["com_refresh"]=>
+ string(1) "0"
+ ["com_shutdown"]=>
+ string(1) "0"
+ ["com_statistics"]=>
+ string(1) "0"
+ ["com_process_info"]=>
+ string(1) "0"
+ ["com_connect"]=>
+ string(1) "0"
+ ["com_process_kill"]=>
+ string(1) "0"
+ ["com_debug"]=>
+ string(1) "0"
+ ["com_ping"]=>
+ string(1) "0"
+ ["com_time"]=>
+ string(1) "0"
+ ["com_delayed_insert"]=>
+ string(1) "0"
+ ["com_change_user"]=>
+ string(1) "0"
+ ["com_binlog_dump"]=>
+ string(1) "0"
+ ["com_table_dump"]=>
+ string(1) "0"
+ ["com_connect_out"]=>
+ string(1) "0"
+ ["com_register_slave"]=>
+ string(1) "0"
+ ["com_stmt_prepare"]=>
+ string(1) "0"
+ ["com_stmt_execute"]=>
+ string(1) "0"
+ ["com_stmt_send_long_data"]=>
+ string(1) "0"
+ ["com_stmt_close"]=>
+ string(1) "0"
+ ["com_stmt_reset"]=>
+ string(1) "0"
+ ["com_stmt_set_option"]=>
+ string(1) "0"
+ ["com_stmt_fetch"]=>
+ string(1) "0"
+ ["com_deamon"]=>
+ string(1) "0"
+ ["bytes_received_real_data_normal"]=>
+ string(1) "0"
+ ["bytes_received_real_data_ps"]=>
+ string(1) "0"
}
Testing buffered normal...
Testing buffered normal... - SELECT id, label FROM test
@@ -1297,4 +1296,4 @@ Testing buffered Prepared Statements... - fetching all but one
Testing unbuffered Prepared Statements... - fetching all
Testing unbuffered Prepared Statements... - fetching all but one
... done with fetch statistics
-done! \ No newline at end of file
+done!
diff --git a/ext/mysqli/tests/mysqli_get_warnings.phpt b/ext/mysqli/tests/mysqli_get_warnings.phpt
index 0d5c768ece..2b70fda3ed 100644
--- a/ext/mysqli/tests/mysqli_get_warnings.phpt
+++ b/ext/mysqli/tests/mysqli_get_warnings.phpt
@@ -129,9 +129,6 @@ if (!$TEST_EXPERIMENTAL)
$warning = new mysqli_warning($mysqli);
$i = 1;
while ($warning->next() && ('' != ($tmp = $warning->message))) {
- if ((version_compare(PHP_VERSION, '6.0', '==') == 1) &&
- !is_unicode($tmp))
- printf("[033a] Warning should have been a unicode string, got %s/%s", gettype($tmp), $tmp);
$i++;
}
if (3 != $i)
@@ -158,4 +155,4 @@ if (!mysqli_query($link, "DROP TABLE IF EXISTS t1"))
mysqli_close($link);
?>
--EXPECTF--
-done! \ No newline at end of file
+done!
diff --git a/ext/mysqli/tests/mysqli_info.phpt b/ext/mysqli/tests/mysqli_info.phpt
index a1b8517588..d60ffd9fbe 100644
--- a/ext/mysqli/tests/mysqli_info.phpt
+++ b/ext/mysqli/tests/mysqli_info.phpt
@@ -30,10 +30,6 @@ require_once('skipifconnectfailure.inc');
if (!is_string($tmp = mysqli_info($link)) || ('' == $tmp))
printf("[006] Expecting string/any_non_empty, got %s/%s\n", gettype($tmp), $tmp);
- if ((version_compare(PHP_VERSION, '6.0', '==') == 1) &&
- !is_unicode($tmp))
- printf("[007] Expecting unicode, because unicode mode it on. Got binary string\n");
-
if (!$res = mysqli_query($link, 'INSERT INTO test(id, label) SELECT id + 200, label FROM test'))
printf("[007] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
@@ -67,9 +63,9 @@ require_once('skipifconnectfailure.inc');
/* ignore this error */
break;
- if (!fwrite($fp, b"100;'a';\n") ||
- !fwrite($fp, b"101;'b';\n") ||
- !fwrite($fp, b"102;'c';\n")) {
+ if (!fwrite($fp, "100;'a';\n") ||
+ !fwrite($fp, "101;'b';\n") ||
+ !fwrite($fp, "102;'c';\n")) {
@unlink($file);
break;
}
@@ -99,4 +95,4 @@ require_once('skipifconnectfailure.inc');
require_once("clean_table.inc");
?>
--EXPECTF--
-done! \ No newline at end of file
+done!
diff --git a/ext/mysqli/tests/mysqli_kill.phpt b/ext/mysqli/tests/mysqli_kill.phpt
index 94e4e8f2e0..1059c3554f 100644
--- a/ext/mysqli/tests/mysqli_kill.phpt
+++ b/ext/mysqli/tests/mysqli_kill.phpt
@@ -82,63 +82,63 @@ require_once('skipifconnectfailure.inc');
?>
--EXPECTF--
Warning: mysqli_kill(): processid should have positive value in %s on line %d
-%unicode|string%(%d) "%s"
+string(%d) "%s"
bool(false)
object(mysqli)#%d (%d) {
- [%u|b%"affected_rows"]=>
+ ["affected_rows"]=>
int(-1)
- [%u|b%"client_info"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"client_version"]=>
+ ["client_info"]=>
+ string(%d) "%s"
+ ["client_version"]=>
int(%d)
- [%u|b%"connect_errno"]=>
+ ["connect_errno"]=>
int(0)
- [%u|b%"connect_error"]=>
+ ["connect_error"]=>
NULL
- [%u|b%"errno"]=>
+ ["errno"]=>
int(2006)
- [%u|b%"error"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"error_list"]=>
+ ["error"]=>
+ string(%d) "%s"
+ ["error_list"]=>
array(1) {
[0]=>
array(3) {
- [%u|b%"errno"]=>
+ ["errno"]=>
int(2006)
- [%u|b%"sqlstate"]=>
- %unicode|string%(5) "%s"
- [%u|b%"error"]=>
- %unicode|string%(%d) "%s"
+ ["sqlstate"]=>
+ string(5) "%s"
+ ["error"]=>
+ string(%d) "%s"
}
}
- [%u|b%"field_count"]=>
+ ["field_count"]=>
int(0)
- [%u|b%"host_info"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"info"]=>
+ ["host_info"]=>
+ string(%d) "%s"
+ ["info"]=>
%s
- [%u|b%"insert_id"]=>
+ ["insert_id"]=>
int(0)
- [%u|b%"server_info"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"server_version"]=>
+ ["server_info"]=>
+ string(%d) "%s"
+ ["server_version"]=>
int(%d)
- [%u|b%"stat"]=>
+ ["stat"]=>
%s
- [%u|b%"sqlstate"]=>
- %unicode|string%(5) "HY000"
- [%u|b%"protocol_version"]=>
+ ["sqlstate"]=>
+ string(5) "HY000"
+ ["protocol_version"]=>
int(10)
- [%u|b%"thread_id"]=>
+ ["thread_id"]=>
int(%d)
- [%u|b%"warning_count"]=>
+ ["warning_count"]=>
int(0)
}
Warning: mysqli_kill(): processid should have positive value in %s on line %d
array(1) {
- [%u|b%"id"]=>
- %unicode|string%(1) "1"
+ ["id"]=>
+ string(1) "1"
}
Warning: mysqli_kill(): processid should have positive value in %s on line %d
diff --git a/ext/mysqli/tests/mysqli_mysqlnd_read_timeout_long.phpt b/ext/mysqli/tests/mysqli_mysqlnd_read_timeout_long.phpt
index fcbf4e652e..e42d3b31f3 100644
--- a/ext/mysqli/tests/mysqli_mysqlnd_read_timeout_long.phpt
+++ b/ext/mysqli/tests/mysqli_mysqlnd_read_timeout_long.phpt
@@ -42,7 +42,7 @@ max_execution_time=12
?>
--EXPECTF--
array(1) {
- [%u|b%"SLEEP(6)"]=>
- %unicode|string%(1) "0"
+ ["SLEEP(6)"]=>
+ string(1) "0"
}
done! \ No newline at end of file
diff --git a/ext/mysqli/tests/mysqli_mysqlnd_read_timeout_zero.phpt b/ext/mysqli/tests/mysqli_mysqlnd_read_timeout_zero.phpt
index eb4c431e7d..1d1b3c917f 100644
--- a/ext/mysqli/tests/mysqli_mysqlnd_read_timeout_zero.phpt
+++ b/ext/mysqli/tests/mysqli_mysqlnd_read_timeout_zero.phpt
@@ -41,7 +41,7 @@ mysqlnd.net_read_timeout=0
?>
--EXPECTF--
array(1) {
- [%u|b%"SLEEP(2)"]=>
- %unicode|string%(1) "0"
+ ["SLEEP(2)"]=>
+ string(1) "0"
}
done! \ No newline at end of file
diff --git a/ext/mysqli/tests/mysqli_pconn_conn_multiple.phpt b/ext/mysqli/tests/mysqli_pconn_conn_multiple.phpt
index adc267131c..1453d663ba 100644
--- a/ext/mysqli/tests/mysqli_pconn_conn_multiple.phpt
+++ b/ext/mysqli/tests/mysqli_pconn_conn_multiple.phpt
@@ -142,20 +142,20 @@ mysqli.max_links=-1
?>
--EXPECTF--
array(1) {
- [%u|b%"it_works"]=>
- %unicode|string%(2) "ok"
+ ["it_works"]=>
+ string(2) "ok"
}
array(1) {
- [%u|b%"syntax"]=>
- %unicode|string%(18) "works also with oo"
+ ["syntax"]=>
+ string(18) "works also with oo"
}
Flipping phost/host order
array(1) {
- [%u|b%"it_works"]=>
- %unicode|string%(2) "ok"
+ ["it_works"]=>
+ string(2) "ok"
}
array(1) {
- [%u|b%"syntax"]=>
- %unicode|string%(18) "works also with oo"
+ ["syntax"]=>
+ string(18) "works also with oo"
}
done! \ No newline at end of file
diff --git a/ext/mysqli/tests/mysqli_pconn_twice.phpt b/ext/mysqli/tests/mysqli_pconn_twice.phpt
index 5630d4e973..c550f0f495 100644
--- a/ext/mysqli/tests/mysqli_pconn_twice.phpt
+++ b/ext/mysqli/tests/mysqli_pconn_twice.phpt
@@ -67,11 +67,11 @@ mysqli.max_links=-1
?>
--EXPECTF--
array(1) {
- [%u|b%"it_works"]=>
- %unicode|string%(2) "ok"
+ ["it_works"]=>
+ string(2) "ok"
}
array(1) {
- [%u|b%"syntax"]=>
- %unicode|string%(18) "works also with oo"
+ ["syntax"]=>
+ string(18) "works also with oo"
}
done! \ No newline at end of file
diff --git a/ext/mysqli/tests/mysqli_poll_kill.phpt b/ext/mysqli/tests/mysqli_poll_kill.phpt
index c69a251111..84cd0f68b9 100644
--- a/ext/mysqli/tests/mysqli_poll_kill.phpt
+++ b/ext/mysqli/tests/mysqli_poll_kill.phpt
@@ -186,13 +186,13 @@ if (!$IS_MYSQLND)
To be fixed later. Minor issue about fetching error message from killed line
--EXPECTF--
array(1) {
- [%u|b%"processed before killed"]=>
- %unicode|string%(1) "1"
+ ["processed before killed"]=>
+ string(1) "1"
}
Fetching from thread %d...
array(1) {
[1]=>
- %unicode|string%(1) "1"
+ string(1) "1"
}
Warning: mysqli_reap_async_query(): Premature end of data (mysqlnd_wireprotocol.c:%d) in %s on line %d
diff --git a/ext/mysqli/tests/mysqli_poll_mixing_insert_select.phpt b/ext/mysqli/tests/mysqli_poll_mixing_insert_select.phpt
index 9068f6f708..9d9ef64d91 100644
--- a/ext/mysqli/tests/mysqli_poll_mixing_insert_select.phpt
+++ b/ext/mysqli/tests/mysqli_poll_mixing_insert_select.phpt
@@ -179,10 +179,10 @@ mysqli_close($link);
[003] 'UPDATE test SET id = 101 WHERE id > 3' caused 1062
[003] 'UPDATE_FIX test SET id = 101 WHERE id > 3' caused 1064
array(2) {
- [%u|b%"id"]=>
- %unicode|string%(3) "100"
- [%u|b%"label"]=>
- %unicode|string%(1) "z"
+ ["id"]=>
+ string(3) "100"
+ ["label"]=>
+ string(1) "z"
}
[009] [2014] %s
done!
diff --git a/ext/mysqli/tests/mysqli_ps_select_union.phpt b/ext/mysqli/tests/mysqli_ps_select_union.phpt
index a4659c4267..730dc8403b 100644
--- a/ext/mysqli/tests/mysqli_ps_select_union.phpt
+++ b/ext/mysqli/tests/mysqli_ps_select_union.phpt
@@ -253,23 +253,23 @@ require_once('skipifconnectfailure.inc');
?>
--EXPECTF--
Using CAST('somestring' AS CHAR)...
-%unicode|string%(3) "one"
-%unicode|string%(5) "three"
-%unicode|string%(3) "two"
+string(3) "one"
+string(5) "three"
+string(3) "two"
Mixing CAST('somestring'AS CHAR), integer and CAST(integer AS CHAR)...
-%unicode|string%(1) "1"
-%unicode|string%(5) "three"
-%unicode|string%(1) "2"
+string(1) "1"
+string(5) "three"
+string(1) "2"
Using integer only...
int(1)
int(303)
int(2)
Testing bind_param(), strings only...
-%unicode|string%(3) "one"
-%unicode|string%(5) "three"
-%unicode|string%(3) "two"
+string(3) "one"
+string(5) "three"
+string(3) "two"
Testing bind_param(), strings only, with CAST AS CHAR...
-%unicode|string%(3) "one"
-%unicode|string%(32) "three beers are more than enough"
-%unicode|string%(3) "two"
+string(3) "one"
+string(32) "three beers are more than enough"
+string(3) "two"
done!
diff --git a/ext/mysqli/tests/mysqli_query.phpt b/ext/mysqli/tests/mysqli_query.phpt
index 73bebe107c..4b1988b631 100644
--- a/ext/mysqli/tests/mysqli_query.phpt
+++ b/ext/mysqli/tests/mysqli_query.phpt
@@ -128,14 +128,14 @@ mysqli_close($link);
?>
--EXPECTF--
array(1) {
- [%u|b%"valid"]=>
- %unicode|string%(30) "this is sql but with semicolon"
+ ["valid"]=>
+ string(30) "this is sql but with semicolon"
}
array(1) {
- [%u|b%""]=>
- %unicode|string%(1) "a"
+ [""]=>
+ string(1) "a"
}
-%unicode|string%(1) "a"
+string(1) "a"
Warning: mysqli_query(): Couldn't fetch mysqli in %s on line %d
done! \ No newline at end of file
diff --git a/ext/mysqli/tests/mysqli_query_stored_proc.phpt b/ext/mysqli/tests/mysqli_query_stored_proc.phpt
index 10bf86bf48..4f4e671f3b 100644
--- a/ext/mysqli/tests/mysqli_query_stored_proc.phpt
+++ b/ext/mysqli/tests/mysqli_query_stored_proc.phpt
@@ -165,31 +165,31 @@ mysqli_close($link);
?>
--EXPECTF--
array(2) {
- [%u|b%"id"]=>
- %unicode|string%(1) "1"
- [%u|b%"label"]=>
- %unicode|string%(1) "a"
+ ["id"]=>
+ string(1) "1"
+ ["label"]=>
+ string(1) "a"
}
array(2) {
- [%u|b%"id"]=>
- %unicode|string%(1) "1"
- [%u|b%"label"]=>
- %unicode|string%(1) "a"
+ ["id"]=>
+ string(1) "1"
+ ["label"]=>
+ string(1) "a"
}
array(2) {
- [%u|b%"id"]=>
- %unicode|string%(1) "1"
- [%u|b%"label"]=>
- %unicode|string%(1) "a"
+ ["id"]=>
+ string(1) "1"
+ ["label"]=>
+ string(1) "a"
}
array(2) {
- [%u|b%"id"]=>
- %unicode|string%(1) "1"
- [%u|b%"label"]=>
- %unicode|string%(1) "a"
+ ["id"]=>
+ string(1) "1"
+ ["label"]=>
+ string(1) "a"
}
array(1) {
- [%u|b%"id"]=>
- %unicode|string%(1) "1"
+ ["id"]=>
+ string(1) "1"
}
done! \ No newline at end of file
diff --git a/ext/mysqli/tests/mysqli_query_unicode.phpt b/ext/mysqli/tests/mysqli_query_unicode.phpt
index 5c33178f3c..a7540c5426 100644
--- a/ext/mysqli/tests/mysqli_query_unicode.phpt
+++ b/ext/mysqli/tests/mysqli_query_unicode.phpt
@@ -85,37 +85,6 @@ mysqli_close($link);
}
}
- /*
- Trying to test what Ramil suggests in http://bugs.mysql.com/bug.php?id=29576
- However, this won't work, because we're lacking MYSQLI_SET_CHARSET_NAME.
- if ((version_compare(PHP_VERSION, '6.0', '==') == 1)) {
- if (mysqli_get_server_version() > 50002) {
- @mysqli_query($link, "DROP USER IF EXISTS 'тест'@'%'");
- if (TRUE !== mysqli_query($link, "CREATE USER 'тест'@'%'")) {
- var_dump(mysqli_error($link);
- }
- }
- if (TRUE !== mysqli_query($link, "GRANT SELECT ON $db.* TO 'тест'@'%' IDENTIFIED BY 'парола'")) {
- var_dump(mysqli_error($link);
- } else {
- $link2 = mysqli_init();
- if (!(mysqli_real_connect($link2, $host, "тест", 'парола', $db, $port, $socket))) {
- printf("[011] Cannot connect to the server using host=%s, user=%s, passwd=парола, dbname=%s, port=%s, socket=%s, [%d] %s\n",
- $host, "тест", $db, $port, $socket,
- mysqli_connect_errno(), mysqli_connect_error());
- }
- mysqli_close($link2);
- if (mysqli_get_server_version() > 50002) {
- if (!mysqli_query($link, "DROP USER 'тест'@'%'"))
- printf("[013] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
- } else {
- printf("[015] Cannot create user or grant privileges, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
- }
- }
- }
- }
- */
-
mysqli_close($link);
if (NULL !== ($tmp = mysqli_query($link, "SELECT id FROM test")))
@@ -125,9 +94,9 @@ mysqli_close($link);
?>
--EXPECTF--
array(1) {
- [%u|b%"правилен"]=>
- %unicode|string%(%d) "това ескюел, но с точка и запетая"
+ ["правилен"]=>
+ string(%d) "това ескюел, но с точка и запетая"
}
Warning: mysqli_query(): Couldn't fetch mysqli in %s on line %d
-done! \ No newline at end of file
+done!
diff --git a/ext/mysqli/tests/mysqli_real_connect.phpt b/ext/mysqli/tests/mysqli_real_connect.phpt
index 5477ea1745..a678399838 100644
--- a/ext/mysqli/tests/mysqli_real_connect.phpt
+++ b/ext/mysqli/tests/mysqli_real_connect.phpt
@@ -177,43 +177,43 @@ require_once('skipifconnectfailure.inc');
--EXPECTF--
Warning: mysqli_real_connect(): (%s/%d): Access denied for user '%s'@'%s' (using password: YES) in %s on line %d
object(mysqli)#%d (%d) {
- [%u|b%"affected_rows"]=>
+ ["affected_rows"]=>
NULL
- [%u|b%"client_info"]=>
+ ["client_info"]=>
%s
- [%u|b%"client_version"]=>
+ ["client_version"]=>
int(%d)
- [%u|b%"connect_errno"]=>
+ ["connect_errno"]=>
int(%d)
- [%u|b%"connect_error"]=>
+ ["connect_error"]=>
NULL
- [%u|b%"errno"]=>
+ ["errno"]=>
%s
- [%u|b%"error"]=>
+ ["error"]=>
%s
- [%u|b%"error_list"]=>
+ ["error_list"]=>
NULL
- [%u|b%"field_count"]=>
+ ["field_count"]=>
NULL
- [%u|b%"host_info"]=>
+ ["host_info"]=>
NULL
- [%u|b%"info"]=>
+ ["info"]=>
NULL
- [%u|b%"insert_id"]=>
+ ["insert_id"]=>
NULL
- [%u|b%"server_info"]=>
+ ["server_info"]=>
NULL
- [%u|b%"server_version"]=>
+ ["server_version"]=>
NULL
- [%u|b%"stat"]=>
+ ["stat"]=>
NULL
- [%u|b%"sqlstate"]=>
+ ["sqlstate"]=>
NULL
- [%u|b%"protocol_version"]=>
+ ["protocol_version"]=>
NULL
- [%u|b%"thread_id"]=>
+ ["thread_id"]=>
NULL
- [%u|b%"warning_count"]=>
+ ["warning_count"]=>
NULL
}
diff --git a/ext/mysqli/tests/mysqli_real_escape_string_gbk.phpt b/ext/mysqli/tests/mysqli_real_escape_string_gbk.phpt
index 53424e6e74..945e1eaed7 100644
--- a/ext/mysqli/tests/mysqli_real_escape_string_gbk.phpt
+++ b/ext/mysqli/tests/mysqli_real_escape_string_gbk.phpt
@@ -2,10 +2,6 @@
mysqli_real_escape_string() - gbk
--SKIPIF--
<?php
-if (version_compare(PHP_VERSION, '6.0', '==') == 1) {
- die('skip set character set not functional with PHP 6 (fomerly PHP 6 && unicode.semantics=On)');
-}
-
require_once('skipif.inc');
require_once('skipifemb.inc');
require_once('skipifconnectfailure.inc');
diff --git a/ext/mysqli/tests/mysqli_real_escape_string_nobackslash.phpt b/ext/mysqli/tests/mysqli_real_escape_string_nobackslash.phpt
index db1acb4816..a121d5fb8f 100644
--- a/ext/mysqli/tests/mysqli_real_escape_string_nobackslash.phpt
+++ b/ext/mysqli/tests/mysqli_real_escape_string_nobackslash.phpt
@@ -59,7 +59,7 @@ require_once('skipifconnectfailure.inc');
?>
--EXPECTF--
array(1) {
- [%u|b%"label"]=>
- %unicode|string%(1) "\"
+ ["label"]=>
+ string(1) "\"
}
done! \ No newline at end of file
diff --git a/ext/mysqli/tests/mysqli_real_escape_string_sjis.phpt b/ext/mysqli/tests/mysqli_real_escape_string_sjis.phpt
index 3fb2b7df25..ae4986e0b1 100644
--- a/ext/mysqli/tests/mysqli_real_escape_string_sjis.phpt
+++ b/ext/mysqli/tests/mysqli_real_escape_string_sjis.phpt
@@ -2,10 +2,6 @@
mysqli_real_escape_string() - sjis
--SKIPIF--
<?php
-if (version_compare(PHP_VERSION, '6.0', '==') == 1) {
- die('skip set character set not functional with PHP 6 (fomerly PHP 6 && unicode.semantics=On)');
-}
-
require_once('skipif.inc');
require_once('skipifemb.inc');
require_once('skipifconnectfailure.inc');
diff --git a/ext/mysqli/tests/mysqli_real_query.phpt b/ext/mysqli/tests/mysqli_real_query.phpt
index 866ad6a9d4..efc3eaa29f 100644
--- a/ext/mysqli/tests/mysqli_real_query.phpt
+++ b/ext/mysqli/tests/mysqli_real_query.phpt
@@ -105,8 +105,8 @@ mysqli_close($link);
?>
--EXPECTF--
array(1) {
- [%u|b%"valid"]=>
- %unicode|string%(30) "this is sql but with semicolon"
+ ["valid"]=>
+ string(30) "this is sql but with semicolon"
}
Warning: mysqli_real_query(): Couldn't fetch mysqli in %s on line %d
diff --git a/ext/mysqli/tests/mysqli_result_references.phpt b/ext/mysqli/tests/mysqli_result_references.phpt
index 8cf759cce6..e565e184ee 100644
--- a/ext/mysqli/tests/mysqli_result_references.phpt
+++ b/ext/mysqli/tests/mysqli_result_references.phpt
@@ -84,71 +84,71 @@ require_once('skipifconnectfailure.inc');
array(7) refcount(2){
[0]=>
array(2) refcount(1){
- [%u|b%"id"]=>
+ ["id"]=>
int(1)
- [%u|b%"label"]=>
- %unicode|string%(1) "a" refcount(%d)
+ ["label"]=>
+ string(1) "a" refcount(%d)
}
[1]=>
array(2) refcount(1){
- [%u|b%"id"]=>
+ ["id"]=>
int(2)
- [%u|b%"label"]=>
- %unicode|string%(1) "b" refcount(%d)
+ ["label"]=>
+ string(1) "b" refcount(%d)
}
[2]=>
array(2) refcount(1){
- [%u|b%"id"]=>
+ ["id"]=>
int(1)
- [%u|b%"label"]=>
- %unicode|string%(1) "a" refcount(%d)
+ ["label"]=>
+ string(1) "a" refcount(%d)
}
[3]=>
array(2) refcount(1){
- [%u|b%"id"]=>
+ ["id"]=>
int(2)
- [%u|b%"label"]=>
- %unicode|string%(1) "b" refcount(%d)
+ ["label"]=>
+ string(1) "b" refcount(%d)
}
[4]=>
array(3) refcount(1){
- [%u|b%"id"]=>
+ ["id"]=>
&int(3)
- [%u|b%"label"]=>
- %unicode|string%(1) "a" refcount(%d)
- [%u|b%"id2"]=>
+ ["label"]=>
+ string(1) "a" refcount(%d)
+ ["id2"]=>
&int(3)
}
[5]=>
array(3) refcount(1){
- [%u|b%"id"]=>
+ ["id"]=>
&int(4)
- [%u|b%"label"]=>
- %unicode|string%(1) "b" refcount(%d)
- [%u|b%"id2"]=>
+ ["label"]=>
+ string(1) "b" refcount(%d)
+ ["id2"]=>
&int(4)
}
[6]=>
&object(mysqli_result)#%d (5) refcount(%d){
- [%u|b%"current_field"]=>
+ ["current_field"]=>
NULL
- [%u|b%"field_count"]=>
+ ["field_count"]=>
NULL
- [%u|b%"lengths"]=>
+ ["lengths"]=>
NULL
- [%u|b%"num_rows"]=>
+ ["num_rows"]=>
NULL
- [%u|b%"type"]=>
+ ["type"]=>
NULL
}
}
array(1) refcount(2){
[0]=>
array(2) refcount(1){
- [%u|b%"id"]=>
- %unicode|string%(1) "1" refcount(%d)
- [%u|b%"label"]=>
- %unicode|string%(1) "a" refcount(%d)
+ ["id"]=>
+ string(1) "1" refcount(%d)
+ ["label"]=>
+ string(1) "a" refcount(%d)
}
}
done!
diff --git a/ext/mysqli/tests/mysqli_result_references_mysqlnd.phpt b/ext/mysqli/tests/mysqli_result_references_mysqlnd.phpt
index 15a3f4563a..7f0a0896d7 100644
--- a/ext/mysqli/tests/mysqli_result_references_mysqlnd.phpt
+++ b/ext/mysqli/tests/mysqli_result_references_mysqlnd.phpt
@@ -9,10 +9,6 @@ require_once('skipifconnectfailure.inc');
require_once('connect.inc');
if (!$IS_MYSQLND)
die("skip Test for mysqlnd only");
-
-if ((version_compare(PHP_VERSION, '6.0', '==') == 1))
- die("skip (TODO) PHP 6.0 has a difference debug_zval_dump output format");
-?>
<?php require_once('skipifemb.inc'); ?>
--FILE--
<?php
@@ -60,59 +56,59 @@ if ((version_compare(PHP_VERSION, '6.0', '==') == 1))
array(1) refcount(%d){
[0]=>
array(4) refcount(%d){
- [%u|b%"row_ref"]=>
+ ["row_ref"]=>
&NULL
- [%u|b%"row_copy"]=>
+ ["row_copy"]=>
array(2) refcount(1){
- [%u|b%"id"]=>
- %unicode|string%(1) "1" refcount(%d)
- [%u|b%"label"]=>
- %unicode|string%(1) "a" refcount(%d)
+ ["id"]=>
+ string(1) "1" refcount(%d)
+ ["label"]=>
+ string(1) "a" refcount(%d)
}
- [%u|b%"id_ref"]=>
- %unicode|string%(1) "1" refcount(%d)
- [%u|b%"id_copy"]=>
- %unicode|string%(1) "1" refcount(%d)
+ ["id_ref"]=>
+ string(1) "1" refcount(%d)
+ ["id_copy"]=>
+ string(1) "1" refcount(%d)
}
}
array(2) refcount(%d){
[0]=>
array(4) refcount(%d){
- [%u|b%"row_ref"]=>
+ ["row_ref"]=>
&NULL
- [%u|b%"row_copy"]=>
+ ["row_copy"]=>
array(2) refcount(%d){
- [%u|b%"id"]=>
- %unicode|string%(1) "1" refcount(%d)
- [%u|b%"label"]=>
- %unicode|string%(1) "a" refcount(%d)
+ ["id"]=>
+ string(1) "1" refcount(%d)
+ ["label"]=>
+ string(1) "a" refcount(%d)
}
- [%u|b%"id_ref"]=>
- %unicode|string%(1) "1" refcount(%d)
- [%u|b%"id_copy"]=>
- %unicode|string%(1) "1" refcount(%d)
+ ["id_ref"]=>
+ string(1) "1" refcount(%d)
+ ["id_copy"]=>
+ string(1) "1" refcount(%d)
}
[1]=>
array(5) refcount(%d){
- [%u|b%"row_ref"]=>
+ ["row_ref"]=>
&array(2) refcount(%d){
- [%u|b%"id"]=>
- &%unicode|string%(1) "2" refcount(%d)
- [%u|b%"label"]=>
- %unicode|string%(1) "b" refcount(%d)
+ ["id"]=>
+ &string(1) "2" refcount(%d)
+ ["label"]=>
+ string(1) "b" refcount(%d)
}
- [%u|b%"row_copy"]=>
+ ["row_copy"]=>
array(2) refcount(%d){
- [%u|b%"id"]=>
- %unicode|string%(1) "2" refcount(%d)
- [%u|b%"label"]=>
- %unicode|string%(1) "b" refcount(%d)
+ ["id"]=>
+ string(1) "2" refcount(%d)
+ ["label"]=>
+ string(1) "b" refcount(%d)
}
- [%u|b%"id_ref"]=>
- &%unicode|string%(1) "2" refcount(%d)
- [%u|b%"id_copy"]=>
- %unicode|string%(1) "2" refcount(%d)
- [%u|b%"id_copy_mod"]=>
+ ["id_ref"]=>
+ &string(1) "2" refcount(%d)
+ ["id_copy"]=>
+ string(1) "2" refcount(%d)
+ ["id_copy_mod"]=>
int(2)
}
}
diff --git a/ext/mysqli/tests/mysqli_set_charset.phpt b/ext/mysqli/tests/mysqli_set_charset.phpt
index 997af96f94..ed534fa71e 100644
--- a/ext/mysqli/tests/mysqli_set_charset.phpt
+++ b/ext/mysqli/tests/mysqli_set_charset.phpt
@@ -6,10 +6,6 @@ require_once('skipif.inc');
require_once('skipifemb.inc');
require_once('skipifconnectfailure.inc');
-if (version_compare(PHP_VERSION, '6.0', '==') == 1) {
- die('skip set character set not functional with PHP 6 (fomerly PHP 6 && unicode.semantics=On)');
-}
-
if (!function_exists('mysqli_set_charset'))
die("skip Function not available");
@@ -131,4 +127,4 @@ if ((($res = mysqli_query($link, 'SHOW CHARACTER SET LIKE "latin1"', MYSQLI_STOR
?>
--EXPECTF--
Warning: mysqli_set_charset(): Couldn't fetch mysqli in %s on line %d
-done! \ No newline at end of file
+done!
diff --git a/ext/mysqli/tests/mysqli_stmt_bind_param_call_user_func.phpt b/ext/mysqli/tests/mysqli_stmt_bind_param_call_user_func.phpt
index 8f4a989bbf..97b15242dc 100644
--- a/ext/mysqli/tests/mysqli_stmt_bind_param_call_user_func.phpt
+++ b/ext/mysqli/tests/mysqli_stmt_bind_param_call_user_func.phpt
@@ -5,10 +5,6 @@ mysqli_stmt_bind_param used with call_user_func_array() (see also bug #43568)
require_once('skipif.inc');
require_once('skipifemb.inc');
require_once('skipifconnectfailure.inc');
-
-// TODO remove once a decision has been made on call_user_func_array()
-if (version_compare(PHP_VERSION, '5.3.0-dev') == -1)
- die("skip needs PHP 5.3.0-dev+, see http://bugs.php.net/bug.php?id=43568");
?>
--FILE--
<?php
@@ -335,32 +331,32 @@ if (version_compare(PHP_VERSION, '5.3.0-dev') == -1)
--EXPECTF--
Regular, procedural, using variables
int(1)
-%unicode|string%(1) "a"
+string(1) "a"
Call user func, procedural, using references for everything
int(1)
-%unicode|string%(1) "a"
+string(1) "a"
Call user func, object oriented, using references for everything
int(1)
-%unicode|string%(1) "a"
+string(1) "a"
Call user func, object oriented, using variable for types. using references for bound parameter
int(1)
-%unicode|string%(1) "a"
+string(1) "a"
Call user func, object oriented, using constant for types. using references for bound parameter
int(1)
-%unicode|string%(1) "a"
+string(1) "a"
Call user func, procedural, using references for everything but using variable for types
int(1)
-%unicode|string%(1) "a"
+string(1) "a"
Call user func, procedural, using references for bound parameter, using variables for resource and types
int(1)
-%unicode|string%(1) "a"
+string(1) "a"
Call user func, procedural, using references for bound parameter, using variables for resource and types
int(1)
-%unicode|string%(1) "a"
+string(1) "a"
Call user func, procedural, using references for bound parameter, using variable for resource, using constant for types
int(1)
-%unicode|string%(1) "a"
+string(1) "a"
Call user func, procedural, using references for bound parameter, using variable for resource, using constant for types, array
int(1)
-%unicode|string%(1) "a"
-done! \ No newline at end of file
+string(1) "a"
+done!
diff --git a/ext/mysqli/tests/mysqli_stmt_bind_param_check_param_no_change.phpt b/ext/mysqli/tests/mysqli_stmt_bind_param_check_param_no_change.phpt
index e7bce112af..bc189dea3f 100644
--- a/ext/mysqli/tests/mysqli_stmt_bind_param_check_param_no_change.phpt
+++ b/ext/mysqli/tests/mysqli_stmt_bind_param_check_param_no_change.phpt
@@ -69,41 +69,41 @@ require_once('skipifconnectfailure.inc');
--EXPECTF--
Test 1:
object(foo)#%d (1) {
- [%u|b%"bar"]=>
- %unicode|string%(%d) "фубар"
+ ["bar"]=>
+ string(%d) "фубар"
}
object(foo)#%d (1) {
- [%u|b%"bar"]=>
- &%unicode|string%(%d) "фубар"
+ ["bar"]=>
+ &string(%d) "фубар"
}
фубар
Test 2:
object(foo)#%d (1) {
- [%u|b%"bar"]=>
- %unicode|string%(%d) "фубар"
+ ["bar"]=>
+ string(%d) "фубар"
}
---
object(foo)#%d (1) {
- [%u|b%"bar"]=>
- &%unicode|string%(%d) "фубар"
+ ["bar"]=>
+ &string(%d) "фубар"
}
---
object(foo)#%d (1) {
- [%u|b%"bar"]=>
- &%unicode|string%(%d) "фубар"
+ ["bar"]=>
+ &string(%d) "фубар"
}
---
фубар - 0
Test 3:
object(foo)#%d (1) {
- [%u|b%"bar"]=>
- %unicode|string%(%d) "фубар"
+ ["bar"]=>
+ string(%d) "фубар"
}
object(foo)#%d (1) {
- [%u|b%"bar"]=>
- &%unicode|string%(%d) "фубар"
+ ["bar"]=>
+ &string(%d) "фубар"
}
0 - фубар
diff --git a/ext/mysqli/tests/mysqli_stmt_bind_result.phpt b/ext/mysqli/tests/mysqli_stmt_bind_result.phpt
index c61cb8efd5..52e9d4b24b 100644
--- a/ext/mysqli/tests/mysqli_stmt_bind_result.phpt
+++ b/ext/mysqli/tests/mysqli_stmt_bind_result.phpt
@@ -10,8 +10,6 @@ require_once('skipifconnectfailure.inc');
<?php
require_once("connect.inc");
- $hint_str_or_unicode = (version_compare(PHP_VERSION, '6.0', '==') == 1) ? "unicode":"string";
-
$tmp = NULL;
$link = NULL;
@@ -243,16 +241,16 @@ require_once('skipifconnectfailure.inc');
func_mysqli_stmt_bind_result($link, $engine, "s", "YEAR", NULL, 1080);
$string255 = func_mysqli_stmt_bind_make_string(255);
- func_mysqli_stmt_bind_result($link, $engine, "s", "CHAR(1)", "a", 1110, $hint_str_or_unicode);
- func_mysqli_stmt_bind_result($link, $engine, "s", "CHAR(255)", $string255, 1120, $hint_str_or_unicode);
- func_mysqli_stmt_bind_result($link, $engine, "s", "CHAR(1) NOT NULL", "a", 1140, $hint_str_or_unicode);
+ func_mysqli_stmt_bind_result($link, $engine, "s", "CHAR(1)", "a", 1110, 'string');
+ func_mysqli_stmt_bind_result($link, $engine, "s", "CHAR(255)", $string255, 1120, 'string');
+ func_mysqli_stmt_bind_result($link, $engine, "s", "CHAR(1) NOT NULL", "a", 1140, 'string');
func_mysqli_stmt_bind_result($link, $engine, "s", "CHAR(1)", NULL, 1160);
$string65k = func_mysqli_stmt_bind_make_string(65535);
- func_mysqli_stmt_bind_result($link, $engine, "s", "VARCHAR(1)", "a", 1180, $hint_str_or_unicode);
- func_mysqli_stmt_bind_result($link, $engine, "s", "VARCHAR(255)", $string255, 1200, $hint_str_or_unicode);
- func_mysqli_stmt_bind_result($link, $engine, "s", "VARCHAR(65635)", $string65k, 1220, $hint_str_or_unicode);
- func_mysqli_stmt_bind_result($link, $engine, "s", "VARCHAR(1) NOT NULL", "a", 1240, $hint_str_or_unicode);
+ func_mysqli_stmt_bind_result($link, $engine, "s", "VARCHAR(1)", "a", 1180, 'string');
+ func_mysqli_stmt_bind_result($link, $engine, "s", "VARCHAR(255)", $string255, 1200, 'string');
+ func_mysqli_stmt_bind_result($link, $engine, "s", "VARCHAR(65635)", $string65k, 1220, 'string');
+ func_mysqli_stmt_bind_result($link, $engine, "s", "VARCHAR(1) NOT NULL", "a", 1240, 'string');
func_mysqli_stmt_bind_result($link, $engine, "s", "VARCHAR(1)", NULL, 1260);
func_mysqli_stmt_bind_result($link, $engine, "s", "BINARY(1)", "a", 1280);
@@ -270,29 +268,29 @@ require_once('skipifconnectfailure.inc');
func_mysqli_stmt_bind_result($link, $engine, "s", "TINYBLOB NOT NULL", "b", 1480);
func_mysqli_stmt_bind_result($link, $engine, "s", "TINYBLOB", NULL, 1500);
- func_mysqli_stmt_bind_result($link, $engine, "s", "TINYTEXT", "a", 1520, $hint_str_or_unicode);
- func_mysqli_stmt_bind_result($link, $engine, "s", "TINYTEXT NOT NULL", "a", 1540, $hint_str_or_unicode);
- func_mysqli_stmt_bind_result($link, $engine, "s", "TINYTEXT", NULL, 1560, $hint_str_or_unicode);
+ func_mysqli_stmt_bind_result($link, $engine, "s", "TINYTEXT", "a", 1520, 'string');
+ func_mysqli_stmt_bind_result($link, $engine, "s", "TINYTEXT NOT NULL", "a", 1540, 'string');
+ func_mysqli_stmt_bind_result($link, $engine, "s", "TINYTEXT", NULL, 1560, 'string');
// Note: you cannot insert any blob values this way. But you can check the API at least partly this way
// Extra BLOB tests are in mysqli_stmt_send_long()
- func_mysqli_stmt_bind_result($link, $engine, "b", "BLOB", b"", 1580);
- func_mysqli_stmt_bind_result($link, $engine, "b", "TEXT", "", 1600, $hint_str_or_unicode);
- func_mysqli_stmt_bind_result($link, $engine, "b", "MEDIUMBLOB", b"", 1620);
- func_mysqli_stmt_bind_result($link, $engine, "b", "MEDIUMTEXT", "", 1640, $hint_str_or_unicode);
+ func_mysqli_stmt_bind_result($link, $engine, "b", "BLOB", "", 1580);
+ func_mysqli_stmt_bind_result($link, $engine, "b", "TEXT", "", 1600, 'string');
+ func_mysqli_stmt_bind_result($link, $engine, "b", "MEDIUMBLOB", "", 1620);
+ func_mysqli_stmt_bind_result($link, $engine, "b", "MEDIUMTEXT", "", 1640, 'string');
/* Is this one related? http://bugs.php.net/bug.php?id=35759 */
if (($IS_MYSQLND) || (!$IS_MYSQLND && (ini_get('memory_limit') > 4294967296))) {
/* NOTE: the MySQL Client Library - not mysqlnd - will allocate
a hugge max_length(type) = 4GB bind buffer */
func_mysqli_stmt_bind_result($link, $engine, "b", "LONGBLOB", "", 1660);
- func_mysqli_stmt_bind_result($link, $engine, "b", "LONGTEXT", "", 1680, $hint_str_or_unicode);
+ func_mysqli_stmt_bind_result($link, $engine, "b", "LONGTEXT", "", 1680, 'string');
}
- func_mysqli_stmt_bind_result($link, $engine, "s", "ENUM('a', 'b')", "a", 1700, $hint_str_or_unicode);
- func_mysqli_stmt_bind_result($link, $engine, "s", "ENUM('a', 'b')", NULL, 1720, $hint_str_or_unicode);
- func_mysqli_stmt_bind_result($link, $engine, "s", "SET('a', 'b')", "a", 1740, $hint_str_or_unicode);
- func_mysqli_stmt_bind_result($link, $engine, "s", "SET('a', 'b')", NULL, 1760, $hint_str_or_unicode);
+ func_mysqli_stmt_bind_result($link, $engine, "s", "ENUM('a', 'b')", "a", 1700, 'string');
+ func_mysqli_stmt_bind_result($link, $engine, "s", "ENUM('a', 'b')", NULL, 1720, 'string');
+ func_mysqli_stmt_bind_result($link, $engine, "s", "SET('a', 'b')", "a", 1740, 'string');
+ func_mysqli_stmt_bind_result($link, $engine, "s", "SET('a', 'b')", NULL, 1760, 'string');
if (mysqli_get_server_version($link) >= 50600)
func_mysqli_stmt_bind_result($link, $engine, "s", "TIME", "13:31:34.123456", 1770, "13:31:34");
diff --git a/ext/mysqli/tests/mysqli_stmt_bind_result_format.phpt b/ext/mysqli/tests/mysqli_stmt_bind_result_format.phpt
index dee5a7e0f0..68ec601e10 100644
--- a/ext/mysqli/tests/mysqli_stmt_bind_result_format.phpt
+++ b/ext/mysqli/tests/mysqli_stmt_bind_result_format.phpt
@@ -117,8 +117,10 @@ memory_limit=83886080
return false;
}
- reset($expected);
- while ((list($k, $v) = each($expected)) && mysqli_stmt_fetch($stmt)) {
+ foreach ($expected as $k => $v) {
+ if (!mysqli_stmt_fetch($stmt)) {
+ break;
+ }
if ($result !== $v) {
printf("[%03d] Row %d - expecting %s/%s got %s/%s [%s] with %s - %s.\n",
$offset + 8,
@@ -269,9 +271,10 @@ memory_limit=83886080
break;
}
- reset($values);
- while (mysqli_stmt_fetch($stmt)) {
- list($exp_trend, $exp_targetport) = each($values);
+ foreach ($values as $exp_trend => $exp_targetport) {
+ if (!mysqli_stmt_fetch($stmt)) {
+ break;
+ }
if ($targetport != $exp_targetport) {
printf("[306] Values fetched from MySQL seem to be wrong, check manually\n");
printf("%s/%s - %s/%s - '%s'\n", $trend, $exp_trend, $targetport, $exp_targetport, $format);
@@ -308,9 +311,10 @@ memory_limit=83886080
break;
}
- reset($values);
- while ($stmt->fetch()) {
- list($exp_trend, $exp_targetport) = each($values);
+ foreach ($values as $exp_trend => $exp_targetport) {
+ if (!$stmt->fetch()) {
+ break;
+ }
if ($targetport != $exp_targetport) {
printf("[312] Values fetched from MySQL seem to be wrong, check manually\n");
printf("%s/%s - %s/%s - '%s'\n", $trend, $exp_trend, $targetport, $exp_targetport, $format);
@@ -334,4 +338,4 @@ memory_limit=83886080
require_once("clean_table.inc");
?>
--EXPECTF--
-done! \ No newline at end of file
+done!
diff --git a/ext/mysqli/tests/mysqli_stmt_bind_result_references.phpt b/ext/mysqli/tests/mysqli_stmt_bind_result_references.phpt
index b8efec5eca..fec6a3f8df 100644
--- a/ext/mysqli/tests/mysqli_stmt_bind_result_references.phpt
+++ b/ext/mysqli/tests/mysqli_stmt_bind_result_references.phpt
@@ -248,67 +248,67 @@ require_once('skipifconnectfailure.inc');
--EXPECTF--
plain vanilla...
int(1)
-%unicode|string%(1) "a"
+string(1) "a"
reference, one level...
int(1)
int(1)
-%unicode|string%(1) "a"
-%unicode|string%(1) "a"
+string(1) "a"
+string(1) "a"
reference, two levels...
int(1)
int(1)
int(1)
-%unicode|string%(1) "a"
-%unicode|string%(1) "a"
-%unicode|string%(1) "a"
+string(1) "a"
+string(1) "a"
+string(1) "a"
reference, $GLOBALS...
int(1)
int(1)
-%unicode|string%(1) "a"
-%unicode|string%(1) "a"
+string(1) "a"
+string(1) "a"
reference, same target...
-%unicode|string%(1) "a"
-%unicode|string%(1) "a"
+string(1) "a"
+string(1) "a"
reference, simple object...
int(1)
-%unicode|string%(1) "a"
+string(1) "a"
reference, simple object w reference...
int(1)
-%unicode|string%(1) "a"
+string(1) "a"
reference, simple object w reference, change after bind...
int(1)
int(1)
-%unicode|string%(1) "a"
+string(1) "a"
int(1)
reference, one level, change after bind...
int(1)
int(1)
-%unicode|string%(1) "a"
-%unicode|string%(1) "a"
+string(1) "a"
+string(1) "a"
reference, circle...
int(1)
-%unicode|string%(1) "a"
-%unicode|string%(1) "a"
+string(1) "a"
+string(1) "a"
reference, object, forward declaration...
int(1)
object(bar)#%d (2) {
- [%u|b%"bar"]=>
- &%unicode|string%(1) "a"
- [%u|b%"foo"]=>
- &%unicode|string%(1) "a"
+ ["bar"]=>
+ &string(1) "a"
+ ["foo"]=>
+ &string(1) "a"
}
-%unicode|string%(1) "a"
+string(1) "a"
references, object, private...
int(1)
-%unicode|string%(1) "a"
+string(1) "a"
object(mega_bar)#5 (4) {
[%s]=>
&int(1)
- [%u|b%"id_ref"]=>
+ ["id_ref"]=>
&int(1)
- [%u|b%"bar"]=>
- &%unicode|string%(1) "a"
- [%u|b%"foo"]=>
- &%unicode|string%(1) "a"
+ ["bar"]=>
+ &string(1) "a"
+ ["foo"]=>
+ &string(1) "a"
}
done!
diff --git a/ext/mysqli/tests/mysqli_stmt_datatype_change.phpt b/ext/mysqli/tests/mysqli_stmt_datatype_change.phpt
index b23f94d81e..3380f0edbb 100644
--- a/ext/mysqli/tests/mysqli_stmt_datatype_change.phpt
+++ b/ext/mysqli/tests/mysqli_stmt_datatype_change.phpt
@@ -81,7 +81,7 @@ NULL
ALTER
bool(true)
bool(false)
-%unicode|string%(34) "Unknown column 'a' in 'field list'"
+string(34) "Unknown column 'a' in 'field list'"
---- Row 1
bool(false)
int(2)
diff --git a/ext/mysqli/tests/mysqli_stmt_get_result.phpt b/ext/mysqli/tests/mysqli_stmt_get_result.phpt
index fe18be40c3..58d7c2fa72 100644
--- a/ext/mysqli/tests/mysqli_stmt_get_result.phpt
+++ b/ext/mysqli/tests/mysqli_stmt_get_result.phpt
@@ -171,15 +171,15 @@ Warning: mysqli_stmt_get_result(): invalid object or resource mysqli_stmt
[038] [2014] [Commands out of sync; you can't run this command now]
[039] [0] []
array(2) {
- [%u|b%"id"]=>
+ ["id"]=>
int(1)
- [%u|b%"label"]=>
+ ["label"]=>
%s(1) "a"
}
array(2) {
- [%u|b%"id"]=>
+ ["id"]=>
int(2)
- [%u|b%"label"]=>
+ ["label"]=>
%s(1) "b"
}
diff --git a/ext/mysqli/tests/mysqli_stmt_get_result2.phpt b/ext/mysqli/tests/mysqli_stmt_get_result2.phpt
index 8c2aad1f12..48f7ed8f30 100644
--- a/ext/mysqli/tests/mysqli_stmt_get_result2.phpt
+++ b/ext/mysqli/tests/mysqli_stmt_get_result2.phpt
@@ -157,17 +157,17 @@ if (!function_exists('mysqli_stmt_get_result'))
?>
--EXPECTF--
array(2) {
- [%u|b%"id"]=>
+ ["id"]=>
int(1)
- [%u|b%"label"]=>
- %unicode|string%(1) "a"
+ ["label"]=>
+ string(1) "a"
}
NULL
array(2) {
- [%u|b%"id"]=>
+ ["id"]=>
int(1)
- [%u|b%"label"]=>
- %unicode|string%(1) "a"
+ ["label"]=>
+ string(1) "a"
}
NULL
[017] [2014] Commands out of sync; you can't run this command now
diff --git a/ext/mysqli/tests/mysqli_stmt_get_result_metadata.phpt b/ext/mysqli/tests/mysqli_stmt_get_result_metadata.phpt
index 86898807ad..879e87f0d8 100644
--- a/ext/mysqli/tests/mysqli_stmt_get_result_metadata.phpt
+++ b/ext/mysqli/tests/mysqli_stmt_get_result_metadata.phpt
@@ -211,10 +211,10 @@ if (!function_exists('mysqli_stmt_get_result'))
?>
--EXPECTF--
array(2) {
- [%u|b%"id"]=>
+ ["id"]=>
int(1)
- [%u|b%"label"]=>
- %unicode|string%(1) "a"
+ ["label"]=>
+ string(1) "a"
}
NULL
bool(false)
diff --git a/ext/mysqli/tests/mysqli_stmt_get_result_metadata_fetch_field.phpt b/ext/mysqli/tests/mysqli_stmt_get_result_metadata_fetch_field.phpt
index 739bf56ea1..5481db04f4 100644
--- a/ext/mysqli/tests/mysqli_stmt_get_result_metadata_fetch_field.phpt
+++ b/ext/mysqli/tests/mysqli_stmt_get_result_metadata_fetch_field.phpt
@@ -67,115 +67,115 @@ if (!function_exists('mysqli_stmt_get_result'))
?>
--EXPECTF--
object(stdClass)#%d (13) {
- [%u|b%"name"]=>
- %unicode|string%(2) "id"
- [%u|b%"orgname"]=>
- %unicode|string%(2) "id"
- [%u|b%"table"]=>
- %unicode|string%(4) "test"
- [%u|b%"orgtable"]=>
- %unicode|string%(4) "test"
- [%u|b%"def"]=>
- %unicode|string%(0) ""
- [%u|b%"db"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"catalog"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"max_length"]=>
+ ["name"]=>
+ string(2) "id"
+ ["orgname"]=>
+ string(2) "id"
+ ["table"]=>
+ string(4) "test"
+ ["orgtable"]=>
+ string(4) "test"
+ ["def"]=>
+ string(0) ""
+ ["db"]=>
+ string(%d) "%s"
+ ["catalog"]=>
+ string(%d) "%s"
+ ["max_length"]=>
int(0)
- [%u|b%"length"]=>
+ ["length"]=>
int(11)
- [%u|b%"charsetnr"]=>
+ ["charsetnr"]=>
int(63)
- [%u|b%"flags"]=>
+ ["flags"]=>
int(49155)
- [%u|b%"type"]=>
+ ["type"]=>
int(3)
- [%u|b%"decimals"]=>
+ ["decimals"]=>
int(0)
}
object(stdClass)#%d (13) {
- [%u|b%"name"]=>
- %unicode|string%(5) "label"
- [%u|b%"orgname"]=>
- %unicode|string%(5) "label"
- [%u|b%"table"]=>
- %unicode|string%(4) "test"
- [%u|b%"orgtable"]=>
- %unicode|string%(4) "test"
- [%u|b%"def"]=>
- %unicode|string%(0) ""
- [%u|b%"db"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"catalog"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"max_length"]=>
+ ["name"]=>
+ string(5) "label"
+ ["orgname"]=>
+ string(5) "label"
+ ["table"]=>
+ string(4) "test"
+ ["orgtable"]=>
+ string(4) "test"
+ ["def"]=>
+ string(0) ""
+ ["db"]=>
+ string(%d) "%s"
+ ["catalog"]=>
+ string(%d) "%s"
+ ["max_length"]=>
int(%d)
- [%u|b%"length"]=>
+ ["length"]=>
int(%d)
- [%u|b%"charsetnr"]=>
+ ["charsetnr"]=>
int(%d)
- [%u|b%"flags"]=>
+ ["flags"]=>
int(0)
- [%u|b%"type"]=>
+ ["type"]=>
int(254)
- [%u|b%"decimals"]=>
+ ["decimals"]=>
int(0)
}
object(stdClass)#%d (13) {
- [%u|b%"name"]=>
- %unicode|string%(3) "_id"
- [%u|b%"orgname"]=>
- %unicode|string%(0) ""
- [%u|b%"table"]=>
- %unicode|string%(0) ""
- [%u|b%"orgtable"]=>
- %unicode|string%(0) ""
- [%u|b%"def"]=>
- %unicode|string%(0) ""
- [%u|b%"db"]=>
- %unicode|string%(0) ""
- [%u|b%"catalog"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"max_length"]=>
+ ["name"]=>
+ string(3) "_id"
+ ["orgname"]=>
+ string(0) ""
+ ["table"]=>
+ string(0) ""
+ ["orgtable"]=>
+ string(0) ""
+ ["def"]=>
+ string(0) ""
+ ["db"]=>
+ string(0) ""
+ ["catalog"]=>
+ string(%d) "%s"
+ ["max_length"]=>
int(0)
- [%u|b%"length"]=>
+ ["length"]=>
int(%d)
- [%u|b%"charsetnr"]=>
+ ["charsetnr"]=>
int(63)
- [%u|b%"flags"]=>
+ ["flags"]=>
int(32897)
- [%u|b%"type"]=>
+ ["type"]=>
int(8)
- [%u|b%"decimals"]=>
+ ["decimals"]=>
int(0)
}
object(stdClass)#%d (13) {
- [%u|b%"name"]=>
- %unicode|string%(8) "___label"
- [%u|b%"orgname"]=>
- %unicode|string%(0) ""
- [%u|b%"table"]=>
- %unicode|string%(0) ""
- [%u|b%"orgtable"]=>
- %unicode|string%(0) ""
- [%u|b%"def"]=>
- %unicode|string%(0) ""
- [%u|b%"db"]=>
- %unicode|string%(0) ""
- [%u|b%"catalog"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"max_length"]=>
+ ["name"]=>
+ string(8) "___label"
+ ["orgname"]=>
+ string(0) ""
+ ["table"]=>
+ string(0) ""
+ ["orgtable"]=>
+ string(0) ""
+ ["def"]=>
+ string(0) ""
+ ["db"]=>
+ string(0) ""
+ ["catalog"]=>
+ string(%d) "%s"
+ ["max_length"]=>
int(%d)
- [%u|b%"length"]=>
+ ["length"]=>
int(%d)
- [%u|b%"charsetnr"]=>
+ ["charsetnr"]=>
int(%d)
- [%u|b%"flags"]=>
+ ["flags"]=>
int(0)
- [%u|b%"type"]=>
+ ["type"]=>
int(253)
- [%u|b%"decimals"]=>
+ ["decimals"]=>
int(31)
}
done!
diff --git a/ext/mysqli/tests/mysqli_stmt_get_result_types.phpt b/ext/mysqli/tests/mysqli_stmt_get_result_types.phpt
index 643e9080c4..7b6d3c26a0 100644
--- a/ext/mysqli/tests/mysqli_stmt_get_result_types.phpt
+++ b/ext/mysqli/tests/mysqli_stmt_get_result_types.phpt
@@ -15,8 +15,6 @@ mysqli_stmt_get_result - data types
if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
printf("[001] [%d] %s\n", mysqli_connect_errno(), mysqli_connect_error());
- $hint_str_or_unicode = (version_compare(PHP_VERSION, '6.0', '==') == 1) ? 'unicode' : 'string';
-
function func_mysqli_stmt_get_result($link, $engine, $bind_type, $sql_type, $bind_value, $offset, $type_hint = null) {
if (!mysqli_query($link, "DROP TABLE IF EXISTS test")) {
@@ -201,16 +199,16 @@ mysqli_stmt_get_result - data types
func_mysqli_stmt_get_result($link, $engine, "s", "YEAR", NULL, 1080);
$string255 = func_mysqli_stmt_bind_make_string(255);
- func_mysqli_stmt_get_result($link, $engine, "s", "CHAR(1)", "a", 1110, $hint_str_or_unicode);
- func_mysqli_stmt_get_result($link, $engine, "s", "CHAR(255)", $string255, 1120, $hint_str_or_unicode);
- func_mysqli_stmt_get_result($link, $engine, "s", "CHAR(1) NOT NULL", "a", 1140, $hint_str_or_unicode);
+ func_mysqli_stmt_get_result($link, $engine, "s", "CHAR(1)", "a", 1110, 'string');
+ func_mysqli_stmt_get_result($link, $engine, "s", "CHAR(255)", $string255, 1120, 'string');
+ func_mysqli_stmt_get_result($link, $engine, "s", "CHAR(1) NOT NULL", "a", 1140, 'string');
func_mysqli_stmt_get_result($link, $engine, "s", "CHAR(1)", NULL, 1160);
$string65k = func_mysqli_stmt_bind_make_string(65535);
- func_mysqli_stmt_get_result($link, $engine, "s", "VARCHAR(1)", "a", 1180, $hint_str_or_unicode);
- func_mysqli_stmt_get_result($link, $engine, "s", "VARCHAR(255)", $string255, 1200, $hint_str_or_unicode);
- func_mysqli_stmt_get_result($link, $engine, "s", "VARCHAR(65635)", $string65k, 1220, $hint_str_or_unicode);
- func_mysqli_stmt_get_result($link, $engine, "s", "VARCHAR(1) NOT NULL", "a", 1240, $hint_str_or_unicode);
+ func_mysqli_stmt_get_result($link, $engine, "s", "VARCHAR(1)", "a", 1180, 'string');
+ func_mysqli_stmt_get_result($link, $engine, "s", "VARCHAR(255)", $string255, 1200, 'string');
+ func_mysqli_stmt_get_result($link, $engine, "s", "VARCHAR(65635)", $string65k, 1220, 'string');
+ func_mysqli_stmt_get_result($link, $engine, "s", "VARCHAR(1) NOT NULL", "a", 1240, 'string');
func_mysqli_stmt_get_result($link, $engine, "s", "VARCHAR(1)", NULL, 1260);
func_mysqli_stmt_get_result($link, $engine, "s", "BINARY(1)", "a", 1280);
@@ -228,25 +226,25 @@ mysqli_stmt_get_result - data types
func_mysqli_stmt_get_result($link, $engine, "s", "TINYBLOB NOT NULL", "b", 1480);
func_mysqli_stmt_get_result($link, $engine, "s", "TINYBLOB", NULL, 1500);
- func_mysqli_stmt_get_result($link, $engine, "s", "TINYTEXT", "a", 1520, $hint_str_or_unicode);
- func_mysqli_stmt_get_result($link, $engine, "s", "TINYTEXT NOT NULL", "a", 1540, $hint_str_or_unicode);
- func_mysqli_stmt_get_result($link, $engine, "s", "TINYTEXT", NULL, 1560, $hint_str_or_unicode);
+ func_mysqli_stmt_get_result($link, $engine, "s", "TINYTEXT", "a", 1520, 'string');
+ func_mysqli_stmt_get_result($link, $engine, "s", "TINYTEXT NOT NULL", "a", 1540, 'string');
+ func_mysqli_stmt_get_result($link, $engine, "s", "TINYTEXT", NULL, 1560, 'string');
// Note: you cannot insert any blob values this way. But you can check the API at least partly this way
// Extra BLOB tests are in mysqli_stmt_send_long()
- func_mysqli_stmt_get_result($link, $engine, "b", "BLOB", b"", 1580);
- func_mysqli_stmt_get_result($link, $engine, "b", "TEXT", "", 1600, $hint_str_or_unicode);
- func_mysqli_stmt_get_result($link, $engine, "b", "MEDIUMBLOB", b"", 1620);
- func_mysqli_stmt_get_result($link, $engine, "b", "MEDIUMTEXT", "", 1640, $hint_str_or_unicode);
+ func_mysqli_stmt_get_result($link, $engine, "b", "BLOB", "", 1580);
+ func_mysqli_stmt_get_result($link, $engine, "b", "TEXT", "", 1600, 'string');
+ func_mysqli_stmt_get_result($link, $engine, "b", "MEDIUMBLOB", "", 1620);
+ func_mysqli_stmt_get_result($link, $engine, "b", "MEDIUMTEXT", "", 1640, 'string');
/* Is this one related? http://bugs.php.net/bug.php?id=35759 */
func_mysqli_stmt_get_result($link, $engine, "b", "LONGBLOB", "", 1660);
- func_mysqli_stmt_get_result($link, $engine, "b", "LONGTEXT", "", 1680, $hint_str_or_unicode);
+ func_mysqli_stmt_get_result($link, $engine, "b", "LONGTEXT", "", 1680, 'string');
- func_mysqli_stmt_get_result($link, $engine, "s", "ENUM('a', 'b')", "a", 1700, $hint_str_or_unicode);
- func_mysqli_stmt_get_result($link, $engine, "s", "ENUM('a', 'b')", NULL, 1720, $hint_str_or_unicode);
- func_mysqli_stmt_get_result($link, $engine, "s", "SET('a', 'b')", "a", 1740, $hint_str_or_unicode);
- func_mysqli_stmt_get_result($link, $engine, "s", "SET('a', 'b')", NULL, 1760, $hint_str_or_unicode);
+ func_mysqli_stmt_get_result($link, $engine, "s", "ENUM('a', 'b')", "a", 1700, 'string');
+ func_mysqli_stmt_get_result($link, $engine, "s", "ENUM('a', 'b')", NULL, 1720, 'string');
+ func_mysqli_stmt_get_result($link, $engine, "s", "SET('a', 'b')", "a", 1740, 'string');
+ func_mysqli_stmt_get_result($link, $engine, "s", "SET('a', 'b')", NULL, 1760, 'string');
mysqli_close($link);
print "done!";
@@ -256,4 +254,4 @@ mysqli_stmt_get_result - data types
require_once("clean_table.inc");
?>
--EXPECTF--
-done! \ No newline at end of file
+done!
diff --git a/ext/mysqli/tests/mysqli_stmt_result_metadata.phpt b/ext/mysqli/tests/mysqli_stmt_result_metadata.phpt
index a38706f1a1..5fd76a2628 100644
--- a/ext/mysqli/tests/mysqli_stmt_result_metadata.phpt
+++ b/ext/mysqli/tests/mysqli_stmt_result_metadata.phpt
@@ -102,31 +102,31 @@ require_once('skipifconnectfailure.inc');
Warning: mysqli_stmt_result_metadata(): invalid object or resource mysqli_stmt
in %s on line %d
object(stdClass)#5 (13) {
- [%u|b%"name"]=>
- %unicode|string%(2) "id"
- [%u|b%"orgname"]=>
- %unicode|string%(2) "id"
- [%u|b%"table"]=>
- %unicode|string%(4) "test"
- [%u|b%"orgtable"]=>
- %unicode|string%(4) "test"
- [%u|b%"def"]=>
- %unicode|string%(0) ""
- [%u|b%"db"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"catalog"]=>
- %unicode|string%(%d) "%s"
- [%u|b%"max_length"]=>
+ ["name"]=>
+ string(2) "id"
+ ["orgname"]=>
+ string(2) "id"
+ ["table"]=>
+ string(4) "test"
+ ["orgtable"]=>
+ string(4) "test"
+ ["def"]=>
+ string(0) ""
+ ["db"]=>
+ string(%d) "%s"
+ ["catalog"]=>
+ string(%d) "%s"
+ ["max_length"]=>
int(0)
- [%u|b%"length"]=>
+ ["length"]=>
int(11)
- [%u|b%"charsetnr"]=>
+ ["charsetnr"]=>
int(63)
- [%u|b%"flags"]=>
+ ["flags"]=>
int(49155)
- [%u|b%"type"]=>
+ ["type"]=>
int(3)
- [%u|b%"decimals"]=>
+ ["decimals"]=>
int(0)
}
diff --git a/ext/mysqli/tests/skipifunicode.inc b/ext/mysqli/tests/skipifunicode.inc
deleted file mode 100644
index 89258d498e..0000000000
--- a/ext/mysqli/tests/skipifunicode.inc
+++ /dev/null
@@ -1,5 +0,0 @@
-<?php
-if (version_compare(PHP_VERSION, '6.0', '==') == 1) {
- die('skip Not functional with PHP 6 (fomerly PHP 6 && unicode.semantics=On)');
-}
-?>