]> granicus.if.org Git - php/commitdiff
MFH - what a wonderful word. After the change in HEAD its easy to do a merge. The...
authorUlf Wendel <uw@php.net>
Thu, 28 May 2009 14:33:43 +0000 (14:33 +0000)
committerUlf Wendel <uw@php.net>
Thu, 28 May 2009 14:33:43 +0000 (14:33 +0000)
132 files changed:
ext/mysqli/tests/002.phpt
ext/mysqli/tests/003.phpt
ext/mysqli/tests/004.phpt
ext/mysqli/tests/005.phpt
ext/mysqli/tests/009.phpt
ext/mysqli/tests/010.phpt
ext/mysqli/tests/011.phpt
ext/mysqli/tests/012.phpt
ext/mysqli/tests/014.phpt
ext/mysqli/tests/015.phpt
ext/mysqli/tests/016.phpt
ext/mysqli/tests/017.phpt
ext/mysqli/tests/019.phpt
ext/mysqli/tests/020.phpt
ext/mysqli/tests/021.phpt
ext/mysqli/tests/022.phpt
ext/mysqli/tests/026.phpt
ext/mysqli/tests/028.phpt
ext/mysqli/tests/031.phpt
ext/mysqli/tests/032.phpt
ext/mysqli/tests/033.phpt
ext/mysqli/tests/042.phpt
ext/mysqli/tests/043.phpt
ext/mysqli/tests/045.phpt
ext/mysqli/tests/047.phpt
ext/mysqli/tests/048.phpt
ext/mysqli/tests/049.phpt
ext/mysqli/tests/056.phpt
ext/mysqli/tests/057.phpt
ext/mysqli/tests/058.phpt
ext/mysqli/tests/059.phpt
ext/mysqli/tests/060.phpt
ext/mysqli/tests/061.phpt
ext/mysqli/tests/062.phpt
ext/mysqli/tests/063.phpt
ext/mysqli/tests/065.phpt
ext/mysqli/tests/068.phpt
ext/mysqli/tests/069.phpt
ext/mysqli/tests/072.phpt
ext/mysqli/tests/073.phpt
ext/mysqli/tests/074.phpt
ext/mysqli/tests/bug34810.phpt
ext/mysqli/tests/bug35517.phpt
ext/mysqli/tests/bug45019.phpt
ext/mysqli/tests/mysqli_affected_rows.phpt
ext/mysqli/tests/mysqli_affected_rows_oo.phpt
ext/mysqli/tests/mysqli_change_user_insert_id.phpt
ext/mysqli/tests/mysqli_change_user_prepared_statements.phpt
ext/mysqli/tests/mysqli_change_user_set_names.phpt
ext/mysqli/tests/mysqli_character_set.phpt
ext/mysqli/tests/mysqli_class_mysqli_interface.phpt
ext/mysqli/tests/mysqli_class_mysqli_result_interface.phpt
ext/mysqli/tests/mysqli_class_mysqli_stmt_interface.phpt
ext/mysqli/tests/mysqli_connect.phpt
ext/mysqli/tests/mysqli_connect_oo_defaults.phpt
ext/mysqli/tests/mysqli_connect_twice.phpt
ext/mysqli/tests/mysqli_debug_ini.phpt
ext/mysqli/tests/mysqli_error_unicode.phpt
ext/mysqli/tests/mysqli_fetch_all.phpt
ext/mysqli/tests/mysqli_fetch_all_oo.phpt
ext/mysqli/tests/mysqli_fetch_array.phpt
ext/mysqli/tests/mysqli_fetch_array_assoc.phpt
ext/mysqli/tests/mysqli_fetch_array_oo.phpt
ext/mysqli/tests/mysqli_fetch_assoc.phpt
ext/mysqli/tests/mysqli_fetch_assoc_no_alias.phpt
ext/mysqli/tests/mysqli_fetch_assoc_no_alias_utf8.phpt
ext/mysqli/tests/mysqli_fetch_assoc_oo.phpt
ext/mysqli/tests/mysqli_fetch_field.phpt
ext/mysqli/tests/mysqli_fetch_field_direct.phpt
ext/mysqli/tests/mysqli_fetch_field_direct_oo.phpt
ext/mysqli/tests/mysqli_fetch_field_flags.phpt
ext/mysqli/tests/mysqli_fetch_field_oo.phpt
ext/mysqli/tests/mysqli_fetch_field_types.phpt
ext/mysqli/tests/mysqli_fetch_fields.phpt
ext/mysqli/tests/mysqli_fetch_object_no_constructor.phpt
ext/mysqli/tests/mysqli_fetch_row.phpt
ext/mysqli/tests/mysqli_field_count.phpt
ext/mysqli/tests/mysqli_field_seek.phpt
ext/mysqli/tests/mysqli_field_tell.phpt
ext/mysqli/tests/mysqli_fork.phpt
ext/mysqli/tests/mysqli_get_cache_stats.phpt
ext/mysqli/tests/mysqli_get_cache_stats_free_buffered.phpt
ext/mysqli/tests/mysqli_get_charset.phpt
ext/mysqli/tests/mysqli_get_client_stats.phpt
ext/mysqli/tests/mysqli_info.phpt
ext/mysqli/tests/mysqli_kill.phpt
ext/mysqli/tests/mysqli_pconn_disabled.phpt
ext/mysqli/tests/mysqli_pconn_kill.phpt
ext/mysqli/tests/mysqli_pconn_limits.phpt
ext/mysqli/tests/mysqli_pconn_max_links.phpt
ext/mysqli/tests/mysqli_pconn_reuse.phpt
ext/mysqli/tests/mysqli_poll_kill.phpt
ext/mysqli/tests/mysqli_poll_mixing_insert_select.phpt
ext/mysqli/tests/mysqli_prepare.phpt
ext/mysqli/tests/mysqli_query.phpt
ext/mysqli/tests/mysqli_query_stored_proc.phpt
ext/mysqli/tests/mysqli_query_unicode.phpt
ext/mysqli/tests/mysqli_real_connect.phpt
ext/mysqli/tests/mysqli_real_escape_string_big5.phpt
ext/mysqli/tests/mysqli_real_escape_string_eucjpms.phpt
ext/mysqli/tests/mysqli_real_escape_string_euckr.phpt
ext/mysqli/tests/mysqli_real_escape_string_gb2312.phpt
ext/mysqli/tests/mysqli_real_escape_string_gbk.phpt
ext/mysqli/tests/mysqli_real_escape_string_nobackslash.phpt
ext/mysqli/tests/mysqli_real_escape_string_sjis.phpt
ext/mysqli/tests/mysqli_real_query.phpt
ext/mysqli/tests/mysqli_report.phpt
ext/mysqli/tests/mysqli_result_references.phpt
ext/mysqli/tests/mysqli_result_references_mysqlnd.phpt
ext/mysqli/tests/mysqli_set_charset.phpt
ext/mysqli/tests/mysqli_set_local_infile_handler.phpt
ext/mysqli/tests/mysqli_set_local_infile_handler_replace_buffer.phpt
ext/mysqli/tests/mysqli_set_opt_numeric_and_datetime_as_unicode.phpt
ext/mysqli/tests/mysqli_stmt_affected_rows.phpt
ext/mysqli/tests/mysqli_stmt_bind_param_call_user_func.phpt
ext/mysqli/tests/mysqli_stmt_bind_param_type_juggling.phpt
ext/mysqli/tests/mysqli_stmt_bind_result.phpt
ext/mysqli/tests/mysqli_stmt_bind_result_bit.phpt
ext/mysqli/tests/mysqli_stmt_bind_result_references.phpt
ext/mysqli/tests/mysqli_stmt_datatype_change.phpt
ext/mysqli/tests/mysqli_stmt_execute_stored_proc.phpt
ext/mysqli/tests/mysqli_stmt_field_count.phpt
ext/mysqli/tests/mysqli_stmt_get_result.phpt
ext/mysqli/tests/mysqli_stmt_get_result2.phpt
ext/mysqli/tests/mysqli_stmt_get_result_metadata.phpt
ext/mysqli/tests/mysqli_stmt_get_result_non_select.phpt
ext/mysqli/tests/mysqli_stmt_get_result_types.phpt
ext/mysqli/tests/mysqli_stmt_result_metadata.phpt
ext/mysqli/tests/mysqli_stmt_result_metadata_sqltests.phpt
ext/mysqli/tests/mysqli_stmt_send_long_data.phpt
ext/mysqli/tests/mysqli_stmt_send_long_data_packet_size_mysqlnd.phpt
ext/mysqli/tests/mysqli_stmt_store_result.phpt

index ac3e611406df805b0eb53ff2d525beb6651fa7bf..c41a070bf463699e27aca9e54e8d9e68bae20b86 100644 (file)
@@ -67,34 +67,8 @@ array(11) {
   [8]=>
   NULL
   [9]=>
-  string(4) "foo1"
+  %unicode|string%(4) "foo1"
   [10]=>
-  string(4) "1000"
+  %unicode|string%(4) "1000"
 }
-done!
---UEXPECTF--
-array(11) {
-  [0]=>
-  int(1)
-  [1]=>
-  NULL
-  [2]=>
-  NULL
-  [3]=>
-  NULL
-  [4]=>
-  NULL
-  [5]=>
-  NULL
-  [6]=>
-  NULL
-  [7]=>
-  NULL
-  [8]=>
-  NULL
-  [9]=>
-  unicode(4) "foo1"
-  [10]=>
-  unicode(4) "1000"
-}
-done!
+done!
\ No newline at end of file
index 89dbf11605a4d116198ea05cdba820e6dcc64eb6..5a8d13c0234011f915ff1f9de355778bcdca0b02 100644 (file)
@@ -75,36 +75,18 @@ require_once('skipifconnectfailure.inc');
 --EXPECTF--
 array(7) {
   [0]=>
-  string(10) "2002-01-02"
+  %unicode|string%(10) "2002-01-02"
   [1]=>
-  string(8) "12:49:00"
+  %unicode|string%(8) "12:49:00"
   [2]=>
-  string(19) "2002-01-02 17:46:59"
+  %unicode|string%(19) "2002-01-02 17:46:59"
   [3]=>
   int(2010)
   [4]=>
-  string(19) "2010-07-10 00:00:00"
+  %unicode|string%(19) "2010-07-10 00:00:00"
   [5]=>
-  string(19) "0000-00-00 00:00:00"
+  %unicode|string%(19) "0000-00-00 00:00:00"
   [6]=>
-  string(19) "1999-12-29 00:00:00"
+  %unicode|string%(19) "1999-12-29 00:00:00"
 }
-done!
---UEXPECTF--
-array(7) {
-  [0]=>
-  unicode(10) "2002-01-02"
-  [1]=>
-  unicode(8) "12:49:00"
-  [2]=>
-  unicode(19) "2002-01-02 17:46:59"
-  [3]=>
-  int(2010)
-  [4]=>
-  unicode(19) "2010-07-10 00:00:00"
-  [5]=>
-  unicode(19) "0000-00-00 00:00:00"
-  [6]=>
-  unicode(19) "1999-12-29 00:00:00"
-}
-done!
+done!
\ No newline at end of file
index 4aab97dacf0af3d49f7758e5b14986aebd70729f..d4d318fc301510f660547d015e9ca565d60a349a 100644 (file)
@@ -50,52 +50,26 @@ require_once('skipifconnectfailure.inc');
 --EXPECTF--
 array(2) {
   [0]=>
-  string(10) "1234567890"
+  %unicode|string%(10) "1234567890"
   [1]=>
-  string(15) "this is a test0"
+  %unicode|string%(15) "this is a test0"
 }
 array(2) {
   [0]=>
-  string(10) "1234567891"
+  %unicode|string%(10) "1234567891"
   [1]=>
-  string(15) "this is a test1"
+  %unicode|string%(15) "this is a test1"
 }
 array(2) {
   [0]=>
-  string(10) "1234567892"
+  %unicode|string%(10) "1234567892"
   [1]=>
-  string(15) "this is a test2"
+  %unicode|string%(15) "this is a test2"
 }
 array(2) {
   [0]=>
-  string(10) "1234567893"
+  %unicode|string%(10) "1234567893"
   [1]=>
-  string(15) "this is a test3"
-}
-done!
---UEXPECTF--
-array(2) {
-  [0]=>
-  unicode(10) "1234567890"
-  [1]=>
-  unicode(15) "this is a test0"
-}
-array(2) {
-  [0]=>
-  unicode(10) "1234567891"
-  [1]=>
-  unicode(15) "this is a test1"
-}
-array(2) {
-  [0]=>
-  unicode(10) "1234567892"
-  [1]=>
-  unicode(15) "this is a test2"
-}
-array(2) {
-  [0]=>
-  unicode(10) "1234567893"
-  [1]=>
-  unicode(15) "this is a test3"
+  %unicode|string%(15) "this is a test3"
 }
 done!
\ No newline at end of file
index a05dc501b0604d4edf21c877ee9b1490113fa895..0ceabafaa6d83687d43c69df8419bbb2cf81fdd4 100644 (file)
@@ -40,16 +40,8 @@ require_once('skipifconnectfailure.inc');
 --EXPECTF--
 array(2) {
   [0]=>
-  string(10) "1234567890"
+  %unicode|string%(10) "1234567890"
   [1]=>
-  string(13) "32K String ok"
-}
-done!
---UEXPECTF--
-array(2) {
-  [0]=>
-  unicode(10) "1234567890"
-  [1]=>
-  unicode(13) "32K String ok"
+  %unicode|string%(13) "32K String ok"
 }
 done!
\ No newline at end of file
index 5a498953be99b84eb9f97bf319e91f91fa7b845d..4ed87950e61596b3832850a08112486e0ab26fd4 100644 (file)
@@ -88,7 +88,7 @@ array(8) {
   [2]=>
   int(4)
   [3]=>
-  string(14) "33333333333333"
+  %unicode|string%(14) "33333333333333"
   [4]=>
   int(0)
   [5]=>
@@ -100,26 +100,4 @@ array(8) {
 }
 20123456
 3123456789
-done!
---UEXPECTF--
-array(8) {
-  [0]=>
-  int(5)
-  [1]=>
-  int(-23)
-  [2]=>
-  int(4)
-  [3]=>
-  unicode(14) "33333333333333"
-  [4]=>
-  int(0)
-  [5]=>
-  int(0)
-  [6]=>
-  int(100)
-  [7]=>
-  int(4567)
-}
-20123456
-3123456789
-done!
+done!
\ No newline at end of file
index fc5aae8c5e076fe1130e84f58be4de5464f6e4c8..13752b1ab265adf289866d67f839cdfc69b919ba 100644 (file)
@@ -65,4 +65,4 @@ array(7) {
   [6]=>
   float(8.88888914608E+14)
 }
-done!
+done!
\ No newline at end of file
index e3b5922eaa8427d5e967dac85f14d4535aaf6bd1..ace0a88b9867d11a0dae30e72e8d3ef8dfb708d7 100644 (file)
@@ -62,26 +62,6 @@ array(8) {
   [6]=>
   string(6) "foobar"
   [7]=>
-  string(11) "mysql rulez"
-}
-done!
---UEXPECTF--
-array(8) {
-  [0]=>
-  int(19)
-  [1]=>
-  int(2999)
-  [2]=>
-  int(3999)
-  [3]=>
-  int(4999999)
-  [4]=>
-  float(2345.60009766)
-  [5]=>
-  float(5678.89563)
-  [6]=>
-  string(6) "foobar"
-  [7]=>
-  unicode(11) "mysql rulez"
+  %unicode|string%(11) "mysql rulez"
 }
 done!
\ No newline at end of file
index eb2f6410cebc3d6226923947ba2f5c9f62d09f0c..5f2e4d1ddb79410111a6eeeb3233f0eef41bc107 100644 (file)
@@ -61,26 +61,6 @@ array(8) {
   [6]=>
   string(3) "206"
   [7]=>
-  string(3) "6.7"
-}
-done!
---UEXPECTF--
-array(8) {
-  [0]=>
-  int(120)
-  [1]=>
-  int(2999)
-  [2]=>
-  int(3999)
-  [3]=>
-  int(54)
-  [4]=>
-  float(2.59999990463)
-  [5]=>
-  float(58.89)
-  [6]=>
-  string(3) "206"
-  [7]=>
-  unicode(3) "6.7"
+  %unicode|string%(3) "6.7"
 }
 done!
\ No newline at end of file
index 1f845f8e6f07350557222ef3b56b37de582dd654..eb2b7322e9241ecc73e477f8766f849f345dd6f4 100644 (file)
@@ -86,29 +86,14 @@ mysqli autocommit/commit/rollback
 Num_of_rows=1
 array(2) {
   [0]=>
-  string(1) "1"
+  %unicode|string%(1) "1"
   [1]=>
-  string(6) "foobar"
+  %unicode|string%(6) "foobar"
 }
 array(2) {
   [0]=>
-  string(1) "2"
+  %unicode|string%(1) "2"
   [1]=>
-  string(4) "egon"
-}
-done!
---UEXPECTF--
-Num_of_rows=1
-array(2) {
-  [0]=>
-  unicode(1) "1"
-  [1]=>
-  unicode(6) "foobar"
-}
-array(2) {
-  [0]=>
-  unicode(1) "2"
-  [1]=>
-  unicode(4) "egon"
+  %unicode|string%(4) "egon"
 }
 done!
\ No newline at end of file
index ac50fc8c6d5259fb6b761796f26cdbf74e57aadc..8eaddfc8462e6a15db746784aef0cc4dac7b3879 100644 (file)
@@ -80,28 +80,14 @@ mysqli autocommit/commit/rollback with innodb
 --EXPECTF--
 array(2) {
   [0]=>
-  string(1) "1"
+  %unicode|string%(1) "1"
   [1]=>
-  string(6) "foobar"
+  %unicode|string%(6) "foobar"
 }
 array(2) {
   [0]=>
-  string(1) "2"
+  %unicode|string%(1) "2"
   [1]=>
-  string(4) "egon"
-}
-done!
---UEXPECTF--
-array(2) {
-  [0]=>
-  unicode(1) "1"
-  [1]=>
-  unicode(6) "foobar"
-}
-array(2) {
-  [0]=>
-  unicode(1) "2"
-  [1]=>
-  unicode(4) "egon"
+  %unicode|string%(4) "egon"
 }
 done!
\ No newline at end of file
index 3e058ea69cf217af9440b8fb6aa98cf7d82a60e1..286df398d30dd1d56898edd7de5af0c0a7d385f5 100644 (file)
@@ -1,14 +1,14 @@
 --TEST--
-mysqli fetch user variable 
+mysqli fetch user variable
 --SKIPIF--
-<?php 
-require_once('skipif.inc'); 
+<?php
+require_once('skipif.inc');
 require_once('skipifconnectfailure.inc');
 ?>
 --FILE--
 <?php
        include "connect.inc";
-       
+
        /*** test mysqli_connect 127.0.0.1 ***/
        $link = mysqli_connect($host, $user, $passwd, $db, $port, $socket);
 
@@ -17,7 +17,7 @@ require_once('skipifconnectfailure.inc');
 
        if (!$stmt = mysqli_prepare($link, "SELECT @dummy"))
                printf("[002] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
-               
+
        mysqli_bind_result($stmt, $dummy);
        mysqli_execute($stmt);
        mysqli_fetch($stmt);
@@ -29,8 +29,5 @@ require_once('skipifconnectfailure.inc');
        print "done!";
 ?>
 --EXPECTF--
-string(6) "foobar"
-done!
---UEXPECTF--
-unicode(6) "foobar"
-done!
+%unicode|string%(6) "foobar"
+done!
\ No newline at end of file
index 8acac0e5bcb3d390c6ed51585d6ae02e2f3928af..d201c7b80ee9939d52648c42a9b1c0265756badb 100644 (file)
@@ -36,18 +36,8 @@ array(3) {
   [0]=>
   string(32) "37b51d194a7513e45b56f6524f2d51f2"
   [1]=>
-  string(%d) "%s"
+  %unicode|string%(%d) "%s"
   [2]=>
-  string(3) "foo"
+  %unicode|string%(3) "foo"
 }
-done!
---UEXPECTF--
-array(3) {
-  [0]=>
-  string(32) "37b51d194a7513e45b56f6524f2d51f2"
-  [1]=>
-  unicode(%d) "%s"
-  [2]=>
-  unicode(3) "foo"
-}
-done!
+done!
\ No newline at end of file
index 964ed8fa47aa4df907973fc16bab8805917610ac..30a55aa3c06397bd20d0debf6f801c5ae9930cbb 100644 (file)
@@ -76,34 +76,8 @@ array(11) {
   [8]=>
   NULL
   [9]=>
-  string(3) "foo"
+  %unicode|string%(3) "foo"
   [10]=>
-  string(6) "foobar"
-}
-done!
---UEXPECTF--
-array(11) {
-  [0]=>
-  int(1)
-  [1]=>
-  NULL
-  [2]=>
-  NULL
-  [3]=>
-  NULL
-  [4]=>
-  NULL
-  [5]=>
-  float(3.14)
-  [6]=>
-  NULL
-  [7]=>
-  NULL
-  [8]=>
-  NULL
-  [9]=>
-  unicode(3) "foo"
-  [10]=>
-  unicode(6) "foobar"
+  %unicode|string%(6) "foobar"
 }
 done!
\ No newline at end of file
index 851ccde31bec71c3cb50fd7166de87711f4bb431..9035cceb9ff64be1e40b087930c7e5dc0076b80a 100644 (file)
@@ -7,10 +7,6 @@ require_once('skipifconnectfailure.inc');
 ?>
 --FILE--
 <?php
-       /* NOTE: There's an option in mysqlnd which controls if data and
-       time are returned as unicode or not. Consider this if you consider
-       adding a UEXPECTF to the test. */
-
        include "connect.inc";
 
        /*** test mysqli_connect 127.0.0.1 ***/
index 955af29558557eaa40560c7e0388b9e5b61a6e9e..28e2800a012de37a98a6cccb6a3b266f1028747c 100644 (file)
@@ -41,16 +41,8 @@ require_once('skipifconnectfailure.inc');
 --EXPECTF--
 array(2) {
   [0]=>
-  string(10) "1234567890"
+  %unicode|string%(10) "1234567890"
   [1]=>
-  %s(14) "this is a test"
-}
-done!
---UEXPECTF--
-array(2) {
-  [0]=>
-  unicode(10) "1234567890"
-  [1]=>
-  %s(14) "this is a test"
+  %unicode|string%(14) "this is a test"
 }
 done!
\ No newline at end of file
index 0ab5179e85fcc0d549d3049e3b474b8303f59ab4..36fdd7cee40370cbd2210e97d6921ccfced03227 100644 (file)
@@ -46,15 +46,7 @@ require_once('skipifconnectfailure.inc');
 --EXPECTF--
 array(2) {
   [0]=>
-  string(10) "1234567890"
-  [1]=>
-  %s(13) "32K String ok"
-}
-done!
---UEXPECTF--
-array(2) {
-  [0]=>
-  unicode(10) "1234567890"
+  %unicode|string%(10) "1234567890"
   [1]=>
   %s(13) "32K String ok"
 }
index ebf94fa5ace0c55a2fd6ebaf736a066d6f1022e2..597a16d1293a9e99a42664038263f8c4058fd746 100644 (file)
@@ -46,16 +46,8 @@ require_once('skipifconnectfailure.inc');
 --EXPECTF--
 array(2) {
   [0]=>
-  string(10) "Hello Worl"
+  %unicode|string%(10) "Hello Worl"
   [1]=>
-  string(99) "This is the first sentence. And this is the second sentence. And finally this is the last sentence."
-}
-done!
---UEXPECTF--
-array(2) {
-  [0]=>
-  unicode(10) "Hello Worl"
-  [1]=>
-  %s(99) "This is the first sentence. And this is the second sentence. And finally this is the last sentence."
+  %unicode|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
index 83ea67f342fbffc909f2ef70f1f7a46d13dc6f56..a518b7dad71ffb6c2c3047809c365ea7b794d3ae 100644 (file)
@@ -1,8 +1,8 @@
 --TEST--
 function test: mysqli_character_set_name
 --SKIPIF--
-<?php 
-require_once('skipif.inc'); 
+<?php
+require_once('skipif.inc');
 require_once('skipifconnectfailure.inc');
 ?>
 --FILE--
@@ -20,8 +20,5 @@ require_once('skipifconnectfailure.inc');
        print "done!";
 ?>
 --EXPECTF--
-string(%d) "%s"
-done!
---UEXPECTF--
-unicode(%d) "%s"
+%unicode|string%(%d) "%s"
 done!
\ No newline at end of file
index 198224d3a9687dfec1b6d66799137004296484ba..cf70e9bcab1c750a404e62315b1c197d54f4e4f2 100644 (file)
@@ -25,10 +25,6 @@ require_once('skipifconnectfailure.inc');
        print "done!";
 ?>
 --EXPECTF--
-string(0) ""
-string(%d) "%s"
-done!
---UEXPECTF--
-unicode(0) ""
-unicode(%d) "%s"
+%unicode|string%(0) ""
+%unicode|string%(%d) "%s"
 done!
\ No newline at end of file
index 9c6da6706b1ce7bcf8e4d0e8193bf2907204bb92..e6e03477f998098c7546c92ad82b720b671fa709 100644 (file)
@@ -27,8 +27,5 @@ require_once('skipifconnectfailure.inc');
        print "done!";
 ?>
 --EXPECTF--
-string(38) "Records: 3  Duplicates: 0  Warnings: 0"
-done!
---UEXPECTF--
-unicode(38) "Records: 3  Duplicates: 0  Warnings: 0"
+%unicode|string%(38) "Records: 3  Duplicates: 0  Warnings: 0"
 done!
\ No newline at end of file
index 7113b22ccbb491a2994afd35b0551e4b8fb760b0..081be99a2f9013e530396d6bcc49e26ebbc05ead 100644 (file)
@@ -1,8 +1,8 @@
 --TEST--
 function test: mysqli_get_host_info
 --SKIPIF--
-<?php 
-require_once('skipif.inc'); 
+<?php
+require_once('skipif.inc');
 require_once('skipifemb.inc');
 require_once('skipifconnectfailure.inc');
 ?>
@@ -21,8 +21,5 @@ require_once('skipifconnectfailure.inc');
        print "done!";
 ?>
 --EXPECTF--
-string(%d) "%s via %s"
-done!
---UEXPECTF--
-unicode(%d) "%s via %s"
+%unicode|string%(%d) "%s via %s"
 done!
\ No newline at end of file
index 6f82636677a7a2c3ce8b0b6a6195b5ad4c3e610e..401006b399816f05d28706f8ce6a68d29360abba 100644 (file)
@@ -50,37 +50,19 @@ require_once('skipifconnectfailure.inc');
 ?>
 --EXPECTF--
 object(stdClass)#%d (7) {
-  ["c1"]=>
-  string(1) "0"
-  ["c2"]=>
-  string(5) "35999"
-  ["c3"]=>
+  [%u|b%"c1"]=>
+  %unicode|string%(1) "0"
+  [%u|b%"c2"]=>
+  %unicode|string%(5) "35999"
+  [%u|b%"c3"]=>
   NULL
-  ["c4"]=>
-  string(4) "-500"
-  ["c5"]=>
-  string(6) "-32768"
-  ["c6"]=>
-  string(1) "0"
-  ["c7"]=>
-  string(1) "0"
-}
-done!
---UEXPECTF--
-object(stdClass)#%d (7) {
-  [u"c1"]=>
-  unicode(1) "0"
-  [u"c2"]=>
-  unicode(5) "35999"
-  [u"c3"]=>
-  NULL
-  [u"c4"]=>
-  unicode(4) "-500"
-  [u"c5"]=>
-  unicode(6) "-32768"
-  [u"c6"]=>
-  unicode(1) "0"
-  [u"c7"]=>
-  unicode(1) "0"
+  [%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"
 }
 done!
\ No newline at end of file
index f83908e5bbf468d16a2bf60ff5967b65e45617f0..0cf3e3749800437e96919d75e344b2a6b476e5a7 100644 (file)
@@ -45,10 +45,4 @@ array(1) {
   [0]=>
   string(15) "Rasmus is No. 1"
 }
-done!
---UEXPECF--
-array(1) {
-  [0]=>
-  unicode(15) "Rasmus is No. 1"
-}
 done!
\ No newline at end of file
index ca916b0d32fd8569e30f2a28db2221a3c8ad4f95..a1ef9ec40e24db1b873cc42edab1df19d614cd66 100644 (file)
@@ -5,7 +5,7 @@ mysqli_bind_result (SHOW)
        require_once('skipif.inc');
        require_once('skipifemb.inc');
        require_once('skipifconnectfailure.inc');
-       
+
        include "connect.inc";
        $link = mysqli_connect($host, $user, $passwd);
 
@@ -46,16 +46,8 @@ mysqli_bind_result (SHOW)
 --EXPECTF--
 array(2) {
   [0]=>
-  string(4) "port"
-  [1]=>
-  string(%d) "%s"
-}
-done!
---UEXPECTF--
-array(2) {
-  [0]=>
-  unicode(4) "port"
+  %unicode|string%(4) "port"
   [1]=>
-  unicode(%d) "%s"
+  %unicode|string%(%d) "%s"
 }
-done!
+done!
\ No newline at end of file
index db24ec44b52de9c1703f8161f50d8858badced46..172f2ef1ded573a4f3a713aa4409ddccaedd5f71 100644 (file)
@@ -50,308 +50,153 @@ require_once('skipifconnectfailure.inc');
 array(2) {
   [0]=>
   object(stdClass)#5 (11) {
-    ["name"]=>
-    string(3) "foo"
-    ["orgname"]=>
-    string(3) "foo"
-    ["table"]=>
-    string(13) "test_affected"
-    ["orgtable"]=>
-    string(13) "test_affected"
-    ["def"]=>
-    string(0) ""
-    ["max_length"]=>
+    [%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%"max_length"]=>
     int(0)
-    ["length"]=>
+    [%u|b%"length"]=>
     int(%d)
-    ["charsetnr"]=>
+    [%u|b%"charsetnr"]=>
     int(%d)
-    ["flags"]=>
+    [%u|b%"flags"]=>
     int(32768)
-    ["type"]=>
+    [%u|b%"type"]=>
     int(3)
-    ["decimals"]=>
+    [%u|b%"decimals"]=>
     int(0)
   }
   [1]=>
   object(stdClass)#6 (11) {
-    ["name"]=>
-    string(3) "bar"
-    ["orgname"]=>
-    string(3) "bar"
-    ["table"]=>
-    string(13) "test_affected"
-    ["orgtable"]=>
-    string(13) "test_affected"
-    ["def"]=>
-    string(0) ""
-    ["max_length"]=>
+    [%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%"max_length"]=>
     int(0)
-    ["length"]=>
+    [%u|b%"length"]=>
     int(%d)
-    ["charsetnr"]=>
+    [%u|b%"charsetnr"]=>
     int(%d)
-    ["flags"]=>
+    [%u|b%"flags"]=>
     int(0)
-    ["type"]=>
+    [%u|b%"type"]=>
     int(253)
-    ["decimals"]=>
+    [%u|b%"decimals"]=>
     int(0)
   }
 }
 
 === fetch_field_direct ===
 object(stdClass)#6 (11) {
-  ["name"]=>
-  string(3) "foo"
-  ["orgname"]=>
-  string(3) "foo"
-  ["table"]=>
-  string(13) "test_affected"
-  ["orgtable"]=>
-  string(13) "test_affected"
-  ["def"]=>
-  string(0) ""
-  ["max_length"]=>
-  int(0)
-  ["length"]=>
-  int(%d)
-  ["charsetnr"]=>
-  int(%d)
-  ["flags"]=>
+  [%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%"max_length"]=>
+  int(0)
+  [%u|b%"length"]=>
+  int(%d)
+  [%u|b%"charsetnr"]=>
+  int(%d)
+  [%u|b%"flags"]=>
   int(32768)
-  ["type"]=>
+  [%u|b%"type"]=>
   int(3)
-  ["decimals"]=>
+  [%u|b%"decimals"]=>
   int(0)
 }
 object(stdClass)#6 (11) {
-  ["name"]=>
-  string(3) "bar"
-  ["orgname"]=>
-  string(3) "bar"
-  ["table"]=>
-  string(13) "test_affected"
-  ["orgtable"]=>
-  string(13) "test_affected"
-  ["def"]=>
-  string(0) ""
-  ["max_length"]=>
+  [%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%"max_length"]=>
   int(0)
-  ["length"]=>
+  [%u|b%"length"]=>
   int(%d)
-  ["charsetnr"]=>
+  [%u|b%"charsetnr"]=>
   int(%d)
-  ["flags"]=>
+  [%u|b%"flags"]=>
   int(0)
-  ["type"]=>
+  [%u|b%"type"]=>
   int(253)
-  ["decimals"]=>
+  [%u|b%"decimals"]=>
   int(0)
 }
 
 === fetch_field ===
 object(stdClass)#6 (11) {
-  ["name"]=>
-  string(3) "foo"
-  ["orgname"]=>
-  string(3) "foo"
-  ["table"]=>
-  string(13) "test_affected"
-  ["orgtable"]=>
-  string(13) "test_affected"
-  ["def"]=>
-  string(0) ""
-  ["max_length"]=>
-  int(0)
-  ["length"]=>
-  int(%d)
-  ["charsetnr"]=>
-  int(%d)
-  ["flags"]=>
-  int(32768)
-  ["type"]=>
-  int(3)
-  ["decimals"]=>
-  int(0)
-}
-object(stdClass)#5 (11) {
-  ["name"]=>
-  string(3) "bar"
-  ["orgname"]=>
-  string(3) "bar"
-  ["table"]=>
-  string(13) "test_affected"
-  ["orgtable"]=>
-  string(13) "test_affected"
-  ["def"]=>
-  string(0) ""
-  ["max_length"]=>
-  int(0)
-  ["length"]=>
-  int(%d)
-  ["charsetnr"]=>
-  int(%d)
-  ["flags"]=>
-  int(0)
-  ["type"]=>
-  int(253)
-  ["decimals"]=>
-  int(0)
-}
-done!
---UEXPECTF--
-=== fetch_fields ===
-array(2) {
-  [0]=>
-  object(stdClass)#5 (11) {
-    [u"name"]=>
-    unicode(3) "foo"
-    [u"orgname"]=>
-    unicode(3) "foo"
-    [u"table"]=>
-    unicode(13) "test_affected"
-    [u"orgtable"]=>
-    unicode(13) "test_affected"
-    [u"def"]=>
-    unicode(0) ""
-    [u"max_length"]=>
-    int(0)
-    [u"length"]=>
-    int(%d)
-    [u"charsetnr"]=>
-    int(%d)
-    [u"flags"]=>
-    int(32768)
-    [u"type"]=>
-    int(3)
-    [u"decimals"]=>
-    int(0)
-  }
-  [1]=>
-  object(stdClass)#6 (11) {
-    [u"name"]=>
-    unicode(3) "bar"
-    [u"orgname"]=>
-    unicode(3) "bar"
-    [u"table"]=>
-    unicode(13) "test_affected"
-    [u"orgtable"]=>
-    unicode(13) "test_affected"
-    [u"def"]=>
-    unicode(0) ""
-    [u"max_length"]=>
-    int(0)
-    [u"length"]=>
-    int(%d)
-    [u"charsetnr"]=>
-    int(%d)
-    [u"flags"]=>
-    int(0)
-    [u"type"]=>
-    int(253)
-    [u"decimals"]=>
-    int(0)
-  }
-}
-
-=== fetch_field_direct ===
-object(stdClass)#6 (11) {
-  [u"name"]=>
-  unicode(3) "foo"
-  [u"orgname"]=>
-  unicode(3) "foo"
-  [u"table"]=>
-  unicode(13) "test_affected"
-  [u"orgtable"]=>
-  unicode(13) "test_affected"
-  [u"def"]=>
-  unicode(0) ""
-  [u"max_length"]=>
-  int(0)
-  [u"length"]=>
-  int(%d)
-  [u"charsetnr"]=>
-  int(%d)
-  [u"flags"]=>
-  int(32768)
-  [u"type"]=>
-  int(3)
-  [u"decimals"]=>
-  int(0)
-}
-object(stdClass)#6 (11) {
-  [u"name"]=>
-  unicode(3) "bar"
-  [u"orgname"]=>
-  unicode(3) "bar"
-  [u"table"]=>
-  unicode(13) "test_affected"
-  [u"orgtable"]=>
-  unicode(13) "test_affected"
-  [u"def"]=>
-  unicode(0) ""
-  [u"max_length"]=>
-  int(0)
-  [u"length"]=>
-  int(%d)
-  [u"charsetnr"]=>
-  int(%d)
-  [u"flags"]=>
-  int(0)
-  [u"type"]=>
-  int(253)
-  [u"decimals"]=>
-  int(0)
-}
-
-=== fetch_field ===
-object(stdClass)#6 (11) {
-  [u"name"]=>
-  unicode(3) "foo"
-  [u"orgname"]=>
-  unicode(3) "foo"
-  [u"table"]=>
-  unicode(13) "test_affected"
-  [u"orgtable"]=>
-  unicode(13) "test_affected"
-  [u"def"]=>
-  unicode(0) ""
-  [u"max_length"]=>
-  int(0)
-  [u"length"]=>
-  int(%d)
-  [u"charsetnr"]=>
-  int(%d)
-  [u"flags"]=>
+  [%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%"max_length"]=>
+  int(0)
+  [%u|b%"length"]=>
+  int(%d)
+  [%u|b%"charsetnr"]=>
+  int(%d)
+  [%u|b%"flags"]=>
   int(32768)
-  [u"type"]=>
+  [%u|b%"type"]=>
   int(3)
-  [u"decimals"]=>
+  [%u|b%"decimals"]=>
   int(0)
 }
 object(stdClass)#5 (11) {
-  [u"name"]=>
-  unicode(3) "bar"
-  [u"orgname"]=>
-  unicode(3) "bar"
-  [u"table"]=>
-  unicode(13) "test_affected"
-  [u"orgtable"]=>
-  unicode(13) "test_affected"
-  [u"def"]=>
-  unicode(0) ""
-  [u"max_length"]=>
+  [%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%"max_length"]=>
   int(0)
-  [u"length"]=>
+  [%u|b%"length"]=>
   int(%d)
-  [u"charsetnr"]=>
+  [%u|b%"charsetnr"]=>
   int(%d)
-  [u"flags"]=>
+  [%u|b%"flags"]=>
   int(0)
-  [u"type"]=>
+  [%u|b%"type"]=>
   int(253)
-  [u"decimals"]=>
+  [%u|b%"decimals"]=>
   int(0)
 }
 done!
\ No newline at end of file
index 73a6712fbca49376e7d719dc66e6fd1ccc046a63..a63b0a3a9278d5ae5560b9149502a8c134842cb9 100644 (file)
@@ -61,34 +61,8 @@ array(11) {
   [8]=>
   NULL
   [9]=>
-  string(4) "foo1"
+  %unicode|string%(4) "foo1"
   [10]=>
-  string(4) "1000"
-}
-done!
---UEXPECTF--
-array(11) {
-  [0]=>
-  int(1)
-  [1]=>
-  NULL
-  [2]=>
-  NULL
-  [3]=>
-  NULL
-  [4]=>
-  NULL
-  [5]=>
-  NULL
-  [6]=>
-  NULL
-  [7]=>
-  NULL
-  [8]=>
-  NULL
-  [9]=>
-  unicode(4) "foo1"
-  [10]=>
-  unicode(4) "1000"
+  %unicode|string%(4) "1000"
 }
 done!
\ No newline at end of file
index 5be8b40f3bbea455577ff78b47504af44aa0462d..afd23765491a613fbdd5008e9a45774345d0cd20 100644 (file)
@@ -1,8 +1,8 @@
 --TEST--
 mysql_fetch_row (OO-Style)
 --SKIPIF--
-<?php 
-require_once('skipif.inc'); 
+<?php
+require_once('skipif.inc');
 require_once('skipifemb.inc');
 require_once('skipifconnectfailure.inc');
 ?>
@@ -26,12 +26,6 @@ require_once('skipifconnectfailure.inc');
 --EXPECTF--
 array(1) {
   [0]=>
-  string(%d) "%s"
-}
-done!
---UEXPECTF--
-array(1) {
-  [0]=>
-  unicode(%d) "%s"
+  %unicode|string%(%d) "%s"
 }
 done!
\ No newline at end of file
index e8669dc32f7864715d52942ff4639e879374b3b2..f5571aca6249edee29c9628506d23c8094f52f04 100644 (file)
@@ -1,8 +1,8 @@
 --TEST--
-extend mysqli 
+extend mysqli
 --SKIPIF--
-<?php 
-require_once('skipif.inc'); 
+<?php
+require_once('skipif.inc');
 require_once('skipifconnectfailure.inc');
 ?>
 --FILE--
@@ -11,7 +11,7 @@ require_once('skipifconnectfailure.inc');
 
        class foobar extends mysqli {
                function test () {
-                       return ("I like MySQL 4.1");
+                       return ("I do not like MySQL 4.1");
                }
        }
 
@@ -21,4 +21,4 @@ require_once('skipifconnectfailure.inc');
        printf("%s\n", $foo->test());
 ?>
 --EXPECT--
-I like MySQL 4.1
+I do not like MySQL 4.1
index 0efea3569c92025c1400d5bc9c708253dc29d013..8ba0317c88bc34b6636a5e0be1fc96721320690d 100644 (file)
@@ -62,51 +62,34 @@ require_once('skipifconnectfailure.inc');
 bool(true)
 bool(true)
 object(mysqli_stmt)#%d (%d) {
-  ["affected_rows"]=>
+  [%u|b%"affected_rows"]=>
   int(-1)
-  ["insert_id"]=>
+  [%u|b%"insert_id"]=>
   int(0)
-  ["num_rows"]=>
+  [%u|b%"num_rows"]=>
   int(0)
-  ["param_count"]=>
+  [%u|b%"param_count"]=>
   int(0)
-  ["field_count"]=>
+  [%u|b%"field_count"]=>
   int(1)
-  ["errno"]=>
+  [%u|b%"errno"]=>
   int(0)
-  ["error"]=>
-  string(0) ""
-  ["sqlstate"]=>
-  string(5) "00000"
-  ["id"]=>
+  [%u|b%"error"]=>
+  %unicode|string%(0) ""
+  [%u|b%"sqlstate"]=>
+  %unicode|string%(5) "00000"
+  [%u|b%"id"]=>
   int(3)
 }
 bool(true)
 bool(false)
-string(0) ""
+%unicode|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]=>
-  string(1) "1"
+  %unicode|string%(1) "1"
 }
-done!
---UEXPECTF--
-bool(true)
-bool(true)
-object(mysqli_stmt)#%d (%d) {
-}
-bool(true)
-bool(false)
-unicode(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(1) "1"
-}
-done!
+done!
\ No newline at end of file
index 32a735322dad20a479adb4c52aded2ed9b8e2209..ae8b69b798e82a86c6a50bcc7010de8ca317f8ff 100644 (file)
@@ -1,8 +1,8 @@
 --TEST--
 multiple binds
 --SKIPIF--
-<?php 
-require_once('skipif.inc'); 
+<?php
+require_once('skipif.inc');
 require_once('skipifconnectfailure.inc');
 ?>
 --FILE--
@@ -53,22 +53,10 @@ array(4) {
   [0]=>
   int(1)
   [1]=>
-  string(3) "foo"
-  [2]=>
-  int(2)
-  [3]=>
-  string(3) "bar"
-}
-done!
---UEXPECTF--
-array(4) {
-  [0]=>
-  int(1)
-  [1]=>
-  unicode(3) "foo"
+  %unicode|string%(3) "foo"
   [2]=>
   int(2)
   [3]=>
-  unicode(3) "bar"
+  %unicode|string%(3) "bar"
 }
 done!
\ No newline at end of file
index b56dc26e2a00ba363daf4d6a4b99bb849d90e953..8eadbd9e8afae3bcbe41681af464d9d5621537e8 100644 (file)
@@ -1,8 +1,8 @@
 --TEST--
 sqlmode + bind
 --SKIPIF--
-<?php 
-require_once('skipif.inc'); 
+<?php
+require_once('skipif.inc');
 require_once('skipifconnectfailure.inc');
 ?>
 --FILE--
@@ -41,9 +41,6 @@ require_once('skipifconnectfailure.inc');
        mysqli_close($link);
        print "done!";
 ?>
---EXPECT--
-string(6) "foobar"
-done!
---UEXPECT--
-unicode(6) "foobar"
+--EXPECTF--
+%unicode|string%(6) "foobar"
 done!
\ No newline at end of file
index 52af2605c816700beb462563f6e444ff5bbe32cd..0162873c8403b488a4b1743dc391bfa644295a1c 100644 (file)
@@ -1,8 +1,8 @@
 --TEST--
 mysqli_fetch_object with classes
 --SKIPIF--
-<?php 
-require_once('skipif.inc'); 
+<?php
+require_once('skipif.inc');
 require_once('skipifconnectfailure.inc');
 ?>
 --FILE--
@@ -45,38 +45,19 @@ require_once('skipifconnectfailure.inc');
 --EXPECTF--
 test_class::__construct(1,2)
 object(test_class)#%d (7) {
-  ["c1"]=>
-  string(1) "0"
-  ["c2"]=>
-  string(5) "35999"
-  ["c3"]=>
-  NULL
-  ["c4"]=>
-  string(4) "-500"
-  ["c5"]=>
-  string(6) "-32768"
-  ["c6"]=>
-  string(1) "0"
-  ["c7"]=>
-  string(1) "0"
-}
-Done
---UEXPECTF--
-test_class::__construct(1,2)
-object(test_class)#%d (7) {
-  [u"c1"]=>
-  unicode(1) "0"
-  [u"c2"]=>
-  unicode(5) "35999"
-  [u"c3"]=>
+  [%u|b%"c1"]=>
+  %unicode|string%(1) "0"
+  [%u|b%"c2"]=>
+  %unicode|string%(5) "35999"
+  [%u|b%"c3"]=>
   NULL
-  [u"c4"]=>
-  unicode(4) "-500"
-  [u"c5"]=>
-  unicode(6) "-32768"
-  [u"c6"]=>
-  unicode(1) "0"
-  [u"c7"]=>
-  unicode(1) "0"
+  [%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"
 }
-Done
+Done
\ No newline at end of file
index 22575aaeccc6bdd1f4ede774b8428d277b9ad399..03b3d84f3a33681a3169e85ec06af5eca00767ef 100644 (file)
@@ -51,13 +51,7 @@ if (!function_exists('mysqli_set_local_infile_handler'))
 ?>
 --EXPECT--
 foo-bar
-string-string
+%unicode|string%-%unicode|string%
 rab-oof
-string-string
-done!
---UEXPECTF--
-foo-bar
-unicode-unicode
-rab-oof
-unicode-unicode
-done!
+%unicode|string%-%unicode|string%
+done!
\ No newline at end of file
index 9a4166973c1043bf5a38a1053bc0614bbf141835..738b2ec8ccfe98a420a24d5c24bb69b28918f12c 100644 (file)
@@ -1,8 +1,8 @@
 --TEST--
 resultset constructor
 --SKIPIF--
-<?php 
-require_once('skipif.inc'); 
+<?php
+require_once('skipif.inc');
 require_once('skipifconnectfailure.inc');
 ?>
 --FILE--
@@ -25,12 +25,6 @@ require_once('skipifconnectfailure.inc');
 --EXPECTF--
 array(1) {
   [0]=>
-  string(3) "foo"
-}
-done!
---UEXPECTF--
-array(1) {
-  [0]=>
-  unicode(3) "foo"
+  %unicode|string%(3) "foo"
 }
 done!
\ No newline at end of file
index 26acae09c0bc5a625d0a09c7f1761c7f566f703d..fbbdacd5989ab9f49c834104313f242f846f0d55 100644 (file)
@@ -1,8 +1,8 @@
 --TEST--
-resultset constructor 
+resultset constructor
 --SKIPIF--
-<?php 
-require_once('skipif.inc'); 
+<?php
+require_once('skipif.inc');
 require_once('skipifconnectfailure.inc');
 ?>
 --FILE--
@@ -20,7 +20,5 @@ require_once('skipifconnectfailure.inc');
 
        var_dump($foo);
 ?>
---EXPECT--
-string(3) "foo"
---UEXPECT--
-unicode(3) "foo"
+--EXPECTF--
+%unicode|string%(3) "foo"
\ No newline at end of file
index 705b0e423b51a62c1008fd4fa8c6ec5449f8c4fb..9819f26132a47d8f6e9ffd3c2e6dd952cd98aa7a 100644 (file)
@@ -8,8 +8,8 @@ require_once('skipifconnectfailure.inc');
 if (!function_exists('mysqli_set_charset')) {
        die('skip mysqli_set_charset() not available');
 }
-if (unicode_semantics()) {
-       die('skip set character set not functional with unicode.semantics=On');
+if (version_compare(PHP_VERSION, '5.9.9', '>') == 1) {
+       die('skip set character set not functional with PHP 6 (fomerly PHP 6 && unicode.semantics=On)');
 }
 ?>
 --FILE--
index 446fb2013bebe6efec8b5334cbe103ded5907353..57a4a2543a5dbfd94a532158a73e8720f3b7bfa9 100644 (file)
@@ -7,7 +7,5 @@ mysqli get_client_info
        $s = mysqli_get_client_info();
        echo gettype($s);
 ?>
---EXPECT--
-string
---UEXPECT--
-unicode
+--EXPECTF--
+%unicode|string%
\ No newline at end of file
index f63cdd715c98797b1cb8404ceec570595a88f778..c6b498e8a67125498e4f12601a3c28b0fffbe311 100644 (file)
@@ -1,8 +1,8 @@
 --TEST--
 mysqli multi_query, next_result, more_results
 --SKIPIF--
-<?php 
-require_once('skipif.inc'); 
+<?php
+require_once('skipif.inc');
 require_once('skipifconnectfailure.inc');
 ?>
 --FILE--
@@ -29,20 +29,10 @@ require_once('skipifconnectfailure.inc');
 --EXPECTF--
 array(1) {
   [1]=>
-  string(1) "1"
-}
-array(1) {
-  [2]=>
-  string(1) "2"
-}
-done!
---UEXPECTF--
-array(1) {
-  [1]=>
-  unicode(1) "1"
+  %unicode|string%(1) "1"
 }
 array(1) {
   [2]=>
-  unicode(1) "2"
+  %unicode|string%(1) "2"
 }
 done!
\ No newline at end of file
index 23b474980ab95ed53d638a4163a3efa892d27053..db05d5d227eca667408c7d77b795e6284ae621e9 100644 (file)
@@ -1,8 +1,8 @@
 --TEST--
 mysqli warning_count, get_warnings
 --SKIPIF--
-<?php 
-require_once('skipif.inc'); 
+<?php
+require_once('skipif.inc');
 require_once('skipifconnectfailure.inc');
 ?>
 --FILE--
@@ -27,12 +27,6 @@ require_once('skipifconnectfailure.inc');
 --EXPECTF--
 int(1)
 int(1051)
-string(26) "Unknown table 'not_exists'"
-string(5) "HY000"
-done!
---UEXPECTF--
-int(1)
-int(1051)
-unicode(26) "Unknown table 'not_exists'"
-unicode(5) "HY000"
+%unicode|string%(26) "Unknown table 'not_exists'"
+%unicode|string%(5) "HY000"
 done!
\ No newline at end of file
index 80e77c2ad29eef168850b3f28a18922bc6313ac3..7428bc3710cae5048ac2efbddab358800588c0f2 100644 (file)
@@ -17,15 +17,7 @@ mysqli_driver properties
 --EXPECTF--
 bool(%s)
 int(%d)
-string(%d) "%s"
-int(%d)
-bool(%s)
-int(%d)
-done!
---UEXPECTF--
-bool(%s)
-int(%d)
-unicode(%d) "%s"
+%unicode|string%(%d) "%s"
 int(%d)
 bool(%s)
 int(%d)
index d3765f9a2a7d750eaa48fe5551e8ff560386d59c..0d935d35d1ec7e3148314bf8b9e1a331d0f83509 100644 (file)
@@ -1,8 +1,8 @@
 --TEST--
 mysqli_autocommit() tests
 --SKIPIF--
-<?php 
-require_once('skipif.inc'); 
+<?php
+require_once('skipif.inc');
 require_once('skipifconnectfailure.inc');
 ?>
 --FILE--
@@ -25,21 +25,10 @@ require_once('skipifconnectfailure.inc');
 bool(true)
 array(1) {
   [0]=>
-  string(1) "0"
-}
-bool(true)
-array(1) {
-  [0]=>
-  string(1) "1"
-}
---UEXPECTF--
-bool(true)
-array(1) {
-  [0]=>
-  unicode(1) "0"
+  %unicode|string%(1) "0"
 }
 bool(true)
 array(1) {
   [0]=>
-  unicode(1) "1"
+  %unicode|string%(1) "1"
 }
\ No newline at end of file
index 05ecb69d059345a4311f9b1be12a088bbec3d068..cd348ef45019c75cc89cbff478eab84703a1d806 100644 (file)
 --TEST--
 Bug #34810 (mysqli::init() and others use wrong $this pointer without checks)
 --SKIPIF--
-<?php 
-require_once('skipif.inc'); 
+<?php
+require_once('skipif.inc');
 require_once('skipifconnectfailure.inc');
 ?>
 --FILE--
 <?php
 
-class DbConnection { 
+class DbConnection {
        public function connect() {
                include "connect.inc";
 
                $link = mysqli_connect($host, $user, $passwd, $db, $port, $socket);
-               var_dump($link); 
-               
+               var_dump($link);
+
                $link = mysqli_init();
                /* @ is to supress 'Property access is not allowed yet' */
                @var_dump($link);
-               
+
                $mysql = new mysqli($host, $user, $passwd, $db, $port, $socket);
                $mysql->query("DROP TABLE IF EXISTS test_warnings");
                $mysql->query("CREATE TABLE test_warnings (a int not null)");
                $mysql->query("SET sql_mode=''");
                $mysql->query("INSERT INTO test_warnings VALUES (1),(2),(NULL)");
                var_dump($mysql->get_warnings());
-       } 
-} 
+       }
+}
 
-$db = new DbConnection(); 
+$db = new DbConnection();
 $db->connect();
 
 echo "Done\n";
 ?>
---EXPECTF--    
+--EXPECTF--
 object(mysqli)#%d (%d) {
-  ["affected_rows"]=>
+  [%u|b%"affected_rows"]=>
   int(0)
-  ["client_info"]=>
-  string(%d) "%s"
-  ["client_version"]=>
+  [%u|b%"client_info"]=>
+  %unicode|string%(%d) "%s"
+  [%u|b%"client_version"]=>
   int(%d)
-  ["connect_errno"]=>
+  [%u|b%"connect_errno"]=>
   int(0)
-  ["connect_error"]=>
-  string(0) ""
-  ["errno"]=>
+  [%u|b%"connect_error"]=>
+  %unicode|string%(0) ""
+  [%u|b%"errno"]=>
   int(0)
-  ["error"]=>
-  string(0) ""
-  ["field_count"]=>
+  [%u|b%"error"]=>
+  %unicode|string%(0) ""
+  [%u|b%"field_count"]=>
   int(0)
-  ["host_info"]=>
-  string(%d) "MySQL host info: %s via %s%s"
-  ["info"]=>
+  [%u|b%"host_info"]=>
+  %unicode|string%(%d) "MySQL host info: %s via %s%s"
+  [%u|b%"info"]=>
   NULL
-  ["insert_id"]=>
+  [%u|b%"insert_id"]=>
   int(0)
-  ["server_info"]=>
-  string(%d) "%s"
-  ["server_version"]=>
+  [%u|b%"server_info"]=>
+  %unicode|string%(%d) "%s"
+  [%u|b%"server_version"]=>
   int(%d)
-  ["sqlstate"]=>
-  string(5) "00000"
-  ["protocol_version"]=>
+  [%u|b%"sqlstate"]=>
+  %unicode|string%(5) "00000"
+  [%u|b%"protocol_version"]=>
   int(10)
-  ["thread_id"]=>
+  [%u|b%"thread_id"]=>
   int(%d)
-  ["warning_count"]=>
+  [%u|b%"warning_count"]=>
   int(0)
 }
 object(mysqli)#%d (%d) {
-  ["affected_rows"]=>
+  [%u|b%"affected_rows"]=>
   NULL
-  ["client_info"]=>
-  string(%d) "%s"
-  ["client_version"]=>
+  [%u|b%"client_info"]=>
+  %unicode|string%(%d) "%s"
+  [%u|b%"client_version"]=>
   int(%d)
-  ["connect_errno"]=>
+  [%u|b%"connect_errno"]=>
   int(0)
-  ["connect_error"]=>
-  string(0) ""
-  ["errno"]=>
+  [%u|b%"connect_error"]=>
+  %unicode|string%(0) ""
+  [%u|b%"errno"]=>
   int(0)
-  ["error"]=>
-  string(0) ""
-  ["field_count"]=>
+  [%u|b%"error"]=>
+  %unicode|string%(0) ""
+  [%u|b%"field_count"]=>
   NULL
-  ["host_info"]=>
+  [%u|b%"host_info"]=>
   NULL
-  ["info"]=>
+  [%u|b%"info"]=>
   NULL
-  ["insert_id"]=>
+  [%u|b%"insert_id"]=>
   NULL
-  ["server_info"]=>
+  [%u|b%"server_info"]=>
   NULL
-  ["server_version"]=>
+  [%u|b%"server_version"]=>
   NULL
-  ["sqlstate"]=>
+  [%u|b%"sqlstate"]=>
   NULL
-  ["protocol_version"]=>
+  [%u|b%"protocol_version"]=>
   NULL
-  ["thread_id"]=>
+  [%u|b%"thread_id"]=>
   NULL
-  ["warning_count"]=>
+  [%u|b%"warning_count"]=>
   NULL
 }
 object(mysqli_warning)#%d (%d) {
-  ["message"]=>
-  string(25) "Column 'a' cannot be null"
-  ["sqlstate"]=>
-  string(5) "HY000"
-  ["errno"]=>
+  [%u|b%"message"]=>
+  %unicode|string%(25) "Column 'a' cannot be null"
+  [%u|b%"sqlstate"]=>
+  %unicode|string%(5) "HY000"
+  [%u|b%"errno"]=>
   int(1048)
 }
 Done
index d748e8bbffaad38983f0e086c86683447246cc8f..fb7f9d19c68fed682504978c8ce104d5c428baff 100644 (file)
@@ -24,7 +24,7 @@ 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 (ini_get("unicode.semantics") && !is_unicode($id)) {
+                       if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) && !is_unicode($id)) {
                                printf("[003] Expecting unicode string\n");
                        }
                }
index 260806522ca984d67f6f06fb26ac4947a77e3e66..ae5301f73a51c5d1606a69de9252445bede4fef7 100644 (file)
@@ -136,23 +136,23 @@ require_once('skipifconnectfailure.inc');
 ?>
 --EXPECTF--
 Using CAST('somestring' AS CHAR)...
-string(3) "one"
-string(5) "three"
-string(3) "two"
+%unicode|string%(3) "one"
+%unicode|string%(5) "three"
+%unicode|string%(3) "two"
 Mixing CAST('somestring'AS CHAR), integer and CAST(integer AS CHAR)...
-string(1) "1"
-string(5) "three"
-string(1) "2"
+%unicode|string%(1) "1"
+%unicode|string%(5) "three"
+%unicode|string%(1) "2"
 Using integer only...
 int(1)
 int(303)
 int(2)
 Testing bind_param(), strings only...
-string(3) "one"
-string(5) "three"
-string(3) "two"
+%unicode|string%(3) "one"
+%unicode|string%(5) "three"
+%unicode|string%(3) "two"
 Testing bind_param(), strings only, with CAST AS CHAR...
-string(3) "one"
-string(32) "three beers are more than enough"
-string(3) "two"
+%unicode|string%(3) "one"
+%unicode|string%(32) "three beers are more than enough"
+%unicode|string%(3) "two"
 done!
index 771ecb47a14fbc0be3af39310e22cd125793ac01..d5d232829396b7f8e72e777cc30e1aaa6d071b65 100644 (file)
@@ -36,18 +36,18 @@ mysqli_affected_rows()
        if (!mysqli_query($link, 'CREATE TABLE test(id INT, label CHAR(1), PRIMARY KEY(id)) ENGINE = ' . $engine))
                printf("[007] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
 
-       if (!mysqli_query($link, "INSERT INTO test(id, label) VALUES (1, 'a')"))
+       if (!mysqli_query($link, 'INSERT INTO test(id, label) VALUES (1, "a")'))
                printf("[008] [%d] %s\n",  mysqli_errno($link), mysqli_error($link));
 
        if (1 !== ($tmp = mysqli_affected_rows($link)))
                printf("[010] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp);
 
        // ignore INSERT error, NOTE: command line returns 0, affected_rows returns -1 as documented
-       mysqli_query($link, "INSERT INTO test(id, label) VALUES (1, 'a')");
+       mysqli_query($link, 'INSERT INTO test(id, label) VALUES (1, "a")');
        if (-1 !== ($tmp = mysqli_affected_rows($link)))
                printf("[011] Expecting int/-1, got %s/%s\n", gettype($tmp), $tmp);
 
-       if (!mysqli_query($link, "INSERT INTO test(id, label) VALUES (1, 'a') ON DUPLICATE KEY UPDATE id = 4"))
+       if (!mysqli_query($link, 'INSERT INTO test(id, label) VALUES (1, "a") ON DUPLICATE KEY UPDATE id = 4'))
                printf("[012] [%d] %s\n",  mysqli_errno($link), mysqli_error($link));
 
        if (2 !== ($tmp = mysqli_affected_rows($link)))
@@ -128,4 +128,4 @@ mysqli_affected_rows()
        print "done!";
 ?>
 --EXPECTF--
-done!
+done!
\ No newline at end of file
index 42ab46eb156523e721ada66447a0f57ba7e5327c..4d82981baf621b600193d98bba2ea117f549123c 100644 (file)
@@ -28,7 +28,7 @@ mysqli->affected_rows
        if (!$mysqli->query('CREATE TABLE test(id INT, label CHAR(1), PRIMARY KEY(id)) ENGINE = ' . $engine))
                printf("[004] [%d] %s\n", $mysqli->errno, $mysqli->error);
 
-       if (!$mysqli->query("INSERT INTO test(id, label) VALUES (1, 'a')"))
+       if (!$mysqli->query('INSERT INTO test(id, label) VALUES (1, "a")'))
                printf("[005] [%d] %s\n",  $mysqli->errno, $mysqli->error);
 
        if (1 !== ($tmp = $mysqli->affected_rows))
@@ -39,7 +39,7 @@ mysqli->affected_rows
        if (-1 !== ($tmp = $mysqli->affected_rows))
                printf("[007] Expecting int/-1, got %s/%s\n", gettype($tmp), $tmp);
 
-       if (!$mysqli->query("INSERT INTO test(id, label) VALUES (1, 'a') ON DUPLICATE KEY UPDATE id = 4"))
+       if (!$mysqli->query('INSERT INTO test(id, label) VALUES (1, "a") ON DUPLICATE KEY UPDATE id = 4'))
                printf("[008] [%d] %s\n",  $mysqli->errno, $mysqli->error);
 
        if (2 !== ($tmp = $mysqli->affected_rows))
@@ -107,4 +107,4 @@ mysqli->affected_rows
        print "done!";
 ?>
 --EXPECTF--
-done!
+done!
\ No newline at end of file
index 5d7a0605164db422d30ae83e1af949f16a18e4b5..51ff25f8a0f14c9216c7206f15e3ec60a3b549da 100644 (file)
@@ -28,7 +28,7 @@ if (!$IS_MYSQLND) {
        if (!mysqli_query($link, 'CREATE TABLE test(id INT AUTO_INCREMENT PRIMARY KEY, label CHAR(10))'))
                printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
 
-       if (!mysqli_query($link, "INSERT INTO test(id, label) VALUES (100, 'z')"))
+       if (!mysqli_query($link, 'INSERT INTO test(id, label) VALUES (100, "z")'))
                printf("[004] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
 
        if (($insert_id = mysqli_insert_id($link)) !== 100)
@@ -62,4 +62,4 @@ if (!$IS_MYSQLND) {
        print "done!";
 ?>
 --EXPECTF--
-done!
+done!
\ No newline at end of file
index bcd122daf81371f6cefd120ac9de44eefa379ba4..ad3ed045cb8426f24b6ff103f46e79d0938ba986 100644 (file)
@@ -13,8 +13,8 @@ require_once('skipifconnectfailure.inc');
        if (!$link = mysqli_connect($host, $user, $passwd, $db, $port, $socket))
                printf("[001] [%d] %s\n", mysqli_connect_errno(), mysqli_connect_error());
 
-       if (!$stmt = mysqli_prepare($link, "SELECT 'prepared statements should be released'"))
-               printf("[002] [%d] %s\n", mysqli_errno(), mysqli_error());
+       if (!$stmt = mysqli_prepare($link, 'SELECT "prepared statements should be released"'))
+               printf("[002] [%d] %s\n", mysqli_connect_errno(), mysqli_connect_error());
 
        mysqli_change_user($link, $user, $passwd, $db);
 
@@ -30,4 +30,4 @@ require_once('skipifconnectfailure.inc');
        print "done!";
 ?>
 --EXPECTF--
-done!
+done!
\ No newline at end of file
index 547d68c981034508189c6d7243eae98e64c79363..53156d66bb2640ee8867625aabee2fff5c719d23 100644 (file)
@@ -28,7 +28,7 @@ if ($version[0] <= 4 && $version[1] < 1)
        if (!$link = mysqli_connect($host, $user, $passwd, $db, $port, $socket))
                printf("[001] [%d] %s\n", mysqli_connect_errno(), mysqli_connect_error());
 
-       if (!$res = mysqli_query($link, "SHOW CHARACTER SET LIKE 'latin%'"))
+       if (!$res = mysqli_query($link, 'SHOW CHARACTER SET LIKE "latin%"'))
                printf("[002] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
 
        $charsets = array();
@@ -57,32 +57,32 @@ if ($version[0] <= 4 && $version[1] < 1)
 
                if (isset($not_changed['charset_client']) &&
                                $charset != $not_changed['charset_client'] &&
-                               mysqli_query($link, sprintf("SET @@character_set_client = '%s'", $charset)))
+                               mysqli_query($link, sprintf('SET @@character_set_client = "%s"', $charset)))
                        unset($not_changed['charset_client']);
 
                if (isset($not_changed['charset_connection']) &&
                                $charset != $not_changed['charset_connection'] &&
-                               mysqli_query($link, sprintf("SET @@character_connection = '%s'", $charset)))
+                               mysqli_query($link, sprintf('SET @@character_connection = "%s"', $charset)))
                        unset($not_changed['charset_connection']);
 
                if (isset($not_changed['charset_results']) &&
                                $charset != $not_changed['charset_results'] &&
-                               mysqli_query($link, sprintf("SET @@character_set_results = '%s'", $charset)))
+                               mysqli_query($link, sprintf('SET @@character_set_results = "%s"', $charset)))
                        unset($not_changed['charset_results']);
 
                if (isset($not_changed['collation_connection']) &&
                                $collation != $not_changed['collation_connection'] &&
-                               mysqli_query($link, sprintf("SET @@collation_connection = '%s'", $collation)))
+                               mysqli_query($link, sprintf('SET @@collation_connection = "%s"', $collation)))
                        unset($not_changed['collation_connection']);
 
                if (isset($not_changed['collation_database']) &&
                                $collation != $not_changed['collation_database'] &&
-                               mysqli_query($link, sprintf("SET @@collation_database = '%s'", $collation)))
+                               mysqli_query($link, sprintf('SET @@collation_database = "%s"', $collation)))
                        unset($not_changed['collation_database']);
 
                if (isset($not_changed['collation_server']) &&
                                $collation != $not_changed['collation_server'] &&
-                               mysqli_query($link, sprintf("SET @@collation_server = '%s'", $collation)))
+                               mysqli_query($link, sprintf('SET @@collation_server = "%s"', $collation)))
                        unset($not_changed['collation_server']);
 
                if (empty($not_changed))
@@ -129,7 +129,7 @@ if ($version[0] <= 4 && $version[1] < 1)
                var_dump($defaults);
        }
 
-       if (ini_get('unicode.semantics')) {
+       if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1)) {
                // charsets cannot take any other value but utf8 in unicode mode
                $defaults['charset_client'] = 'utf8';
                $defaults['charset_connection'] = 'utf8';
@@ -162,4 +162,4 @@ if ($version[0] <= 4 && $version[1] < 1)
        print "done!";
 ?>
 --EXPECTF--
-done!
+done!
\ No newline at end of file
index 2e5d907d4c0da8868aca420545eb1525ee4ff61b..4823f51d56b6fd8a95723ead181f7bac41416883 100644 (file)
@@ -2,10 +2,17 @@
 Fetching results from tables of different charsets.
 --SKIPIF--
 <?php
-require_once('skipif.inc'); 
+require_once('skipif.inc');
 require_once('skipifconnectfailure.inc');
 require_once('skipifunicode.inc');
 require_once('skipifemb.inc');
+
+if (!function_exists('mysqli_set_charset')) {
+       die('skip mysqli_set_charset() not available');
+}
+if (version_compare(PHP_VERSION, '5.9.9', '>') == 1) {
+       die('skip set character set not functional with PHP 6 (fomerly PHP 6 && unicode.semantics=On)');
+}
 ?>
 --FILE--
 <?php
@@ -13,12 +20,6 @@ require_once('skipifemb.inc');
 
        $tmp    = NULL;
        $link   = NULL;
-
-       if (ini_get("unicode.semantics")){
-               die('done!');
-       }
-
-
        if (!$link = mysqli_connect($host, $user, $passwd, $db, $port, $socket))
                printf("[001] Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
                        $host, $user, $db, $port, $socket);
index 05c76e65dc0b3c7bec71fd67c98eebcfb76804aa..b0c732a0d5d9fe73ebbd8b054832d865004e9966 100644 (file)
@@ -1,7 +1,7 @@
 --TEST--
 Interface of the class mysqli
 --SKIPIF--
-<?php 
+<?php
 require_once('skipif.inc');
 require_once('skipifemb.inc');
 require_once('skipifconnectfailure.inc');
@@ -24,7 +24,7 @@ require_once('skipifconnectfailure.inc');
                'character_set_name'            => true,
                'client_encoding'               => true,
                'close'                         => true,
-               'commit'                        => true,
+               'commit'        => true,
                'connect'                       => true,
                'dump_debug_info'               => true,
                'escape_string'                 => true,
@@ -255,89 +255,18 @@ warning_count
 
 Magic, magic properties:
 mysqli->affected_rows = '%s'/integer ('%s'/integer)
-mysqli->client_info = '%s'/string ('%s'/string)
-mysqli->client_version =  '%d'/integer ('%d'/integer)
-mysqli->errno = '0'/integer ('0'/integer)
-mysqli->error = ''/string (''/string)
-mysqli->field_count = '0'/integer ('0'/integer)
-mysqli->insert_id = '0'/integer ('0'/integer)
-mysqli->sqlstate = '00000'/string ('00000'/string)
-mysqli->host_info = '%s'/string ('%s'/string)
-mysqli->info = ''/NULL (''/string)
-mysqli->thread_id = '%d'/integer ('%d'/integer)
-mysqli->protocol_version = '%d'/integer ('%d'/integer)
-mysqli->server_info = '%s'/string ('%s'/string)
-mysqli->server_version = '%d'/integer ('%d'/integer)
-mysqli->warning_count = '0'/integer ('0'/integer)
-
-Access to undefined properties:
-mysqli->unknown = ''
-setting mysqli->unknown, mysqli_unknown = '13'
-setting mysqli->unknown, mysqli_unknown = 'friday'
-
-Access hidden properties for MYSLQI_STATUS_INITIALIZED (TODO documentation):
-mysqli->connect_error = ''/string (''/string)
-mysqli->connect_errno = '0'/integer ('0'/integer)
-done!
---UEXPECTF--
-Parent class:
-bool(false)
-
-Methods:
-ok
-
-Class variables:
-affected_rows
-client_info
-client_version
-connect_errno
-connect_error
-errno
-error
-field_count
-host_info
-info
-insert_id
-protocol_version
-server_info
-server_version
-sqlstate
-thread_id
-warning_count
-
-Object variables:
-affected_rows
-client_info
-client_version
-connect_errno
-connect_error
-errno
-error
-field_count
-host_info
-info
-insert_id
-server_info
-server_version
-sqlstate
-protocol_version
-thread_id
-warning_count
-
-Magic, magic properties:
-mysqli->affected_rows = '%s'/integer ('%s'/integer)
-mysqli->client_info = '%s'/unicode ('%s'/unicode)
+mysqli->client_info = '%s'/%unicode|string% ('%s'/%unicode|string%)
 mysqli->client_version =  '%d'/integer ('%d'/integer)
 mysqli->errno = '0'/integer ('0'/integer)
-mysqli->error = ''/unicode (''/unicode)
+mysqli->error = ''/%unicode|string% (''/%unicode|string%)
 mysqli->field_count = '0'/integer ('0'/integer)
 mysqli->insert_id = '0'/integer ('0'/integer)
-mysqli->sqlstate = '00000'/unicode ('00000'/unicode)
-mysqli->host_info = '%s'/unicode ('%s'/unicode)
-mysqli->info = ''/NULL (''/unicode)
+mysqli->sqlstate = '00000'/%unicode|string% ('00000'/%unicode|string%)
+mysqli->host_info = '%s'/%unicode|string% ('%s'/%unicode|string%)
+mysqli->info = ''/NULL (''/%unicode|string%)
 mysqli->thread_id = '%d'/integer ('%d'/integer)
 mysqli->protocol_version = '%d'/integer ('%d'/integer)
-mysqli->server_info = '%s'/unicode ('%s'/unicode)
+mysqli->server_info = '%s'/%unicode|string% ('%s'/%unicode|string%)
 mysqli->server_version = '%d'/integer ('%d'/integer)
 mysqli->warning_count = '0'/integer ('0'/integer)
 
@@ -347,6 +276,6 @@ setting mysqli->unknown, mysqli_unknown = '13'
 setting mysqli->unknown, mysqli_unknown = 'friday'
 
 Access hidden properties for MYSLQI_STATUS_INITIALIZED (TODO documentation):
-mysqli->connect_error = ''/unicode (''/unicode)
+mysqli->connect_error = ''/%unicode|string% (''/%unicode|string%)
 mysqli->connect_errno = '0'/integer ('0'/integer)
-done!
+done!
\ No newline at end of file
index 981caaf32683067c29b15bbd6ae995b043793319..de4fb87ca4385a6bb57d5276c9fa55cab7bcc743 100644 (file)
@@ -187,44 +187,7 @@ mysqli_result->unknown = ''
 
 Constructor:
 
-Warning: mysqli_result::__construct() expects parameter 2 to be long, string given in %s on line %d
+Warning: mysqli_result::__construct() expects parameter 2 to be long, %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!
---UEXPECTF--
-Parent class:
-bool(false)
-
-Methods:
-ok
-
-Class variables:
-current_field
-field_count
-lengths
-num_rows
-type
-
-Object variables:
-current_field
-field_count
-lengths
-num_rows
-type
-
-Magic, magic properties:
-mysqli_result->current_field = '0'/integer ('0'/integer)
-mysqli_result->field_count = '2'/integer ('2'/integer)
-mysqli_result->lengths -> '1 1'/array ('1 1'/array)
-mysqli_result->num_rows = '6'/integer ('6'/integer)
-mysqli_result->type = 'store'/integer
-
-Access to undefined properties:
-mysqli_result->unknown = ''
-
-Constructor:
-
-Warning: mysqli_result::__construct() expects parameter 2 to be long, Unicode string given in %s on line %d
-
-Warning: mysqli_result::__construct() expects parameter 1 to be mysqli, Unicode string given in %s on line %d
-done!
+Warning: mysqli_result::__construct() expects parameter 1 to be mysqli, %unicode_string_optional% given in %s on line %d
+done!
\ No newline at end of file
index b2dddd382fdd716c00f34ad23bcca40835b4d64b..2b6343c436f278dc8620f521ab1a2a22a387992f 100644 (file)
@@ -1,7 +1,7 @@
 --TEST--
 Interface of the class mysqli_stmt
 --SKIPIF--
-<?php 
+<?php
        require_once('skipif.inc');
        require_once('skipifemb.inc');
        require_once('skipifconnectfailure.inc');
@@ -188,60 +188,4 @@ stmt->unknown = '13'
 Prepare using the constructor:
 
 Warning: mysqli_stmt::__construct() expects parameter 2 to be string, object given in %s on line %d
-done!
---UEXPECTF--
-Parent class:
-bool(false)
-
-Methods:
-ok
-
-Class variables:
-affected_rows
-errno
-error
-field_count
-id
-insert_id
-num_rows
-param_count
-sqlstate
-
-Object variables:
-affected_rows
-insert_id
-num_rows
-param_count
-field_count
-errno
-error
-sqlstate
-id
-
-Magic, magic properties:
-
-Warning: mysqli_stmt_affected_rows(): invalid object or resource mysqli_stmt
- in %s on line %d
-
-Warning: main(): Property access is not allowed yet in %s on line %d
-
-Warning: main(): Property access is not allowed yet in %s on line %d
-stmt->affected_rows = ''
-stmt->affected_rows = '1'
-stmt->errno = '0'
-stmt->error = ''
-stmt->field_count = '0'
-stmt->id = '%d'
-stmt->insert_id = '0'
-stmt->num_rows = '0'
-stmt->param_count = '0'
-stmt->sqlstate = '00000'
-
-Access to undefined properties:
-stmt->unknown = ''
-stmt->unknown = '13'
-
-Prepare using the constructor:
-
-Warning: mysqli_stmt::__construct() expects parameter 2 to be binary string, object given in %s on line %d
-done!
+done!
\ No newline at end of file
index ebddca94b7e5f099d5ae0bd12a7aca620a06ff86..dd2792f8118a4241263bd82fbaef307829d803b2 100644 (file)
@@ -148,50 +148,25 @@ mysqli_connect()
 --EXPECTF--
 Warning: mysqli_connect(): (%d/%d): Access denied for user '%s'@'%s' (using password: YES) in %s on line %d
 array(1) {
-  ["testing"]=>
-  string(21) "mysqli.default_socket"
+  [%u|b%"testing"]=>
+  %unicode|string%(21) "mysqli.default_socket"
 }
 array(1) {
-  ["testing"]=>
-  string(19) "mysqli.default_port"
+  [%u|b%"testing"]=>
+  %unicode|string%(19) "mysqli.default_port"
 }
 array(1) {
-  ["testing"]=>
-  string(17) "mysqli.default_pw"
+  [%u|b%"testing"]=>
+  %unicode|string%(17) "mysqli.default_pw"
 }
 array(2) {
   [0]=>
-  string(19) "mysqli.default_user"
-  ["testing"]=>
-  string(19) "mysqli.default_user"
+  %unicode|string%(19) "mysqli.default_user"
+  [%u|b%"testing"]=>
+  %unicode|string%(19) "mysqli.default_user"
 }
 array(1) {
   [0]=>
-  string(19) "mysqli.default_host"
-}
-done!
---UEXPECTF--
-Warning: mysqli_connect(): (%d/%d): Access denied for user '%s'@'%s' (using password: YES) in %s on line %d
-array(1) {
-  [u"testing"]=>
-  unicode(21) "mysqli.default_socket"
-}
-array(1) {
-  [u"testing"]=>
-  unicode(19) "mysqli.default_port"
-}
-array(1) {
-  [u"testing"]=>
-  unicode(17) "mysqli.default_pw"
-}
-array(2) {
-  [0]=>
-  unicode(19) "mysqli.default_user"
-  [u"testing"]=>
-  unicode(19) "mysqli.default_user"
-}
-array(1) {
-  [0]=>
-  unicode(19) "mysqli.default_host"
+  %unicode|string%(19) "mysqli.default_host"
 }
 done!
\ No newline at end of file
index 6a72c249fe7dfbb37a38f188ef962d86d6d35fd8..ec5d1014c7e01a071b365438ed94658156553bcc 100644 (file)
@@ -144,53 +144,27 @@ new mysqli()
 ?>
 --EXPECTF--
 array(1) {
-  ["testing"]=>
-  string(21) "mysqli.default_socket"
+  [%u|b%"testing"]=>
+  %unicode|string%(21) "mysqli.default_socket"
 }
 array(1) {
-  ["testing"]=>
-  string(19) "mysqli.default_port"
+  [%u|b%"testing"]=>
+  %unicode|string%(19) "mysqli.default_port"
 }
 array(1) {
-  ["testing"]=>
-  string(17) "mysqli.default_pw"
+  [%u|b%"testing"]=>
+  %unicode|string%(17) "mysqli.default_pw"
 }
 array(1) {
-  ["testing"]=>
-  string(19) "mysqli.default_user"
+  [%u|b%"testing"]=>
+  %unicode|string%(19) "mysqli.default_user"
 }
 array(1) {
-  ["all_defaults"]=>
-  string(13) "have been set"
+  [%u|b%"all_defaults"]=>
+  %unicode|string%(13) "have been set"
 }
 array(1) {
-  ["all_defaults"]=>
-  string(13) "have been set"
+  [%u|b%"all_defaults"]=>
+  %unicode|string%(13) "have been set"
 }
-done!
---UEXPECTF--
-array(1) {
-  [u"testing"]=>
-  unicode(21) "mysqli.default_socket"
-}
-array(1) {
-  [u"testing"]=>
-  unicode(19) "mysqli.default_port"
-}
-array(1) {
-  [u"testing"]=>
-  unicode(17) "mysqli.default_pw"
-}
-array(1) {
-  [u"testing"]=>
-  unicode(19) "mysqli.default_user"
-}
-array(1) {
-  [u"all_defaults"]=>
-  unicode(13) "have been set"
-}
-array(1) {
-  [u"all_defaults"]=>
-  unicode(13) "have been set"
-}
-done!
+done!
\ No newline at end of file
index c194ce693768f6a5c5160569f54fc2d13e87110c..debc435b0ef2dda71fcfe546f1fc5c3d5d4de638 100644 (file)
@@ -1,9 +1,9 @@
 --TEST--
 Calling connect() on an open connection to create a new connection
 --SKIPIF--
-<?php 
-require_once('skipif.inc'); 
-require_once('skipifemb.inc'); 
+<?php
+require_once('skipif.inc');
+require_once('skipifemb.inc');
 require_once('skipifconnectfailure.inc');
 ?>
 --FILE--
@@ -74,21 +74,11 @@ require_once('skipifconnectfailure.inc');
 ?>
 --EXPECTF--
 array(1) {
-  ["it_works"]=>
-  string(2) "ok"
-}
-array(1) {
-  ["syntax"]=>
-  string(18) "works also with oo"
-}
-done!
---UEXPECTF--
-array(1) {
-  [u"it_works"]=>
-  unicode(2) "ok"
+  [%u|b%"it_works"]=>
+  %unicode|string%(2) "ok"
 }
 array(1) {
-  [u"syntax"]=>
-  unicode(18) "works also with oo"
+  [%u|b%"syntax"]=>
+  %unicode|string%(18) "works also with oo"
 }
 done!
\ No newline at end of file
index 7089a6cbebe715b8e854add23db6b7b9a695a174..7581385a9f43ff7268092a29a3bf10daa0bcfa82 100644 (file)
@@ -49,7 +49,4 @@ mysqlnd.debug="t:O,/tmp/mysqli_debug_phpt.trace"
 ?>
 --EXPECTF--
 string(32) "t:O,/tmp/mysqli_debug_phpt.trace"
-done!
---UEXPECTF--
-unicode(32) "t:O,/tmp/mysqli_debug_phpt.trace"
-done!
+done!
\ No newline at end of file
index b622f2897e8de56c372faeb5db312eb08114f305..09ab5a99923d935de0b347c9b75ad595041b37b3 100644 (file)
@@ -1,8 +1,8 @@
 --TEST--
 mysqli_error()
 --SKIPIF--
-<?php 
-require_once('skipif.inc'); 
+<?php
+require_once('skipif.inc');
 require_once('skipifemb.inc');
 require_once('skipifconnectfailure.inc');
 ?>
@@ -10,7 +10,7 @@ require_once('skipifconnectfailure.inc');
 <?php
        include "connect.inc";
 
-       $tmp    = NULL; 
+       $tmp    = NULL;
        $link   = NULL;
 
        if (!is_null($tmp = @mysqli_error()))
@@ -44,14 +44,8 @@ require_once('skipifconnectfailure.inc');
        print "done!";
 ?>
 --EXPECTF--
-string(58) "Table 'няма_такава_таблица' doesn't exist"
-
-Warning: mysqli_error(): Couldn't fetch mysqli in %s on line %d
-NULL
-done!
---UEXPECTF--
-unicode(41) "Table 'няма_такава_таблица' doesn't exist"
+%unicode|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!
\ No newline at end of file
index 7559b05034474ccc4e7b6ca947e4a0ad6b0a7e7f..0a8a7dec2cd76c9c5acd7287aa6168b8fe9726c2 100644 (file)
@@ -303,16 +303,16 @@ array(2) {
   [0]=>
   array(2) {
     [0]=>
-    string(1) "1"
+    %unicode|string%(1) "1"
     [1]=>
-    string(1) "a"
+    %unicode|string%(1) "a"
   }
   [1]=>
   array(2) {
     [0]=>
-    string(1) "2"
+    %unicode|string%(1) "2"
     [1]=>
-    string(1) "b"
+    %unicode|string%(1) "b"
   }
 }
 [007]
@@ -320,16 +320,16 @@ array(2) {
   [0]=>
   array(2) {
     [0]=>
-    string(1) "1"
+    %unicode|string%(1) "1"
     [1]=>
-    string(1) "a"
+    %unicode|string%(1) "a"
   }
   [1]=>
   array(2) {
     [0]=>
-    string(1) "2"
+    %unicode|string%(1) "2"
     [1]=>
-    string(1) "b"
+    %unicode|string%(1) "b"
   }
 }
 [008]
@@ -337,41 +337,41 @@ array(2) {
   [0]=>
   array(4) {
     [0]=>
-    string(1) "1"
-    ["id"]=>
-    string(1) "1"
+    %unicode|string%(1) "1"
+    [%u|b%"id"]=>
+    %unicode|string%(1) "1"
     [1]=>
-    string(1) "a"
-    ["label"]=>
-    string(1) "a"
+    %unicode|string%(1) "a"
+    [%u|b%"label"]=>
+    %unicode|string%(1) "a"
   }
   [1]=>
   array(4) {
     [0]=>
-    string(1) "2"
-    ["id"]=>
-    string(1) "2"
+    %unicode|string%(1) "2"
+    [%u|b%"id"]=>
+    %unicode|string%(1) "2"
     [1]=>
-    string(1) "b"
-    ["label"]=>
-    string(1) "b"
+    %unicode|string%(1) "b"
+    [%u|b%"label"]=>
+    %unicode|string%(1) "b"
   }
 }
 [010]
 array(2) {
   [0]=>
   array(2) {
-    ["id"]=>
-    string(1) "1"
-    ["label"]=>
-    string(1) "a"
+    [%u|b%"id"]=>
+    %unicode|string%(1) "1"
+    [%u|b%"label"]=>
+    %unicode|string%(1) "a"
   }
   [1]=>
   array(2) {
-    ["id"]=>
-    string(1) "2"
-    ["label"]=>
-    string(1) "b"
+    [%u|b%"id"]=>
+    %unicode|string%(1) "2"
+    [%u|b%"label"]=>
+    %unicode|string%(1) "b"
   }
 }
 [011]
@@ -380,17 +380,17 @@ NULL
 array(2) {
   [0]=>
   array(2) {
-    ["id"]=>
-    string(1) "1"
-    ["label"]=>
-    string(1) "a"
+    [%u|b%"id"]=>
+    %unicode|string%(1) "1"
+    [%u|b%"label"]=>
+    %unicode|string%(1) "a"
   }
   [1]=>
   array(2) {
-    ["id"]=>
-    string(1) "2"
-    ["label"]=>
-    string(1) "b"
+    [%u|b%"id"]=>
+    %unicode|string%(1) "2"
+    [%u|b%"label"]=>
+    %unicode|string%(1) "b"
   }
 }
 [016]
@@ -400,162 +400,31 @@ array(1) {
   [0]=>
   array(11) {
     [0]=>
-    string(1) "1"
-    ["a"]=>
-    string(1) "2"
+    %unicode|string%(1) "1"
+    [%u|b%"a"]=>
+    %unicode|string%(1) "2"
     [1]=>
-    string(1) "2"
+    %unicode|string%(1) "2"
     [2]=>
-    string(1) "3"
-    ["c"]=>
-    string(1) "3"
+    %unicode|string%(1) "3"
+    [%u|b%"c"]=>
+    %unicode|string%(1) "3"
     [3]=>
-    string(1) "4"
-    ["C"]=>
-    string(1) "4"
+    %unicode|string%(1) "4"
+    [%u|b%"C"]=>
+    %unicode|string%(1) "4"
     [4]=>
     NULL
-    ["d"]=>
+    [%u|b%"d"]=>
     NULL
     [5]=>
-    string(1) "1"
-    ["e"]=>
-    string(1) "1"
+    %unicode|string%(1) "1"
+    [%u|b%"e"]=>
+    %unicode|string%(1) "1"
   }
 }
 
 Warning: mysqli_fetch_all(): Mode can be only MYSQLI_FETCH_NUM, MYSQLI_FETCH_ASSOC or MYSQLI_FETCH_BOTH in %s on line %d
 
 Warning: mysqli_fetch_array(): Couldn't fetch mysqli_result in %s on line %d
-done!
---UEXPECTF--
-[005]
-array(2) {
-  [0]=>
-  array(2) {
-    [0]=>
-    unicode(1) "1"
-    [1]=>
-    unicode(1) "a"
-  }
-  [1]=>
-  array(2) {
-    [0]=>
-    unicode(1) "2"
-    [1]=>
-    unicode(1) "b"
-  }
-}
-[007]
-array(2) {
-  [0]=>
-  array(2) {
-    [0]=>
-    unicode(1) "1"
-    [1]=>
-    unicode(1) "a"
-  }
-  [1]=>
-  array(2) {
-    [0]=>
-    unicode(1) "2"
-    [1]=>
-    unicode(1) "b"
-  }
-}
-[008]
-array(2) {
-  [0]=>
-  array(4) {
-    [0]=>
-    unicode(1) "1"
-    [u"id"]=>
-    unicode(1) "1"
-    [1]=>
-    unicode(1) "a"
-    [u"label"]=>
-    unicode(1) "a"
-  }
-  [1]=>
-  array(4) {
-    [0]=>
-    unicode(1) "2"
-    [u"id"]=>
-    unicode(1) "2"
-    [1]=>
-    unicode(1) "b"
-    [u"label"]=>
-    unicode(1) "b"
-  }
-}
-[010]
-array(2) {
-  [0]=>
-  array(2) {
-    [u"id"]=>
-    unicode(1) "1"
-    [u"label"]=>
-    unicode(1) "a"
-  }
-  [1]=>
-  array(2) {
-    [u"id"]=>
-    unicode(1) "2"
-    [u"label"]=>
-    unicode(1) "b"
-  }
-}
-[011]
-NULL
-[013]
-array(2) {
-  [0]=>
-  array(2) {
-    [u"id"]=>
-    unicode(1) "1"
-    [u"label"]=>
-    unicode(1) "a"
-  }
-  [1]=>
-  array(2) {
-    [u"id"]=>
-    unicode(1) "2"
-    [u"label"]=>
-    unicode(1) "b"
-  }
-}
-[016]
-NULL
-[017]
-array(1) {
-  [0]=>
-  array(11) {
-    [0]=>
-    unicode(1) "1"
-    [u"a"]=>
-    unicode(1) "2"
-    [1]=>
-    unicode(1) "2"
-    [2]=>
-    unicode(1) "3"
-    [u"c"]=>
-    unicode(1) "3"
-    [3]=>
-    unicode(1) "4"
-    [u"C"]=>
-    unicode(1) "4"
-    [4]=>
-    NULL
-    [u"d"]=>
-    NULL
-    [5]=>
-    unicode(1) "1"
-    [u"e"]=>
-    unicode(1) "1"
-  }
-}
-
-Warning: mysqli_fetch_all(): Mode can be only MYSQLI_FETCH_NUM, MYSQLI_FETCH_ASSOC or MYSQLI_FETCH_BOTH in %s on line %d
-
-Warning: mysqli_fetch_array(): Couldn't fetch mysqli_result in %s on line %d
-done!
+done!
\ No newline at end of file
index b0901e01a9ed22dd8ee1230148b421b7fd76d66f..e891f08d567b88a4304e3b30d5ea2e45e167b3f5 100644 (file)
@@ -306,16 +306,16 @@ array(2) {
   [0]=>
   array(2) {
     [0]=>
-    string(1) "1"
+    %unicode|string%(1) "1"
     [1]=>
-    string(1) "a"
+    %unicode|string%(1) "a"
   }
   [1]=>
   array(2) {
     [0]=>
-    string(1) "2"
+    %unicode|string%(1) "2"
     [1]=>
-    string(1) "b"
+    %unicode|string%(1) "b"
   }
 }
 [007]
@@ -323,16 +323,16 @@ array(2) {
   [0]=>
   array(2) {
     [0]=>
-    string(1) "1"
+    %unicode|string%(1) "1"
     [1]=>
-    string(1) "a"
+    %unicode|string%(1) "a"
   }
   [1]=>
   array(2) {
     [0]=>
-    string(1) "2"
+    %unicode|string%(1) "2"
     [1]=>
-    string(1) "b"
+    %unicode|string%(1) "b"
   }
 }
 [008]
@@ -340,41 +340,41 @@ array(2) {
   [0]=>
   array(4) {
     [0]=>
-    string(1) "1"
-    ["id"]=>
-    string(1) "1"
+    %unicode|string%(1) "1"
+    [%u|b%"id"]=>
+    %unicode|string%(1) "1"
     [1]=>
-    string(1) "a"
-    ["label"]=>
-    string(1) "a"
+    %unicode|string%(1) "a"
+    [%u|b%"label"]=>
+    %unicode|string%(1) "a"
   }
   [1]=>
   array(4) {
     [0]=>
-    string(1) "2"
-    ["id"]=>
-    string(1) "2"
+    %unicode|string%(1) "2"
+    [%u|b%"id"]=>
+    %unicode|string%(1) "2"
     [1]=>
-    string(1) "b"
-    ["label"]=>
-    string(1) "b"
+    %unicode|string%(1) "b"
+    [%u|b%"label"]=>
+    %unicode|string%(1) "b"
   }
 }
 [010]
 array(2) {
   [0]=>
   array(2) {
-    ["id"]=>
-    string(1) "1"
-    ["label"]=>
-    string(1) "a"
+    [%u|b%"id"]=>
+    %unicode|string%(1) "1"
+    [%u|b%"label"]=>
+    %unicode|string%(1) "a"
   }
   [1]=>
   array(2) {
-    ["id"]=>
-    string(1) "2"
-    ["label"]=>
-    string(1) "b"
+    [%u|b%"id"]=>
+    %unicode|string%(1) "2"
+    [%u|b%"label"]=>
+    %unicode|string%(1) "b"
   }
 }
 [011]
@@ -383,17 +383,17 @@ NULL
 array(2) {
   [0]=>
   array(2) {
-    ["id"]=>
-    string(1) "1"
-    ["label"]=>
-    string(1) "a"
+    [%u|b%"id"]=>
+    %unicode|string%(1) "1"
+    [%u|b%"label"]=>
+    %unicode|string%(1) "a"
   }
   [1]=>
   array(2) {
-    ["id"]=>
-    string(1) "2"
-    ["label"]=>
-    string(1) "b"
+    [%u|b%"id"]=>
+    %unicode|string%(1) "2"
+    [%u|b%"label"]=>
+    %unicode|string%(1) "b"
   }
 }
 [016]
@@ -403,158 +403,27 @@ array(1) {
   [0]=>
   array(11) {
     [0]=>
-    string(1) "1"
-    ["a"]=>
-    string(1) "2"
+    %unicode|string%(1) "1"
+    [%u|b%"a"]=>
+    %unicode|string%(1) "2"
     [1]=>
-    string(1) "2"
+    %unicode|string%(1) "2"
     [2]=>
-    string(1) "3"
-    ["c"]=>
-    string(1) "3"
+    %unicode|string%(1) "3"
+    [%u|b%"c"]=>
+    %unicode|string%(1) "3"
     [3]=>
-    string(1) "4"
-    ["C"]=>
-    string(1) "4"
+    %unicode|string%(1) "4"
+    [%u|b%"C"]=>
+    %unicode|string%(1) "4"
     [4]=>
     NULL
-    ["d"]=>
+    [%u|b%"d"]=>
     NULL
     [5]=>
-    string(1) "1"
-    ["e"]=>
-    string(1) "1"
-  }
-}
-
-Warning: mysqli_result::fetch_all(): Mode can be only MYSQLI_FETCH_NUM, MYSQLI_FETCH_ASSOC or MYSQLI_FETCH_BOTH in %s on line %d
-
-Warning: mysqli_result::fetch_array(): Couldn't fetch mysqli_result in %s on line %d
-done!
---UEXPECTF--
-[005]
-array(2) {
-  [0]=>
-  array(2) {
-    [0]=>
-    unicode(1) "1"
-    [1]=>
-    unicode(1) "a"
-  }
-  [1]=>
-  array(2) {
-    [0]=>
-    unicode(1) "2"
-    [1]=>
-    unicode(1) "b"
-  }
-}
-[007]
-array(2) {
-  [0]=>
-  array(2) {
-    [0]=>
-    unicode(1) "1"
-    [1]=>
-    unicode(1) "a"
-  }
-  [1]=>
-  array(2) {
-    [0]=>
-    unicode(1) "2"
-    [1]=>
-    unicode(1) "b"
-  }
-}
-[008]
-array(2) {
-  [0]=>
-  array(4) {
-    [0]=>
-    unicode(1) "1"
-    [u"id"]=>
-    unicode(1) "1"
-    [1]=>
-    unicode(1) "a"
-    [u"label"]=>
-    unicode(1) "a"
-  }
-  [1]=>
-  array(4) {
-    [0]=>
-    unicode(1) "2"
-    [u"id"]=>
-    unicode(1) "2"
-    [1]=>
-    unicode(1) "b"
-    [u"label"]=>
-    unicode(1) "b"
-  }
-}
-[010]
-array(2) {
-  [0]=>
-  array(2) {
-    [u"id"]=>
-    unicode(1) "1"
-    [u"label"]=>
-    unicode(1) "a"
-  }
-  [1]=>
-  array(2) {
-    [u"id"]=>
-    unicode(1) "2"
-    [u"label"]=>
-    unicode(1) "b"
-  }
-}
-[011]
-NULL
-[013]
-array(2) {
-  [0]=>
-  array(2) {
-    [u"id"]=>
-    unicode(1) "1"
-    [u"label"]=>
-    unicode(1) "a"
-  }
-  [1]=>
-  array(2) {
-    [u"id"]=>
-    unicode(1) "2"
-    [u"label"]=>
-    unicode(1) "b"
-  }
-}
-[016]
-NULL
-[017]
-array(1) {
-  [0]=>
-  array(11) {
-    [0]=>
-    unicode(1) "1"
-    [u"a"]=>
-    unicode(1) "2"
-    [1]=>
-    unicode(1) "2"
-    [2]=>
-    unicode(1) "3"
-    [u"c"]=>
-    unicode(1) "3"
-    [3]=>
-    unicode(1) "4"
-    [u"C"]=>
-    unicode(1) "4"
-    [4]=>
-    NULL
-    [u"d"]=>
-    NULL
-    [5]=>
-    unicode(1) "1"
-    [u"e"]=>
-    unicode(1) "1"
+    %unicode|string%(1) "1"
+    [%u|b%"e"]=>
+    %unicode|string%(1) "1"
   }
 }
 
index 1b46d0d3566ca2bae971d217cc9b57e5d58e5565..f43804d966153dd62ac954c82c968b191f455df1 100644 (file)
@@ -296,154 +296,74 @@ require_once('skipifconnectfailure.inc');
 [005]
 array(4) {
   [0]=>
-  string(1) "1"
-  ["id"]=>
-  string(1) "1"
+  %unicode|string%(1) "1"
+  [%u|b%"id"]=>
+  %unicode|string%(1) "1"
   [1]=>
-  string(1) "a"
-  ["label"]=>
-  string(1) "a"
+  %unicode|string%(1) "a"
+  [%u|b%"label"]=>
+  %unicode|string%(1) "a"
 }
 [006]
 array(2) {
   [0]=>
-  string(1) "2"
+  %unicode|string%(1) "2"
   [1]=>
-  string(1) "b"
+  %unicode|string%(1) "b"
 }
 [007]
 array(4) {
   [0]=>
-  string(1) "3"
-  ["id"]=>
-  string(1) "3"
+  %unicode|string%(1) "3"
+  [%u|b%"id"]=>
+  %unicode|string%(1) "3"
   [1]=>
-  string(1) "c"
-  ["label"]=>
-  string(1) "c"
+  %unicode|string%(1) "c"
+  [%u|b%"label"]=>
+  %unicode|string%(1) "c"
 }
 [008]
 array(2) {
-  ["id"]=>
-  string(1) "4"
-  ["label"]=>
-  string(1) "d"
+  [%u|b%"id"]=>
+  %unicode|string%(1) "4"
+  [%u|b%"label"]=>
+  %unicode|string%(1) "d"
 }
 [009]
 array(4) {
   [0]=>
-  string(1) "5"
-  ["id"]=>
-  string(1) "5"
+  %unicode|string%(1) "5"
+  [%u|b%"id"]=>
+  %unicode|string%(1) "5"
   [1]=>
-  string(1) "e"
-  ["label"]=>
-  string(1) "e"
+  %unicode|string%(1) "e"
+  [%u|b%"label"]=>
+  %unicode|string%(1) "e"
 }
 [011]
 array(11) {
   [0]=>
-  string(1) "1"
-  ["a"]=>
-  string(1) "2"
+  %unicode|string%(1) "1"
+  [%u|b%"a"]=>
+  %unicode|string%(1) "2"
   [1]=>
-  string(1) "2"
+  %unicode|string%(1) "2"
   [2]=>
-  string(1) "3"
-  ["c"]=>
-  string(1) "3"
+  %unicode|string%(1) "3"
+  [%u|b%"c"]=>
+  %unicode|string%(1) "3"
   [3]=>
-  string(1) "4"
-  ["C"]=>
-  string(1) "4"
+  %unicode|string%(1) "4"
+  [%u|b%"C"]=>
+  %unicode|string%(1) "4"
   [4]=>
   NULL
-  ["d"]=>
+  [%u|b%"d"]=>
   NULL
   [5]=>
-  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
-
-Warning: mysqli_fetch_array(): The result type should be either MYSQLI_NUM, MYSQLI_ASSOC or MYSQLI_BOTH in %s on line %d
-
-Warning: mysqli_fetch_array(): Couldn't fetch mysqli_result in %s on line %d
-done!
---UEXPECTF--
-[005]
-array(4) {
-  [0]=>
-  unicode(1) "1"
-  [u"id"]=>
-  unicode(1) "1"
-  [1]=>
-  unicode(1) "a"
-  [u"label"]=>
-  unicode(1) "a"
-}
-[006]
-array(2) {
-  [0]=>
-  unicode(1) "2"
-  [1]=>
-  unicode(1) "b"
-}
-[007]
-array(4) {
-  [0]=>
-  unicode(1) "3"
-  [u"id"]=>
-  unicode(1) "3"
-  [1]=>
-  unicode(1) "c"
-  [u"label"]=>
-  unicode(1) "c"
-}
-[008]
-array(2) {
-  [u"id"]=>
-  unicode(1) "4"
-  [u"label"]=>
-  unicode(1) "d"
-}
-[009]
-array(4) {
-  [0]=>
-  unicode(1) "5"
-  [u"id"]=>
-  unicode(1) "5"
-  [1]=>
-  unicode(1) "e"
-  [u"label"]=>
-  unicode(1) "e"
-}
-[011]
-array(11) {
-  [0]=>
-  unicode(1) "1"
-  [u"a"]=>
-  unicode(1) "2"
-  [1]=>
-  unicode(1) "2"
-  [2]=>
-  unicode(1) "3"
-  [u"c"]=>
-  unicode(1) "3"
-  [3]=>
-  unicode(1) "4"
-  [u"C"]=>
-  unicode(1) "4"
-  [4]=>
-  NULL
-  [u"d"]=>
-  NULL
-  [5]=>
-  unicode(1) "1"
-  [u"e"]=>
-  unicode(1) "1"
+  %unicode|string%(1) "1"
+  [%u|b%"e"]=>
+  %unicode|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
index ac638848acf9e9ac91291c461e763bd002ae9bb3..99d573200d640e8f69ba1129d094fd22cb135e63 100644 (file)
@@ -31,32 +31,16 @@ require_once('skipifconnectfailure.inc');
 --EXPECTF--
 [002]
 array(2) {
-  ["id"]=>
-  string(1) "1"
-  ["label"]=>
-  string(1) "a"
+  [%u|b%"id"]=>
+  %unicode|string%(1) "1"
+  [%u|b%"label"]=>
+  %unicode|string%(1) "a"
 }
 [004]
 array(2) {
-  ["id"]=>
-  string(1) "1"
-  ["label"]=>
-  string(1) "a"
-}
-done!
---UEXPECTF--
-[002]
-array(2) {
-  [u"id"]=>
-  unicode(1) "1"
-  [u"label"]=>
-  unicode(1) "a"
-}
-[004]
-array(2) {
-  [u"id"]=>
-  unicode(1) "1"
-  [u"label"]=>
-  unicode(1) "a"
+  [%u|b%"id"]=>
+  %unicode|string%(1) "1"
+  [%u|b%"label"]=>
+  %unicode|string%(1) "a"
 }
 done!
\ No newline at end of file
index 816ea9fe193fd2c617e4ba05f5474cc4410d615b..e7e7d12d85fb168fe8f177312cd3cfcdef567d15 100644 (file)
@@ -277,154 +277,74 @@ require_once('skipifconnectfailure.inc');
 [005]
 array(4) {
   [0]=>
-  string(1) "1"
-  ["id"]=>
-  string(1) "1"
+  %unicode|string%(1) "1"
+  [%u|b%"id"]=>
+  %unicode|string%(1) "1"
   [1]=>
-  string(1) "a"
-  ["label"]=>
-  string(1) "a"
+  %unicode|string%(1) "a"
+  [%u|b%"label"]=>
+  %unicode|string%(1) "a"
 }
 [006]
 array(2) {
   [0]=>
-  string(1) "2"
+  %unicode|string%(1) "2"
   [1]=>
-  string(1) "b"
+  %unicode|string%(1) "b"
 }
 [007]
 array(4) {
   [0]=>
-  string(1) "3"
-  ["id"]=>
-  string(1) "3"
+  %unicode|string%(1) "3"
+  [%u|b%"id"]=>
+  %unicode|string%(1) "3"
   [1]=>
-  string(1) "c"
-  ["label"]=>
-  string(1) "c"
+  %unicode|string%(1) "c"
+  [%u|b%"label"]=>
+  %unicode|string%(1) "c"
 }
 [008]
 array(2) {
-  ["id"]=>
-  string(1) "4"
-  ["label"]=>
-  string(1) "d"
+  [%u|b%"id"]=>
+  %unicode|string%(1) "4"
+  [%u|b%"label"]=>
+  %unicode|string%(1) "d"
 }
 [009]
 array(4) {
   [0]=>
-  string(1) "5"
-  ["id"]=>
-  string(1) "5"
+  %unicode|string%(1) "5"
+  [%u|b%"id"]=>
+  %unicode|string%(1) "5"
   [1]=>
-  string(1) "e"
-  ["label"]=>
-  string(1) "e"
+  %unicode|string%(1) "e"
+  [%u|b%"label"]=>
+  %unicode|string%(1) "e"
 }
 [011]
 array(11) {
   [0]=>
-  string(1) "1"
-  ["a"]=>
-  string(1) "2"
+  %unicode|string%(1) "1"
+  [%u|b%"a"]=>
+  %unicode|string%(1) "2"
   [1]=>
-  string(1) "2"
+  %unicode|string%(1) "2"
   [2]=>
-  string(1) "3"
-  ["c"]=>
-  string(1) "3"
+  %unicode|string%(1) "3"
+  [%u|b%"c"]=>
+  %unicode|string%(1) "3"
   [3]=>
-  string(1) "4"
-  ["C"]=>
-  string(1) "4"
+  %unicode|string%(1) "4"
+  [%u|b%"C"]=>
+  %unicode|string%(1) "4"
   [4]=>
   NULL
-  ["d"]=>
+  [%u|b%"d"]=>
   NULL
   [5]=>
-  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
-
-Warning: mysqli_result::fetch_array(): The result type should be either MYSQLI_NUM, MYSQLI_ASSOC or MYSQLI_BOTH in %s on line %d
-
-Warning: mysqli_result::fetch_array(): Couldn't fetch mysqli_result in %s on line %d
-done!
---UEXPECTF--
-[005]
-array(4) {
-  [0]=>
-  unicode(1) "1"
-  [u"id"]=>
-  unicode(1) "1"
-  [1]=>
-  unicode(1) "a"
-  [u"label"]=>
-  unicode(1) "a"
-}
-[006]
-array(2) {
-  [0]=>
-  unicode(1) "2"
-  [1]=>
-  unicode(1) "b"
-}
-[007]
-array(4) {
-  [0]=>
-  unicode(1) "3"
-  [u"id"]=>
-  unicode(1) "3"
-  [1]=>
-  unicode(1) "c"
-  [u"label"]=>
-  unicode(1) "c"
-}
-[008]
-array(2) {
-  [u"id"]=>
-  unicode(1) "4"
-  [u"label"]=>
-  unicode(1) "d"
-}
-[009]
-array(4) {
-  [0]=>
-  unicode(1) "5"
-  [u"id"]=>
-  unicode(1) "5"
-  [1]=>
-  unicode(1) "e"
-  [u"label"]=>
-  unicode(1) "e"
-}
-[011]
-array(11) {
-  [0]=>
-  unicode(1) "1"
-  [u"a"]=>
-  unicode(1) "2"
-  [1]=>
-  unicode(1) "2"
-  [2]=>
-  unicode(1) "3"
-  [u"c"]=>
-  unicode(1) "3"
-  [3]=>
-  unicode(1) "4"
-  [u"C"]=>
-  unicode(1) "4"
-  [4]=>
-  NULL
-  [u"d"]=>
-  NULL
-  [5]=>
-  unicode(1) "1"
-  [u"e"]=>
-  unicode(1) "1"
+  %unicode|string%(1) "1"
+  [%u|b%"e"]=>
+  %unicode|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
index 00ca325f4fc82ce9a22b2d8d93f094d37148bdfa..6ea05caf64a759daf647824f5fff13393037c34c 100644 (file)
@@ -70,91 +70,45 @@ require_once('skipifconnectfailure.inc');
 --EXPECTF--
 [005]
 array(2) {
-  ["id"]=>
-  string(1) "1"
-  ["label"]=>
-  string(1) "a"
+  [%u|b%"id"]=>
+  %unicode|string%(1) "1"
+  [%u|b%"label"]=>
+  %unicode|string%(1) "a"
 }
 [006]
 NULL
 [008]
 array(15) {
-  ["a"]=>
-  string(1) "2"
-  ["c"]=>
-  string(1) "3"
-  ["C"]=>
-  string(1) "4"
-  ["d"]=>
+  [%u|b%"a"]=>
+  %unicode|string%(1) "2"
+  [%u|b%"c"]=>
+  %unicode|string%(1) "3"
+  [%u|b%"C"]=>
+  %unicode|string%(1) "4"
+  [%u|b%"d"]=>
   NULL
-  ["e"]=>
-  string(1) "1"
+  [%u|b%"e"]=>
+  %unicode|string%(1) "1"
   [-1]=>
-  string(1) "5"
+  %unicode|string%(1) "5"
   [-10]=>
-  string(1) "6"
+  %unicode|string%(1) "6"
   [-100]=>
-  string(1) "7"
+  %unicode|string%(1) "7"
   [-1000]=>
-  string(1) "8"
+  %unicode|string%(1) "8"
   [10000]=>
-  string(1) "9"
+  %unicode|string%(1) "9"
   [100000]=>
-  string(1) "a"
+  %unicode|string%(1) "a"
   [1000000]=>
-  string(1) "b"
+  %unicode|string%(1) "b"
   [9]=>
-  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
-done!
---UEXPECTF--
-[005]
-array(2) {
-  [u"id"]=>
-  unicode(1) "1"
-  [u"label"]=>
-  unicode(1) "a"
-}
-[006]
-NULL
-[008]
-array(15) {
-  [u"a"]=>
-  unicode(1) "2"
-  [u"c"]=>
-  unicode(1) "3"
-  [u"C"]=>
-  unicode(1) "4"
-  [u"d"]=>
-  NULL
-  [u"e"]=>
-  unicode(1) "1"
-  [-1]=>
-  unicode(1) "5"
-  [-10]=>
-  unicode(1) "6"
-  [-100]=>
-  unicode(1) "7"
-  [-1000]=>
-  unicode(1) "8"
-  [10000]=>
-  unicode(1) "9"
-  [100000]=>
-  unicode(1) "a"
-  [1000000]=>
-  unicode(1) "b"
-  [9]=>
-  unicode(1) "d"
-  [u"01"]=>
-  unicode(1) "e"
-  [u"-02"]=>
-  unicode(1) "f"
+  %unicode|string%(1) "d"
+  [%u|b%"01"]=>
+  %unicode|string%(1) "e"
+  [%u|b%"-02"]=>
+  %unicode|string%(1) "f"
 }
 
 Warning: mysqli_fetch_assoc(): Couldn't fetch mysqli_result in %s on line %d
index 6050d5253f15764e4bb0b7ce9907c0bdd524acb5..fa60582c48fc3f0fd9acd07fb1aa738c9e4b8041 100644 (file)
@@ -87,115 +87,57 @@ require_once('skipifconnectfailure.inc');
 [002]
 array(2) {
   [1]=>
-  string(1) "1"
+  %unicode|string%(1) "1"
   [2]=>
-  string(1) "2"
+  %unicode|string%(1) "2"
 }
 [004]
 array(2) {
-  ["a"]=>
-  string(1) "1"
+  [%u|b%"a"]=>
+  %unicode|string%(1) "1"
   [2]=>
-  string(1) "2"
+  %unicode|string%(1) "2"
 }
 [006]
 array(2) {
-  ["a"]=>
-  string(1) "1"
+  [%u|b%"a"]=>
+  %unicode|string%(1) "1"
   [2]=>
-  string(1) "2"
+  %unicode|string%(1) "2"
 }
 [008]
 array(2) {
-  ["a"]=>
-  string(1) "1"
+  [%u|b%"a"]=>
+  %unicode|string%(1) "1"
   [2]=>
-  string(1) "2"
+  %unicode|string%(1) "2"
 }
 [011]
 array(2) {
   [1]=>
-  string(1) "1"
+  %unicode|string%(1) "1"
   [2]=>
-  string(1) "2"
+  %unicode|string%(1) "2"
 }
 [014]
 array(2) {
-  ["a"]=>
+  [%u|b%"a"]=>
   %s(1) "1"
   [2]=>
   %s(1) "2"
 }
 [017]
 array(2) {
-  ["a"]=>
-  string(1) "1"
+  [%u|b%"a"]=>
+  %unicode|string%(1) "1"
   [2]=>
-  string(1) "2"
+  %unicode|string%(1) "2"
 }
 [017]
 array(2) {
-  ["a"]=>
-  string(1) "1"
+  [%u|b%"a"]=>
+  %unicode|string%(1) "1"
   [2]=>
-  string(1) "2"
-}
-done!
---UEXPECTF--
-[002]
-array(2) {
-  [1]=>
-  unicode(1) "1"
-  [2]=>
-  unicode(1) "2"
-}
-[004]
-array(2) {
-  [u"a"]=>
-  unicode(1) "1"
-  [2]=>
-  unicode(1) "2"
-}
-[006]
-array(2) {
-  [u"a"]=>
-  unicode(1) "1"
-  [2]=>
-  unicode(1) "2"
-}
-[008]
-array(2) {
-  [u"a"]=>
-  unicode(1) "1"
-  [2]=>
-  unicode(1) "2"
-}
-[011]
-array(2) {
-  [1]=>
-  unicode(1) "1"
-  [2]=>
-  unicode(1) "2"
-}
-[014]
-array(2) {
-  [u"a"]=>
-  unicode(1) "1"
-  [2]=>
-  unicode(1) "2"
-}
-[017]
-array(2) {
-  [u"a"]=>
-  unicode(1) "1"
-  [2]=>
-  unicode(1) "2"
-}
-[017]
-array(2) {
-  [u"a"]=>
-  unicode(1) "1"
-  [2]=>
-  unicode(1) "2"
+  %unicode|string%(1) "2"
 }
 done!
\ No newline at end of file
index 5706f6b020469c61febc148565a9450f12025c76..18d60c4b67e201937c0c2f97f1e18d1ee40339fe 100644 (file)
@@ -82,168 +82,84 @@ mysqli_fetch_assoc() - utf8
 --EXPECTF--
 [003]
 array(3) {
-  ["Андрей Христов"]=>
-  string(1) "1"
-  ["Улф Вендел"]=>
-  string(1) "2"
-  ["Георг Рихтер"]=>
-  string(1) "3"
+  [%u|b%"Андрей Христов"]=>
+  %unicode|string%(%r[1|3]%r) "1"
+  [%u|b%"Улф Вендел"]=>
+  %unicode|string%(1) "2"
+  [%u|b%"Георг Рихтер"]=>
+  %unicode|string%(1) "3"
 }
 [009]
 array(3) {
-  ["id"]=>
-  string(1) "4"
-  ["име"]=>
-  string(6) "Andrey"
-  ["фамилия"]=>
-  string(7) "Hristov"
+  [%u|b%"id"]=>
+  %unicode|string%(1) "4"
+  [%u|b%"име"]=>
+  %unicode|string%(6) "Andrey"
+  [%u|b%"фамилия"]=>
+  %unicode|string%(7) "Hristov"
 }
 array(3) {
-  ["id"]=>
-  string(1) "7"
-  ["име"]=>
-  string(9) "安德烈"
-  ["фамилия"]=>
-  string(7) "Hristov"
+  [%u|b%"id"]=>
+  %unicode|string%(1) "7"
+  [%u|b%"име"]=>
+  %unicode|string%(9) "安德烈"
+  [%u|b%"фамилия"]=>
+  %unicode|string%(7) "Hristov"
 }
 array(3) {
-  ["id"]=>
-  string(1) "5"
-  ["име"]=>
-  string(5) "Georg"
-  ["фамилия"]=>
-  string(7) "Richter"
+  [%u|b%"id"]=>
+  %unicode|string%(1) "5"
+  [%u|b%"име"]=>
+  %unicode|string%(5) "Georg"
+  [%u|b%"фамилия"]=>
+  %unicode|string%(7) "Richter"
 }
 array(3) {
-  ["id"]=>
-  string(1) "8"
-  ["име"]=>
-  string(9) "格奥尔"
-  ["фамилия"]=>
-  string(7) "Richter"
+  [%u|b%"id"]=>
+  %unicode|string%(1) "8"
+  [%u|b%"име"]=>
+  %unicode|string%(9) "格奥尔"
+  [%u|b%"фамилия"]=>
+  %unicode|string%(7) "Richter"
 }
 array(3) {
-  ["id"]=>
-  string(1) "6"
-  ["име"]=>
-  string(3) "Ulf"
-  ["фамилия"]=>
-  string(6) "Wendel"
+  [%u|b%"id"]=>
+  %unicode|string%(1) "6"
+  [%u|b%"име"]=>
+  %unicode|string%(3) "Ulf"
+  [%u|b%"фамилия"]=>
+  %unicode|string%(6) "Wendel"
 }
 array(3) {
-  ["id"]=>
-  string(1) "9"
-  ["име"]=>
-  string(9) "乌尔夫"
-  ["фамилия"]=>
-  string(6) "Wendel"
+  [%u|b%"id"]=>
+  %unicode|string%(1) "9"
+  [%u|b%"име"]=>
+  %unicode|string%(9) "乌尔夫"
+  [%u|b%"фамилия"]=>
+  %unicode|string%(6) "Wendel"
 }
 array(3) {
-  ["id"]=>
-  string(1) "3"
-  ["име"]=>
-  string(6) "Улф"
-  ["фамилия"]=>
-  string(12) "Вендел"
+  [%u|b%"id"]=>
+  %unicode|string%(1) "3"
+  [%u|b%"име"]=>
+  %unicode|string%(6) "Улф"
+  [%u|b%"фамилия"]=>
+  %unicode|string%(12) "Вендел"
 }
 array(3) {
-  ["id"]=>
-  string(1) "2"
-  ["име"]=>
-  string(10) "Георг"
-  ["фамилия"]=>
-  string(12) "Рихтер"
+  [%u|b%"id"]=>
+  %unicode|string%(1) "2"
+  [%u|b%"име"]=>
+  %unicode|string%(10) "Георг"
+  [%u|b%"фамилия"]=>
+  %unicode|string%(12) "Рихтер"
 }
 array(3) {
-  ["id"]=>
-  string(1) "1"
-  ["име"]=>
-  string(12) "Андрей"
-  ["фамилия"]=>
-  string(14) "Христов"
-}
-done!
---UEXPECTF--
-[003]
-array(3) {
-  [u"Андрей Христов"]=>
-  unicode(1) "1"
-  [u"Улф Вендел"]=>
-  unicode(1) "2"
-  [u"Георг Рихтер"]=>
-  unicode(1) "3"
-}
-[009]
-array(3) {
-  [u"id"]=>
-  unicode(1) "4"
-  [u"име"]=>
-  unicode(6) "Andrey"
-  [u"фамилия"]=>
-  unicode(7) "Hristov"
-}
-array(3) {
-  [u"id"]=>
-  unicode(1) "7"
-  [u"име"]=>
-  unicode(3) "安德烈"
-  [u"фамилия"]=>
-  unicode(7) "Hristov"
-}
-array(3) {
-  [u"id"]=>
-  unicode(1) "5"
-  [u"име"]=>
-  unicode(5) "Georg"
-  [u"фамилия"]=>
-  unicode(7) "Richter"
-}
-array(3) {
-  [u"id"]=>
-  unicode(1) "8"
-  [u"име"]=>
-  unicode(3) "格奥尔"
-  [u"фамилия"]=>
-  unicode(7) "Richter"
-}
-array(3) {
-  [u"id"]=>
-  unicode(1) "6"
-  [u"име"]=>
-  unicode(3) "Ulf"
-  [u"фамилия"]=>
-  unicode(6) "Wendel"
-}
-array(3) {
-  [u"id"]=>
-  unicode(1) "9"
-  [u"име"]=>
-  unicode(3) "乌尔夫"
-  [u"фамилия"]=>
-  unicode(6) "Wendel"
-}
-array(3) {
-  [u"id"]=>
-  unicode(1) "3"
-  [u"име"]=>
-  unicode(3) "Улф"
-  [u"фамилия"]=>
-  unicode(6) "Вендел"
-}
-array(3) {
-  [u"id"]=>
-  unicode(1) "2"
-  [u"име"]=>
-  unicode(5) "Георг"
-  [u"фамилия"]=>
-  unicode(6) "Рихтер"
-}
-array(3) {
-  [u"id"]=>
-  unicode(1) "1"
-  [u"име"]=>
-  unicode(6) "Андрей"
-  [u"фамилия"]=>
-  unicode(7) "Христов"
+  [%u|b%"id"]=>
+  %unicode|string%(1) "1"
+  [%u|b%"име"]=>
+  %unicode|string%(12) "Андрей"
+  [%u|b%"фамилия"]=>
+  %unicode|string%(14) "Христов"
 }
 done!
\ No newline at end of file
index 1751848378f8ae1f06a537bd16d48f2d4ccd8f9b..3ba0218a3aef79c65d0a01e72d1b7b88683c0e66 100644 (file)
@@ -57,51 +57,25 @@ require_once('skipifconnectfailure.inc');
 --EXPECTF--
 [005]
 array(2) {
-  ["id"]=>
-  string(1) "1"
-  ["label"]=>
-  string(1) "a"
+  [%u|b%"id"]=>
+  %unicode|string%(1) "1"
+  [%u|b%"label"]=>
+  %unicode|string%(1) "a"
 }
 [006]
 NULL
 [008]
 array(5) {
-  ["a"]=>
-  string(1) "2"
-  ["c"]=>
-  string(1) "3"
-  ["C"]=>
-  string(1) "4"
-  ["d"]=>
+  [%u|b%"a"]=>
+  %unicode|string%(1) "2"
+  [%u|b%"c"]=>
+  %unicode|string%(1) "3"
+  [%u|b%"C"]=>
+  %unicode|string%(1) "4"
+  [%u|b%"d"]=>
   NULL
-  ["e"]=>
-  string(1) "1"
-}
-
-Warning: mysqli_result::fetch_assoc(): Couldn't fetch mysqli_result in %s on line %d
-done!
---UEXPECTF--
-[005]
-array(2) {
-  [u"id"]=>
-  unicode(1) "1"
-  [u"label"]=>
-  unicode(1) "a"
-}
-[006]
-NULL
-[008]
-array(5) {
-  [u"a"]=>
-  unicode(1) "2"
-  [u"c"]=>
-  unicode(1) "3"
-  [u"C"]=>
-  unicode(1) "4"
-  [u"d"]=>
-  NULL
-  [u"e"]=>
-  unicode(1) "1"
+  [%u|b%"e"]=>
+  %unicode|string%(1) "1"
 }
 
 Warning: mysqli_result::fetch_assoc(): Couldn't fetch mysqli_result in %s on line %d
index 94911913202ba3d05c45b9ab71090a0e0dc72f48..57952967fa3a3cc57cfab78bffbe672d971ef576 100644 (file)
@@ -58,163 +58,82 @@ require_once('skipifconnectfailure.inc');
 ?>
 --EXPECTF--
 object(stdClass)#%d (11) {
-  ["name"]=>
-  string(2) "ID"
-  ["orgname"]=>
-  string(2) "id"
-  ["table"]=>
-  string(4) "TEST"
-  ["orgtable"]=>
-  string(4) "test"
-  ["def"]=>
-  string(0) ""
-  ["max_length"]=>
+  [%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%"max_length"]=>
   int(1)
-  ["length"]=>
+  [%u|b%"length"]=>
   int(11)
-  ["charsetnr"]=>
+  [%u|b%"charsetnr"]=>
   int(63)
-  ["flags"]=>
+  [%u|b%"flags"]=>
   int(49155)
-  ["type"]=>
+  [%u|b%"type"]=>
   int(3)
-  ["decimals"]=>
+  [%u|b%"decimals"]=>
   int(0)
 }
 object(stdClass)#%d (11) {
-  ["name"]=>
-  string(5) "label"
-  ["orgname"]=>
-  string(5) "label"
-  ["table"]=>
-  string(4) "TEST"
-  ["orgtable"]=>
-  string(4) "test"
-  ["def"]=>
-  string(0) ""
-  ["max_length"]=>
+  [%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%"max_length"]=>
   int(1)
-  ["length"]=>
+  [%u|b%"length"]=>
   int(1)
-  ["charsetnr"]=>
+  [%u|b%"charsetnr"]=>
   int(8)
-  ["flags"]=>
+  [%u|b%"flags"]=>
   int(0)
-  ["type"]=>
+  [%u|b%"type"]=>
   int(254)
-  ["decimals"]=>
+  [%u|b%"decimals"]=>
   int(0)
 }
 bool(false)
 
 Warning: mysqli_fetch_field(): Couldn't fetch mysqli_result in %s on line %d
 array(1) {
-  ["_default_test"]=>
-  string(1) "2"
+  [%u|b%"_default_test"]=>
+  %unicode|string%(1) "2"
 }
 object(stdClass)#%d (11) {
-  ["name"]=>
-  string(13) "_default_test"
-  ["orgname"]=>
-  string(2) "id"
-  ["table"]=>
-  string(4) "test"
-  ["orgtable"]=>
-  string(4) "test"
-  ["def"]=>
-  string(0) ""
-  ["max_length"]=>
+  [%u|b%"name"]=>
+  %unicode|string%(13) "_default_test"
+  [%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%"max_length"]=>
   int(1)
-  ["length"]=>
+  [%u|b%"length"]=>
   int(11)
-  ["charsetnr"]=>
+  [%u|b%"charsetnr"]=>
   int(63)
-  ["flags"]=>
+  [%u|b%"flags"]=>
   int(32769)
-  ["type"]=>
+  [%u|b%"type"]=>
   int(3)
-  ["decimals"]=>
-  int(0)
-}
-done!
---UEXPECTF--
-object(stdClass)#%d (11) {
-  [u"name"]=>
-  unicode(2) "ID"
-  [u"orgname"]=>
-  unicode(2) "id"
-  [u"table"]=>
-  unicode(4) "TEST"
-  [u"orgtable"]=>
-  unicode(4) "test"
-  [u"def"]=>
-  unicode(0) ""
-  [u"max_length"]=>
-  int(%d)
-  [u"length"]=>
-  int(%d)
-  [u"charsetnr"]=>
-  int(%d)
-  [u"flags"]=>
-  int(49155)
-  [u"type"]=>
-  int(3)
-  [u"decimals"]=>
-  int(0)
-}
-object(stdClass)#%d (11) {
-  [u"name"]=>
-  unicode(5) "label"
-  [u"orgname"]=>
-  unicode(5) "label"
-  [u"table"]=>
-  unicode(4) "TEST"
-  [u"orgtable"]=>
-  unicode(4) "test"
-  [u"def"]=>
-  unicode(0) ""
-  [u"max_length"]=>
-  int(%d)
-  [u"length"]=>
-  int(%d)
-  [u"charsetnr"]=>
-  int(%d)
-  [u"flags"]=>
-  int(0)
-  [u"type"]=>
-  int(254)
-  [u"decimals"]=>
-  int(0)
-}
-bool(false)
-
-Warning: mysqli_fetch_field(): Couldn't fetch mysqli_result in %s on line %d
-array(1) {
-  [u"_default_test"]=>
-  unicode(1) "2"
-}
-object(stdClass)#%d (11) {
-  [u"name"]=>
-  unicode(13) "_default_test"
-  [u"orgname"]=>
-  unicode(2) "id"
-  [u"table"]=>
-  unicode(4) "test"
-  [u"orgtable"]=>
-  unicode(4) "test"
-  [u"def"]=>
-  unicode(0) ""
-  [u"max_length"]=>
-  int(1)
-  [u"length"]=>
-  int(11)
-  [u"charsetnr"]=>
-  int(63)
-  [u"flags"]=>
-  int(32769)
-  [u"type"]=>
-  int(3)
-  [u"decimals"]=>
+  [%u|b%"decimals"]=>
   int(0)
 }
 done!
\ No newline at end of file
index a11e0f6beaf3560f94dc6df9fec16edabf6b5c2a..2eb7cd28d1bc30b243b8958f70e880204c6e55ef 100644 (file)
@@ -44,60 +44,27 @@ 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 (11) {
-  ["name"]=>
-  string(2) "ID"
-  ["orgname"]=>
-  string(2) "id"
-  ["table"]=>
-  string(4) "TEST"
-  ["orgtable"]=>
-  string(4) "test"
-  ["def"]=>
-  string(0) ""
-  ["max_length"]=>
+  [%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%"max_length"]=>
   int(%d)
-  ["length"]=>
+  [%u|b%"length"]=>
   int(%d)
-  ["charsetnr"]=>
+  [%u|b%"charsetnr"]=>
   int(%d)
-  ["flags"]=>
+  [%u|b%"flags"]=>
   int(%d)
-  ["type"]=>
+  [%u|b%"type"]=>
   int(%d)
-  ["decimals"]=>
-  int(%d)
-}
-
-Warning: mysqli_fetch_field_direct(): Field offset is invalid for resultset in %s on line %d
-bool(false)
-
-Warning: mysqli_fetch_field_direct(): Couldn't fetch mysqli_result in %s on line %d
-done!
---UEXPECTF--
-Warning: mysqli_fetch_field_direct(): Field offset is invalid for resultset in %s on line %d
-bool(false)
-object(stdClass)#%d (11) {
-  [u"name"]=>
-  unicode(2) "ID"
-  [u"orgname"]=>
-  unicode(2) "id"
-  [u"table"]=>
-  unicode(4) "TEST"
-  [u"orgtable"]=>
-  unicode(4) "test"
-  [u"def"]=>
-  unicode(0) ""
-  [u"max_length"]=>
-  int(%d)
-  [u"length"]=>
-  int(%d)
-  [u"charsetnr"]=>
-  int(%d)
-  [u"flags"]=>
-  int(%d)
-  [u"type"]=>
-  int(%d)
-  [u"decimals"]=>
+  [%u|b%"decimals"]=>
   int(%d)
 }
 
index 42f8156af277a983774829dbb3909d8d568a8a54..a8ad58e00d6ad79a3073480cdf2790614f046ac6 100644 (file)
@@ -53,60 +53,27 @@ 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 (11) {
-  ["name"]=>
-  string(2) "ID"
-  ["orgname"]=>
-  string(2) "id"
-  ["table"]=>
-  string(4) "TEST"
-  ["orgtable"]=>
-  string(4) "test"
-  ["def"]=>
-  string(0) ""
-  ["max_length"]=>
+  [%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%"max_length"]=>
   int(%d)
-  ["length"]=>
+  [%u|b%"length"]=>
   int(11)
-  ["charsetnr"]=>
+  [%u|b%"charsetnr"]=>
   int(%d)
-  ["flags"]=>
+  [%u|b%"flags"]=>
   int(%d)
-  ["type"]=>
+  [%u|b%"type"]=>
   int(%d)
-  ["decimals"]=>
-  int(%d)
-}
-
-Warning: mysqli_result::fetch_field_direct(): Field offset is invalid for resultset in %s on line %d
-bool(false)
-
-Warning: mysqli_result::fetch_field_direct(): Couldn't fetch mysqli_result in %s on line %d
-done!
---UEXPECTF--
-Warning: mysqli_result::fetch_field_direct(): Field offset is invalid for resultset in %s on line %d
-bool(false)
-object(stdClass)#%d (11) {
-  [u"name"]=>
-  unicode(2) "ID"
-  [u"orgname"]=>
-  unicode(2) "id"
-  [u"table"]=>
-  unicode(4) "TEST"
-  [u"orgtable"]=>
-  unicode(4) "test"
-  [u"def"]=>
-  unicode(0) ""
-  [u"max_length"]=>
-  int(%d)
-  [u"length"]=>
-  int(%d)
-  [u"charsetnr"]=>
-  int(%d)
-  [u"flags"]=>
-  int(%d)
-  [u"type"]=>
-  int(%d)
-  [u"decimals"]=>
+  [%u|b%"decimals"]=>
   int(%d)
 }
 
index a39c6e3bc0ec37aede3aed9684a7ede609273dde..9c74408c20e067740142de91896c5efa999dd86b 100644 (file)
@@ -167,7 +167,7 @@ mysqli_close($link);
                                $version = mysqli_get_server_version($link);
                                if ($version <= 50105) {
                                        // TODO - check exact version!
-//                                     $expected_flags = trim(str_replace('UNSIGNED', '', $expected_flags));
+                                       $expected_flags = trim(str_replace('UNSIGNED', '', $expected_flags));
                                }
 
                        default:
@@ -230,4 +230,4 @@ mysqli_close($link);
        print "done!";
 ?>
 --EXPECTF--
-done!
+done!
\ No newline at end of file
index fcc326f5f3c9c2d0e1f29cf51b0751a054c553e6..58108f28f41244bbf0cd3a0ef56b16a8c0cc3bfe 100644 (file)
@@ -45,107 +45,54 @@ require_once('skipifconnectfailure.inc');
 ?>
 --EXPECTF--
 object(stdClass)#%d (11) {
-  ["name"]=>
-  string(2) "ID"
-  ["orgname"]=>
-  string(2) "id"
-  ["table"]=>
-  string(4) "TEST"
-  ["orgtable"]=>
-  string(4) "test"
-  ["def"]=>
-  string(0) ""
-  ["max_length"]=>
+  [%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%"max_length"]=>
   int(1)
-  ["length"]=>
+  [%u|b%"length"]=>
   int(11)
-  ["charsetnr"]=>
+  [%u|b%"charsetnr"]=>
   int(63)
-  ["flags"]=>
+  [%u|b%"flags"]=>
   int(49155)
-  ["type"]=>
+  [%u|b%"type"]=>
   int(3)
-  ["decimals"]=>
+  [%u|b%"decimals"]=>
   int(0)
 }
 object(stdClass)#%d (11) {
-  ["name"]=>
-  string(5) "label"
-  ["orgname"]=>
-  string(5) "label"
-  ["table"]=>
-  string(4) "TEST"
-  ["orgtable"]=>
-  string(4) "test"
-  ["def"]=>
-  string(0) ""
-  ["max_length"]=>
+  [%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%"max_length"]=>
   int(1)
-  ["length"]=>
+  [%u|b%"length"]=>
   int(1)
-  ["charsetnr"]=>
+  [%u|b%"charsetnr"]=>
   int(8)
-  ["flags"]=>
+  [%u|b%"flags"]=>
   int(0)
-  ["type"]=>
+  [%u|b%"type"]=>
   int(254)
-  ["decimals"]=>
+  [%u|b%"decimals"]=>
   int(0)
 }
 bool(false)
 
 Warning: mysqli_result::fetch_field(): Couldn't fetch mysqli_result in %s on line %d
-done!
---UEXPECTF--
-object(stdClass)#%d (11) {
-  [u"name"]=>
-  unicode(2) "ID"
-  [u"orgname"]=>
-  unicode(2) "id"
-  [u"table"]=>
-  unicode(4) "TEST"
-  [u"orgtable"]=>
-  unicode(4) "test"
-  [u"def"]=>
-  unicode(0) ""
-  [u"max_length"]=>
-  int(%d)
-  [u"length"]=>
-  int(%d)
-  [u"charsetnr"]=>
-  int(%d)
-  [u"flags"]=>
-  int(%d)
-  [u"type"]=>
-  int(%d)
-  [u"decimals"]=>
-  int(0)
-}
-object(stdClass)#%d (11) {
-  [u"name"]=>
-  unicode(5) "label"
-  [u"orgname"]=>
-  unicode(5) "label"
-  [u"table"]=>
-  unicode(4) "TEST"
-  [u"orgtable"]=>
-  unicode(4) "test"
-  [u"def"]=>
-  unicode(0) ""
-  [u"max_length"]=>
-  int(%d)
-  [u"length"]=>
-  int(%d)
-  [u"charsetnr"]=>
-  int(%d)
-  [u"flags"]=>
-  int(%d)
-  [u"type"]=>
-  int(%d)
-  [u"decimals"]=>
-  int(0)
-}
-bool(false)
-
-Warning: mysqli_result::fetch_field(): Couldn't fetch mysqli_result in %s on line %d
-done!
+done!
\ No newline at end of file
index 984c14cc1f0fe75eb532f706d417b1f84b56473b..84038c4c8d5b48d4685966aa194f07754d9d1463 100644 (file)
@@ -75,7 +75,7 @@ require_once('skipifconnectfailure.inc');
                MYSQLI_TYPE_DATETIME => array('DATETIME', '2007-08-20 18:42:01'),
                MYSQLI_TYPE_YEAR => array('YEAR', '2007'),
                MYSQLI_TYPE_ENUM => array('ENUM("everything", "is", "just", "wonderful")', 'is'),
-               // MYSQLI_TYPE_SET      => array("SET('I', 'smash', 'the')", 'I,smash,the'), - string
+               // MYSQLI_TYPE_SET      => array('SET("I", "smash", "the")', 'I,smash,the'), - string
                // MYSQLI_TYPE_TINY_BLOB => array("TINYBLOB", "I got a tiny blog"), - blob
                // MYSQLI_TYPE_MEDIUM_BLOB => array("MEDIUMBLOB", "No blob for masses"), - blob
                // MYSQLI_TYPE_LONG_BLOB => array("LONGBLOB", "Small is beautiful?"), - blob
@@ -86,7 +86,7 @@ require_once('skipifconnectfailure.inc');
                MYSQLI_TYPE_VAR_STRING => array("VARCHAR(32768)", 'varchar'),
                MYSQLI_TYPE_STRING => 'MYSQLI_TYPE_STRING - TODO add testing',
                MYSQLI_TYPE_STRING => array('CHAR(1)', 'a'),
-               MYSQLI_TYPE_STRING => array("SET('I', 'smash', 'the')", 'Will be converted to string although it is a SET...'),
+               MYSQLI_TYPE_STRING => array('SET("I", "smash", "the")', 'Will be converted to string although it is a SET...'),
                MYSQLI_TYPE_NULL => 'MYSQLI_TYPE_NULL - TODO add testing',
                MYSQLI_TYPE_NEWDATE => 'MYSQLI_TYPE_NEWDATE - TODO add testing',
                MYSQLI_TYPE_INTERVAL => 'MYSQLI_TYPE_INTERVAL - TODO add testing',
@@ -116,4 +116,4 @@ require_once('skipifconnectfailure.inc');
        print "done!";
 ?>
 --EXPECTF--
-done!
+done!
\ No newline at end of file
index 3ddf854e1b5fe585ec8609cbf5da423095c23cfe..de21d2cd631706cbfff9bb0396f9b33fe8e345e5 100644 (file)
@@ -39,105 +39,53 @@ require_once('skipifconnectfailure.inc');
 ?>
 --EXPECTF--
 object(stdClass)#%d (11) {
-  ["name"]=>
-  string(2) "ID"
-  ["orgname"]=>
-  string(2) "id"
-  ["table"]=>
-  string(4) "TEST"
-  ["orgtable"]=>
-  string(4) "test"
-  ["def"]=>
-  string(0) ""
-  ["max_length"]=>
+  [%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%"max_length"]=>
   int(1)
-  ["length"]=>
+  [%u|b%"length"]=>
   int(11)
-  ["charsetnr"]=>
+  [%u|b%"charsetnr"]=>
   int(63)
-  ["flags"]=>
+  [%u|b%"flags"]=>
   int(49155)
-  ["type"]=>
+  [%u|b%"type"]=>
   int(3)
-  ["decimals"]=>
+  [%u|b%"decimals"]=>
   int(0)
 }
 object(stdClass)#%d (11) {
-  ["name"]=>
-  string(5) "label"
-  ["orgname"]=>
-  string(5) "label"
-  ["table"]=>
-  string(4) "TEST"
-  ["orgtable"]=>
-  string(4) "test"
-  ["def"]=>
-  string(0) ""
-  ["max_length"]=>
+  [%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%"max_length"]=>
   int(1)
-  ["length"]=>
+  [%u|b%"length"]=>
   int(1)
-  ["charsetnr"]=>
+  [%u|b%"charsetnr"]=>
   int(8)
-  ["flags"]=>
+  [%u|b%"flags"]=>
   int(0)
-  ["type"]=>
+  [%u|b%"type"]=>
   int(254)
-  ["decimals"]=>
+  [%u|b%"decimals"]=>
   int(0)
 }
 
 Warning: mysqli_fetch_fields(): Couldn't fetch mysqli_result in %s on line %d
-done!
---UEXPECTF--
-object(stdClass)#%d (11) {
-  [u"name"]=>
-  unicode(2) "ID"
-  [u"orgname"]=>
-  unicode(2) "id"
-  [u"table"]=>
-  unicode(4) "TEST"
-  [u"orgtable"]=>
-  unicode(4) "test"
-  [u"def"]=>
-  unicode(0) ""
-  [u"max_length"]=>
-  int(%d)
-  [u"length"]=>
-  int(%d)
-  [u"charsetnr"]=>
-  int(%d)
-  [u"flags"]=>
-  int(%d)
-  [u"type"]=>
-  int(%d)
-  [u"decimals"]=>
-  int(0)
-}
-object(stdClass)#%d (11) {
-  [u"name"]=>
-  unicode(5) "label"
-  [u"orgname"]=>
-  unicode(5) "label"
-  [u"table"]=>
-  unicode(4) "TEST"
-  [u"orgtable"]=>
-  unicode(4) "test"
-  [u"def"]=>
-  unicode(0) ""
-  [u"max_length"]=>
-  int(%d)
-  [u"length"]=>
-  int(%d)
-  [u"charsetnr"]=>
-  int(%d)
-  [u"flags"]=>
-  int(0)
-  [u"type"]=>
-  int(%d)
-  [u"decimals"]=>
-  int(0)
-}
-
-Warning: mysqli_fetch_fields(): Couldn't fetch mysqli_result in %s on line %d
-done!
+done!
\ No newline at end of file
index 9c87aabf18210ac1cebf1b07d7d5cc8969747a4e..9fc795a1092f05fa2ec9ff8b90e8ec21b64292fc 100644 (file)
@@ -47,9 +47,9 @@ require_once('skipifconnectfailure.inc');
 --EXPECTF--
 No exception with PHP:
 object(mysqli_fetch_object_test)#%d (%d) {
-  ["a"]=>
+  [%u|b%"a"]=>
   NULL
-  ["b"]=>
+  [%u|b%"b"]=>
   NULL
 }
 
@@ -59,18 +59,3 @@ Exception: Class mysqli_fetch_object_test does not have a constructor hence you
 Fatal error with PHP (but no exception!):
 
 Fatal error: Call to undefined method mysqli_fetch_object_test::mysqli_fetch_object_test() in %s on line %d
---UEXPECTF--
-No exception with PHP:
-object(mysqli_fetch_object_test)#%d (%d) {
-  [%s"a"]=>
-  NULL
-  [%s"b"]=>
-  NULL
-}
-
-Exception with mysqli. Note that at all other places we throws errors but no exceptions unless the error mode has been changed:
-Exception: Class mysqli_fetch_object_test does not have a constructor hence you cannot use ctor_params
-
-Fatal error with PHP (but no exception!):
-
-Fatal error: Call to undefined method mysqli_fetch_object_test::mysqli_fetch_object_test() in %s on line %d
\ No newline at end of file
index 22ec282eb1a35e3c397ee098a0b2d00d27ac01c9..6723fdb6562a1a9c0e5b797c1de35cb442f48870 100644 (file)
@@ -41,27 +41,11 @@ require_once('skipifconnectfailure.inc');
 [004]
 array(3) {
   [0]=>
-  string(1) "1"
+  %unicode|string%(1) "1"
   [1]=>
-  string(1) "a"
+  %unicode|string%(1) "a"
   [2]=>
-  string(1) "1"
-}
-[005]
-NULL
-
-Warning: mysqli_fetch_row(): Couldn't fetch mysqli_result in %s on line %d
-NULL
-done!
---UEXPECTF--
-[004]
-array(3) {
-  [0]=>
-  unicode(1) "1"
-  [1]=>
-  unicode(1) "a"
-  [2]=>
-  unicode(1) "1"
+  %unicode|string%(1) "1"
 }
 [005]
 NULL
index 8ce335fcdbe09c859f5087d9785d140d2ff35759..8d1e8da5ea1eab3ab94e37007393ef9f051dea6f 100644 (file)
@@ -36,7 +36,7 @@ require_once('skipifconnectfailure.inc');
        var_dump($link->field_count);
        var_dump(mysqli_field_count($link));
 
-       if (!$res = mysqli_query($link, "SELECT NULL as _null, '' AS '', 'three' AS 'drei'"))
+       if (!$res = mysqli_query($link, 'SELECT NULL as _null, "" AS "", "three" AS "drei"'))
                printf("[006] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
        var_dump(mysqli_field_count($link));
        mysqli_free_result($res);
@@ -56,4 +56,4 @@ int(3)
 
 Warning: mysqli_field_count(): Couldn't fetch mysqli in %s on line %d
 NULL
-done!
+done!
\ No newline at end of file
index c3065dd494e256267f2d8566eae72ff03d3651f2..207471974767171a610a2bf6508187c7ad898cf4 100644 (file)
@@ -105,191 +105,77 @@ require_once('skipifconnectfailure.inc');
 Warning: mysqli_field_seek(): Invalid field offset in %s on line %d
 bool(false)
 object(stdClass)#%d (11) {
-  ["name"]=>
-  string(2) "id"
-  ["orgname"]=>
-  string(2) "id"
-  ["table"]=>
-  string(4) "test"
-  ["orgtable"]=>
-  string(4) "test"
-  ["def"]=>
-  string(0) ""
-  ["max_length"]=>
-  int(0)
-  ["length"]=>
+  [%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%"max_length"]=>
+  int(0)
+  [%u|b%"length"]=>
   int(11)
-  ["charsetnr"]=>
+  [%u|b%"charsetnr"]=>
   int(63)
-  ["flags"]=>
+  [%u|b%"flags"]=>
   int(49155)
-  ["type"]=>
+  [%u|b%"type"]=>
   int(3)
-  ["decimals"]=>
+  [%u|b%"decimals"]=>
   int(0)
 }
 bool(true)
 object(stdClass)#%d (11) {
-  ["name"]=>
-  string(2) "id"
-  ["orgname"]=>
-  string(2) "id"
-  ["table"]=>
-  string(4) "test"
-  ["orgtable"]=>
-  string(4) "test"
-  ["def"]=>
-  string(0) ""
-  ["max_length"]=>
-  int(0)
-  ["length"]=>
+  [%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%"max_length"]=>
+  int(0)
+  [%u|b%"length"]=>
   int(11)
-  ["charsetnr"]=>
+  [%u|b%"charsetnr"]=>
   int(63)
-  ["flags"]=>
+  [%u|b%"flags"]=>
   int(49155)
-  ["type"]=>
+  [%u|b%"type"]=>
   int(3)
-  ["decimals"]=>
+  [%u|b%"decimals"]=>
   int(0)
 }
 bool(true)
 object(stdClass)#%d (11) {
-  ["name"]=>
-  string(5) "label"
-  ["orgname"]=>
-  string(5) "label"
-  ["table"]=>
-  string(4) "test"
-  ["orgtable"]=>
-  string(4) "test"
-  ["def"]=>
-  string(0) ""
-  ["max_length"]=>
-  int(0)
-  ["length"]=>
+  [%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%"max_length"]=>
+  int(0)
+  [%u|b%"length"]=>
   int(1)
-  ["charsetnr"]=>
+  [%u|b%"charsetnr"]=>
   int(8)
-  ["flags"]=>
+  [%u|b%"flags"]=>
   int(0)
-  ["type"]=>
+  [%u|b%"type"]=>
   int(254)
-  ["decimals"]=>
-  int(0)
-}
-int(2)
-
-Warning: mysqli_field_seek(): Invalid field offset in %s on line %d
-bool(false)
-bool(false)
-
-Warning: mysqli_field_seek(): Invalid field offset in %s on line %d
-bool(false)
-bool(true)
-object(stdClass)#3 (11) {
-  ["name"]=>
-  string(5) "_null"
-  ["orgname"]=>
-  string(0) ""
-  ["table"]=>
-  string(0) ""
-  ["orgtable"]=>
-  string(0) ""
-  ["def"]=>
-  string(0) ""
-  ["max_length"]=>
-  int(0)
-  ["length"]=>
-  int(0)
-  ["charsetnr"]=>
-  int(63)
-  ["flags"]=>
-  int(32896)
-  ["type"]=>
-  int(6)
-  ["decimals"]=>
-  int(0)
-}
-
-Warning: mysqli_field_seek(): Couldn't fetch mysqli_result in %s on line %d
-NULL
-done!
---UEXPECTF--
-Warning: mysqli_field_seek(): Invalid field offset in %s on line %d
-bool(false)
-object(stdClass)#%d (11) {
-  [u"name"]=>
-  unicode(2) "id"
-  [u"orgname"]=>
-  unicode(2) "id"
-  [u"table"]=>
-  unicode(4) "test"
-  [u"orgtable"]=>
-  unicode(4) "test"
-  [u"def"]=>
-  unicode(0) ""
-  [u"max_length"]=>
-  int(%d)
-  [u"length"]=>
-  int(%d)
-  [u"charsetnr"]=>
-  int(%d)
-  [u"flags"]=>
-  int(%d)
-  [u"type"]=>
-  int(%d)
-  [u"decimals"]=>
-  int(0)
-}
-bool(true)
-object(stdClass)#%d (11) {
-  [u"name"]=>
-  unicode(2) "id"
-  [u"orgname"]=>
-  unicode(2) "id"
-  [u"table"]=>
-  unicode(4) "test"
-  [u"orgtable"]=>
-  unicode(4) "test"
-  [u"def"]=>
-  unicode(0) ""
-  [u"max_length"]=>
-  int(%d)
-  [u"length"]=>
-  int(%d)
-  [u"charsetnr"]=>
-  int(%d)
-  [u"flags"]=>
-  int(%d)
-  [u"type"]=>
-  int(%d)
-  [u"decimals"]=>
-  int(0)
-}
-bool(true)
-object(stdClass)#%d (11) {
-  [u"name"]=>
-  unicode(5) "label"
-  [u"orgname"]=>
-  unicode(5) "label"
-  [u"table"]=>
-  unicode(4) "test"
-  [u"orgtable"]=>
-  unicode(4) "test"
-  [u"def"]=>
-  unicode(0) ""
-  [u"max_length"]=>
-  int(%d)
-  [u"length"]=>
-  int(%d)
-  [u"charsetnr"]=>
-  int(%d)
-  [u"flags"]=>
-  int(%d)
-  [u"type"]=>
-  int(%d)
-  [u"decimals"]=>
+  [%u|b%"decimals"]=>
   int(0)
 }
 int(2)
@@ -302,27 +188,27 @@ Warning: mysqli_field_seek(): Invalid field offset in %s on line %d
 bool(false)
 bool(true)
 object(stdClass)#3 (11) {
-  [u"name"]=>
-  unicode(5) "_null"
-  [u"orgname"]=>
-  unicode(0) ""
-  [u"table"]=>
-  unicode(0) ""
-  [u"orgtable"]=>
-  unicode(0) ""
-  [u"def"]=>
-  unicode(0) ""
-  [u"max_length"]=>
-  int(0)
-  [u"length"]=>
-  int(0)
-  [u"charsetnr"]=>
+  [%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%"max_length"]=>
+  int(0)
+  [%u|b%"length"]=>
+  int(0)
+  [%u|b%"charsetnr"]=>
   int(63)
-  [u"flags"]=>
+  [%u|b%"flags"]=>
   int(32896)
-  [u"type"]=>
+  [%u|b%"type"]=>
   int(6)
-  [u"decimals"]=>
+  [%u|b%"decimals"]=>
   int(0)
 }
 
index fae8bc4d7f50d0b616fa58376882544e9159d51c..81626346ac4658c22e653a2191020052e6b6639c 100644 (file)
@@ -61,73 +61,27 @@ Warning: mysqli_field_seek() expects exactly 2 parameters, 1 given in %s on line
 NULL
 int(0)
 object(stdClass)#%d (11) {
-  ["name"]=>
-  string(2) "id"
-  ["orgname"]=>
-  string(2) "id"
-  ["table"]=>
-  string(4) "test"
-  ["orgtable"]=>
-  string(4) "test"
-  ["def"]=>
-  string(0) ""
-  ["max_length"]=>
+  [%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%"max_length"]=>
   int(0)
-  ["length"]=>
+  [%u|b%"length"]=>
   int(11)
-  ["charsetnr"]=>
+  [%u|b%"charsetnr"]=>
   int(63)
-  ["flags"]=>
+  [%u|b%"flags"]=>
   int(49155)
-  ["type"]=>
+  [%u|b%"type"]=>
   int(3)
-  ["decimals"]=>
-  int(0)
-}
-bool(false)
-int(1)
-
-Warning: mysqli_field_seek(): Invalid field offset in %s on line %d
-bool(false)
-int(1)
-
-Warning: mysqli_field_seek(): Invalid field offset in %s on line %d
-bool(false)
-int(1)
-bool(true)
-int(0)
-
-Warning: mysqli_field_tell(): Couldn't fetch mysqli_result in %s on line %d
-NULL
-done!
---UEXPECTF--
-int(0)
-
-Warning: mysqli_field_seek() expects exactly 2 parameters, 1 given in %s on line %d
-NULL
-int(0)
-object(stdClass)#%d (11) {
-  [u"name"]=>
-  unicode(2) "id"
-  [u"orgname"]=>
-  unicode(2) "id"
-  [u"table"]=>
-  unicode(4) "test"
-  [u"orgtable"]=>
-  unicode(4) "test"
-  [u"def"]=>
-  unicode(0) ""
-  [u"max_length"]=>
-  int(%d)
-  [u"length"]=>
-  int(%d)
-  [u"charsetnr"]=>
-  int(%d)
-  [u"flags"]=>
-  int(%d)
-  [u"type"]=>
-  int(%d)
-  [u"decimals"]=>
+  [%u|b%"decimals"]=>
   int(0)
 }
 bool(false)
index bede1b40b4b18f310444430d45f187d5768e9b89..d5d8ad11f645a39f21fa537d2d9e5bf2044fccbc 100644 (file)
@@ -247,18 +247,4 @@ array(1) {
      child array
     parent conti
      child stop
-done!
---UEXPECTF--
-array(1) {
-  [u"message"]=>
-  unicode(20) "dumped by the parent"
-}
-     child start
-     child array
-    parent conti
-     child array
-    parent conti
-     child array
-    parent conti
-     child stop
 done!
\ No newline at end of file
index 6f068f9227d9944f8b8daf9a62594ec3fd61c2e4..c9dcc095982b41ae149a1d5b67f0cfa994c8be3a 100644 (file)
@@ -8,9 +8,6 @@ require_once('skipifconnectfailure.inc');
 if (!function_exists('mysqli_get_cache_stats')) {
        die("skip only available with mysqlnd");
 }
-if (ini_get("unicode.semantics")) {
-       die("skip: zval cache works now only in non-unicode mode");
-}
 ?>
 --FILE--
 <?php
@@ -92,37 +89,19 @@ if (ini_get("unicode.semantics")) {
 ?>
 --EXPECTF--
 array(7) {
-  ["put_hits"]=>
-  int(0)
-  ["put_misses"]=>
-  int(0)
-  ["get_hits"]=>
-  int(0)
-  ["get_misses"]=>
-  int(0)
-  ["size"]=>
-  int(%d)
-  ["free_items"]=>
-  int(%d)
-  ["references"]=>
-  int(%d)
-}
-done!
---UEXPECTF--
-array(7) {
-  [u"put_hits"]=>
+  [%u|b%"put_hits"]=>
   int(0)
-  [u"put_misses"]=>
+  [%u|b%"put_misses"]=>
   int(0)
-  [u"get_hits"]=>
+  [%u|b%"get_hits"]=>
   int(0)
-  [u"get_misses"]=>
+  [%u|b%"get_misses"]=>
   int(0)
-  [u"size"]=>
+  [%u|b%"size"]=>
   int(%d)
-  [u"free_items"]=>
+  [%u|b%"free_items"]=>
   int(%d)
-  [u"references"]=>
+  [%u|b%"references"]=>
   int(%d)
 }
 done!
\ No newline at end of file
index fac08715ccd81c0475e9f19f383915768497bc4f..969a21be92b14fb77ba576fdeb8c378f87f7447c 100644 (file)
@@ -8,9 +8,6 @@ require_once('skipifconnectfailure.inc');
 if (!function_exists('mysqli_get_cache_stats')) {
        die("skip only available with mysqlnd");
 }
-if (ini_get("unicode.semantics")) {
-       die("skip: zval cache works now only in non-unicode mode");
-}
 ?>
 --FILE--
 <?php
index 128e07f8208ddffacf6580c43c5db884a306cbb9..3652e7b193a6f35e899927e92c17ece7d3d8f1e3 100644 (file)
@@ -44,7 +44,7 @@ if (!function_exists('mysqli_get_charset'))
        if (!($character_set_connection = $tmp['charset']) || !($collation_connection = $tmp['collation']))
                printf("[008] Cannot determine current character set and collation\n");
 
-       if (!$res = mysqli_query($link, $sql = sprintf("SHOW CHARACTER SET LIKE '%s'", $character_set_connection)))
+       if (!$res = mysqli_query($link, $sql = sprintf('SHOW CHARACTER SET LIKE "%s"', $character_set_connection)))
                printf("[009] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
        $tmp = mysqli_fetch_assoc($res);
        if (empty($tmp))
@@ -53,14 +53,14 @@ if (!function_exists('mysqli_get_charset'))
        $maxlen = (isset($tmp['Maxlen'])) ? $tmp['Maxlen'] : '';
        $comment = (isset($tmp['Description'])) ? $tmp['Description'] : '';
 
-       if (!$res = mysqli_query($link, sprintf("SHOW COLLATION LIKE '%s'", $collation_connection)))
+       if (!$res = mysqli_query($link, sprintf('SHOW COLLATION LIKE "%s"', $collation_connection)))
                printf("[011] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
        $tmp = mysqli_fetch_assoc($res);
        mysqli_free_result($res);
        if (!($id = $tmp['Id']))
                printf("[012] Cannot fetch Id/Number, test will fail\n");
 
-       if (!$res = mysqli_query($link, sprintf("SHOW VARIABLES LIKE 'character_sets_dir'")))
+       if (!$res = mysqli_query($link, sprintf('SHOW VARIABLES LIKE "character_sets_dir"')))
                printf("[013] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
        $tmp = mysqli_fetch_assoc($res);
        mysqli_free_result($res);
index e59f029ed14875e952d1ec535df9624768f742ef..dd1ccfdead533133ecb341f787c527c16ef8ce58 100644 (file)
@@ -129,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 string(1) "1" here! Andrey did not go for int to avoid any
+       // This is not a mistake that I use %unicode|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);
@@ -860,244 +860,244 @@ mysqlnd.collect_memory_statistics=1
 ?>
 --EXPECTF--
 array(119) {
-  ["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_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_ammount"]=>
-  string(1) "0"
-  ["mem_ecalloc_count"]=>
-  string(1) "0"
-  ["mem_ecalloc_ammount"]=>
-  string(1) "0"
-  ["mem_erealloc_count"]=>
-  string(1) "0"
-  ["mem_erealloc_ammount"]=>
-  string(1) "0"
-  ["mem_efree_count"]=>
-  string(1) "0"
-  ["mem_malloc_count"]=>
-  string(1) "0"
-  ["mem_malloc_ammount"]=>
-  string(1) "0"
-  ["mem_calloc_count"]=>
-  string(1) "0"
-  ["mem_calloc_ammount"]=>
-  string(1) "0"
-  ["mem_realloc_count"]=>
-  string(1) "0"
-  ["mem_realloc_ammount"]=>
-  string(1) "0"
-  ["mem_free_count"]=>
-  string(1) "0"
-  ["proto_text_fetched_null"]=>
-  string(1) "0"
-  ["proto_text_fetched_bit"]=>
-  string(1) "0"
-  ["proto_text_fetched_tinyint"]=>
-  string(1) "0"
-  ["proto_text_fetched_short"]=>
-  string(1) "0"
-  ["proto_text_fetched_int24"]=>
-  string(1) "0"
-  ["proto_text_fetched_int"]=>
-  string(1) "0"
-  ["proto_text_fetched_bigint"]=>
-  string(1) "0"
-  ["proto_text_fetched_decimal"]=>
-  string(1) "0"
-  ["proto_text_fetched_float"]=>
-  string(1) "0"
-  ["proto_text_fetched_double"]=>
-  string(1) "0"
-  ["proto_text_fetched_date"]=>
-  string(1) "0"
-  ["proto_text_fetched_year"]=>
-  string(1) "0"
-  ["proto_text_fetched_time"]=>
-  string(1) "0"
-  ["proto_text_fetched_datetime"]=>
-  string(1) "0"
-  ["proto_text_fetched_timestamp"]=>
-  string(1) "0"
-  ["proto_text_fetched_string"]=>
-  string(1) "0"
-  ["proto_text_fetched_blob"]=>
-  string(1) "0"
-  ["proto_text_fetched_enum"]=>
-  string(1) "0"
-  ["proto_text_fetched_set"]=>
-  string(1) "0"
-  ["proto_text_fetched_geometry"]=>
-  string(1) "0"
-  ["proto_text_fetched_other"]=>
-  string(1) "0"
-  ["proto_binary_fetched_null"]=>
-  string(1) "0"
-  ["proto_binary_fetched_bit"]=>
-  string(1) "0"
-  ["proto_binary_fetched_tinyint"]=>
-  string(1) "0"
-  ["proto_binary_fetched_short"]=>
-  string(1) "0"
-  ["proto_binary_fetched_int24"]=>
-  string(1) "0"
-  ["proto_binary_fetched_int"]=>
-  string(1) "0"
-  ["proto_binary_fetched_bigint"]=>
-  string(1) "0"
-  ["proto_binary_fetched_decimal"]=>
-  string(1) "0"
-  ["proto_binary_fetched_float"]=>
-  string(1) "0"
-  ["proto_binary_fetched_double"]=>
-  string(1) "0"
-  ["proto_binary_fetched_date"]=>
-  string(1) "0"
-  ["proto_binary_fetched_year"]=>
-  string(1) "0"
-  ["proto_binary_fetched_time"]=>
-  string(1) "0"
-  ["proto_binary_fetched_datetime"]=>
-  string(1) "0"
-  ["proto_binary_fetched_timestamp"]=>
-  string(1) "0"
-  ["proto_binary_fetched_string"]=>
-  string(1) "0"
-  ["proto_binary_fetched_blob"]=>
-  string(1) "0"
-  ["proto_binary_fetched_enum"]=>
-  string(1) "0"
-  ["proto_binary_fetched_set"]=>
-  string(1) "0"
-  ["proto_binary_fetched_geometry"]=>
-  string(1) "0"
-  ["proto_binary_fetched_other"]=>
-  string(1) "0"
+  [%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_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_ammount"]=>
+  %unicode|string%(1) "0"
+  [%u|b%"mem_ecalloc_count"]=>
+  %unicode|string%(1) "0"
+  [%u|b%"mem_ecalloc_ammount"]=>
+  %unicode|string%(1) "0"
+  [%u|b%"mem_erealloc_count"]=>
+  %unicode|string%(1) "0"
+  [%u|b%"mem_erealloc_ammount"]=>
+  %unicode|string%(1) "0"
+  [%u|b%"mem_efree_count"]=>
+  %unicode|string%(1) "0"
+  [%u|b%"mem_malloc_count"]=>
+  %unicode|string%(1) "0"
+  [%u|b%"mem_malloc_ammount"]=>
+  %unicode|string%(1) "0"
+  [%u|b%"mem_calloc_count"]=>
+  %unicode|string%(1) "0"
+  [%u|b%"mem_calloc_ammount"]=>
+  %unicode|string%(1) "0"
+  [%u|b%"mem_realloc_count"]=>
+  %unicode|string%(1) "0"
+  [%u|b%"mem_realloc_ammount"]=>
+  %unicode|string%(1) "0"
+  [%u|b%"mem_free_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_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"
 }
 Testing buffered normal...
 Testing buffered normal... - SELECT id, label FROM test
@@ -1110,257 +1110,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!
---UEXPECTF--
-array(119) {
-  [u"bytes_sent"]=>
-  unicode(1) "0"
-  [u"bytes_received"]=>
-  unicode(1) "0"
-  [u"packets_sent"]=>
-  unicode(1) "0"
-  [u"packets_received"]=>
-  unicode(1) "0"
-  [u"protocol_overhead_in"]=>
-  unicode(1) "0"
-  [u"protocol_overhead_out"]=>
-  unicode(1) "0"
-  [u"bytes_received_ok_packet"]=>
-  unicode(1) "0"
-  [u"bytes_received_eof_packet"]=>
-  unicode(1) "0"
-  [u"bytes_received_rset_header_packet"]=>
-  unicode(1) "0"
-  [u"bytes_received_rset_field_meta_packet"]=>
-  unicode(1) "0"
-  [u"bytes_received_rset_row_packet"]=>
-  unicode(1) "0"
-  [u"bytes_received_prepare_response_packet"]=>
-  unicode(1) "0"
-  [u"bytes_received_change_user_packet"]=>
-  unicode(1) "0"
-  [u"packets_sent_command"]=>
-  unicode(1) "0"
-  [u"packets_received_ok"]=>
-  unicode(1) "0"
-  [u"packets_received_eof"]=>
-  unicode(1) "0"
-  [u"packets_received_rset_header"]=>
-  unicode(1) "0"
-  [u"packets_received_rset_field_meta"]=>
-  unicode(1) "0"
-  [u"packets_received_rset_row"]=>
-  unicode(1) "0"
-  [u"packets_received_prepare_response"]=>
-  unicode(1) "0"
-  [u"packets_received_change_user"]=>
-  unicode(1) "0"
-  [u"result_set_queries"]=>
-  unicode(1) "0"
-  [u"non_result_set_queries"]=>
-  unicode(1) "0"
-  [u"no_index_used"]=>
-  unicode(1) "0"
-  [u"bad_index_used"]=>
-  unicode(1) "0"
-  [u"slow_queries"]=>
-  unicode(1) "0"
-  [u"buffered_sets"]=>
-  unicode(1) "0"
-  [u"unbuffered_sets"]=>
-  unicode(1) "0"
-  [u"ps_buffered_sets"]=>
-  unicode(1) "0"
-  [u"ps_unbuffered_sets"]=>
-  unicode(1) "0"
-  [u"flushed_normal_sets"]=>
-  unicode(1) "0"
-  [u"flushed_ps_sets"]=>
-  unicode(1) "0"
-  [u"ps_prepared_never_executed"]=>
-  unicode(1) "0"
-  [u"ps_prepared_once_executed"]=>
-  unicode(1) "0"
-  [u"rows_fetched_from_server_normal"]=>
-  unicode(1) "0"
-  [u"rows_fetched_from_server_ps"]=>
-  unicode(1) "0"
-  [u"rows_buffered_from_client_normal"]=>
-  unicode(1) "0"
-  [u"rows_buffered_from_client_ps"]=>
-  unicode(1) "0"
-  [u"rows_fetched_from_client_normal_buffered"]=>
-  unicode(1) "0"
-  [u"rows_fetched_from_client_normal_unbuffered"]=>
-  unicode(1) "0"
-  [u"rows_fetched_from_client_ps_buffered"]=>
-  unicode(1) "0"
-  [u"rows_fetched_from_client_ps_unbuffered"]=>
-  unicode(1) "0"
-  [u"rows_fetched_from_client_ps_cursor"]=>
-  unicode(1) "0"
-  [u"rows_skipped_normal"]=>
-  unicode(1) "0"
-  [u"rows_skipped_ps"]=>
-  unicode(1) "0"
-  [u"copy_on_write_saved"]=>
-  unicode(1) "0"
-  [u"copy_on_write_performed"]=>
-  unicode(1) "0"
-  [u"command_buffer_too_small"]=>
-  unicode(1) "0"
-  [u"connect_success"]=>
-  unicode(1) "0"
-  [u"connect_failure"]=>
-  unicode(1) "0"
-  [u"connection_reused"]=>
-  unicode(1) "0"
-  [u"reconnect"]=>
-  unicode(1) "0"
-  [u"pconnect_success"]=>
-  unicode(1) "0"
-  [u"active_connections"]=>
-  unicode(1) "0"
-  [u"active_persistent_connections"]=>
-  unicode(1) "0"
-  [u"explicit_close"]=>
-  unicode(1) "0"
-  [u"implicit_close"]=>
-  unicode(1) "0"
-  [u"disconnect_close"]=>
-  unicode(1) "0"
-  [u"in_middle_of_command_close"]=>
-  unicode(1) "0"
-  [u"explicit_free_result"]=>
-  unicode(1) "0"
-  [u"implicit_free_result"]=>
-  unicode(1) "0"
-  [u"explicit_stmt_close"]=>
-  unicode(1) "0"
-  [u"implicit_stmt_close"]=>
-  unicode(1) "0"
-  [u"mem_emalloc_count"]=>
-  unicode(1) "0"
-  [u"mem_emalloc_ammount"]=>
-  unicode(1) "0"
-  [u"mem_ecalloc_count"]=>
-  unicode(1) "0"
-  [u"mem_ecalloc_ammount"]=>
-  unicode(1) "0"
-  [u"mem_erealloc_count"]=>
-  unicode(1) "0"
-  [u"mem_erealloc_ammount"]=>
-  unicode(1) "0"
-  [u"mem_efree_count"]=>
-  unicode(1) "0"
-  [u"mem_malloc_count"]=>
-  unicode(1) "0"
-  [u"mem_malloc_ammount"]=>
-  unicode(1) "0"
-  [u"mem_calloc_count"]=>
-  unicode(1) "0"
-  [u"mem_calloc_ammount"]=>
-  unicode(1) "0"
-  [u"mem_realloc_count"]=>
-  unicode(1) "0"
-  [u"mem_realloc_ammount"]=>
-  unicode(1) "0"
-  [u"mem_free_count"]=>
-  unicode(1) "0"
-  [u"proto_text_fetched_null"]=>
-  unicode(1) "0"
-  [u"proto_text_fetched_bit"]=>
-  unicode(1) "0"
-  [u"proto_text_fetched_tinyint"]=>
-  unicode(1) "0"
-  [u"proto_text_fetched_short"]=>
-  unicode(1) "0"
-  [u"proto_text_fetched_int24"]=>
-  unicode(1) "0"
-  [u"proto_text_fetched_int"]=>
-  unicode(1) "0"
-  [u"proto_text_fetched_bigint"]=>
-  unicode(1) "0"
-  [u"proto_text_fetched_decimal"]=>
-  unicode(1) "0"
-  [u"proto_text_fetched_float"]=>
-  unicode(1) "0"
-  [u"proto_text_fetched_double"]=>
-  unicode(1) "0"
-  [u"proto_text_fetched_date"]=>
-  unicode(1) "0"
-  [u"proto_text_fetched_year"]=>
-  unicode(1) "0"
-  [u"proto_text_fetched_time"]=>
-  unicode(1) "0"
-  [u"proto_text_fetched_datetime"]=>
-  unicode(1) "0"
-  [u"proto_text_fetched_timestamp"]=>
-  unicode(1) "0"
-  [u"proto_text_fetched_unicode"]=>
-  unicode(1) "0"
-  [u"proto_text_fetched_blob"]=>
-  unicode(1) "0"
-  [u"proto_text_fetched_enum"]=>
-  unicode(1) "0"
-  [u"proto_text_fetched_set"]=>
-  unicode(1) "0"
-  [u"proto_text_fetched_geometry"]=>
-  unicode(1) "0"
-  [u"proto_text_fetched_other"]=>
-  unicode(1) "0"
-  [u"proto_binary_fetched_null"]=>
-  unicode(1) "0"
-  [u"proto_binary_fetched_bit"]=>
-  unicode(1) "0"
-  [u"proto_binary_fetched_tinyint"]=>
-  unicode(1) "0"
-  [u"proto_binary_fetched_short"]=>
-  unicode(1) "0"
-  [u"proto_binary_fetched_int24"]=>
-  unicode(1) "0"
-  [u"proto_binary_fetched_int"]=>
-  unicode(1) "0"
-  [u"proto_binary_fetched_bigint"]=>
-  unicode(1) "0"
-  [u"proto_binary_fetched_decimal"]=>
-  unicode(1) "0"
-  [u"proto_binary_fetched_float"]=>
-  unicode(1) "0"
-  [u"proto_binary_fetched_double"]=>
-  unicode(1) "0"
-  [u"proto_binary_fetched_date"]=>
-  unicode(1) "0"
-  [u"proto_binary_fetched_year"]=>
-  unicode(1) "0"
-  [u"proto_binary_fetched_time"]=>
-  unicode(1) "0"
-  [u"proto_binary_fetched_datetime"]=>
-  unicode(1) "0"
-  [u"proto_binary_fetched_timestamp"]=>
-  unicode(1) "0"
-  [u"proto_binary_fetched_unicode"]=>
-  unicode(1) "0"
-  [u"proto_binary_fetched_blob"]=>
-  unicode(1) "0"
-  [u"proto_binary_fetched_enum"]=>
-  unicode(1) "0"
-  [u"proto_binary_fetched_set"]=>
-  unicode(1) "0"
-  [u"proto_binary_fetched_geometry"]=>
-  unicode(1) "0"
-  [u"proto_binary_fetched_other"]=>
-  unicode(1) "0"
-}
-Testing buffered normal...
-Testing buffered normal... - SELECT id, label FROM test
-Testing unbuffered normal...
-Testing unbuffered normal... - SELECT id, label FROM test, not all fetched
-Testing if implicit fetching and cleaning happens...
-Testing buffered Prepared Statements...
-Testing buffered Prepared Statements... - fetching all
-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!
+done!
\ No newline at end of file
index fdb4ea68a76abb1f7af2da3118a30289ac819aed..3f77de3cd167cfcc3aedb442ede354e8cb7af04f 100644 (file)
@@ -1,9 +1,9 @@
 --TEST--
 mysqli_info()
 --SKIPIF--
-<?php 
+<?php
 require_once('skipif.inc');
-require_once('skipifemb.inc'); 
+require_once('skipifemb.inc');
 require_once('skipifconnectfailure.inc');
 ?>
 --FILE--
@@ -17,20 +17,20 @@ require_once('skipifconnectfailure.inc');
                printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
 
        require "table.inc";
-       if (!$res = mysqli_query($link, "INSERT INTO test(id, label) VALUES (100, 'a')"))
+       if (!$res = mysqli_query($link, 'INSERT INTO test(id, label) VALUES (100, "a")'))
                printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
 
        // NOTE: empty string, no multiple insert syntax
        if (!is_string($tmp = mysqli_info($link)) || ('' != $tmp))
                printf("[004] Expecting string/empty, got %s/%s\n", gettype($tmp), $tmp);
 
-       if (!$res = mysqli_query($link, "INSERT INTO test(id, label) VALUES (101, 'a'), (102, 'b')"))
+       if (!$res = mysqli_query($link, 'INSERT INTO test(id, label) VALUES (101, "a"), (102, "b")'))
                printf("[005] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
 
        if (!is_string($tmp = mysqli_info($link)) || ('' == $tmp))
                printf("[006] Expecting string/any_non_empty, got %s/%s\n", gettype($tmp), $tmp);
 
-       if (ini_get('unicode.semantics') && !is_unicode($tmp))
+       if ((version_compare(PHP_VERSION, '5.9.9', '>') == 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'))
@@ -45,7 +45,7 @@ require_once('skipifconnectfailure.inc');
        if (!is_string($tmp = mysqli_info($link)) || ('' == $tmp))
                printf("[010] Expecting string/any_non_empty, got %s/%s\n", gettype($tmp), $tmp);
 
-       if (!$res = mysqli_query($link, "UPDATE test SET label = 'b' WHERE id >= 100"))
+       if (!$res = mysqli_query($link, 'UPDATE test SET label = "b" WHERE id >= 100'))
                printf("[011] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
 
        if (!is_string($tmp = mysqli_info($link)) || ('' == $tmp))
@@ -94,4 +94,4 @@ require_once('skipifconnectfailure.inc');
        print "done!";
 ?>
 --EXPECTF--
-done!
+done!
\ No newline at end of file
index 44a1828d4e7fc08ac240c59848519438981d08c2..f4848f5b10b0451894ee6afa311f248035b20cd1 100644 (file)
@@ -1,9 +1,9 @@
 --TEST--
 mysqli_kill()
 --SKIPIF--
-<?php 
+<?php
 require_once('skipif.inc');
-require_once('skipifemb.inc'); 
+require_once('skipifemb.inc');
 require_once('skipifconnectfailure.inc');
 ?>
 --FILE--
@@ -66,65 +66,50 @@ require_once('skipifconnectfailure.inc');
 ?>
 --EXPECTF--
 Warning: mysqli_kill(): processid should have positive value in %s on line %d
-string(%d) "%s"
+%unicode|string%(%d) "%s"
 bool(false)
 object(mysqli)#%d (%d) {
-  ["affected_rows"]=>
+  [%u|b%"affected_rows"]=>
   int(-1)
-  ["client_info"]=>
-  string(%d) "%s"
-  ["client_version"]=>
+  [%u|b%"client_info"]=>
+  %unicode|string%(%d) "%s"
+  [%u|b%"client_version"]=>
   int(%d)
-  ["connect_errno"]=>
+  [%u|b%"connect_errno"]=>
   int(0)
-  ["connect_error"]=>
-  string(0) ""
-  ["errno"]=>
+  [%u|b%"connect_error"]=>
+  %unicode|string%(0) ""
+  [%u|b%"errno"]=>
   int(2006)
-  ["error"]=>
-  string(26) "MySQL server has gone away"
-  ["field_count"]=>
+  [%u|b%"error"]=>
+  %unicode|string%(26) "MySQL server has gone away"
+  [%u|b%"field_count"]=>
   int(0)
-  ["host_info"]=>
-  string(42) "MySQL host info: Localhost via UNIX socket"
-  ["info"]=>
-  string(38) "Records: 6  Duplicates: 0  Warnings: 0"
-  ["insert_id"]=>
+  [%u|b%"host_info"]=>
+  %unicode|string%(42) "MySQL host info: Localhost via UNIX socket"
+  [%u|b%"info"]=>
+  %unicode|string%(38) "Records: 6  Duplicates: 0  Warnings: 0"
+  [%u|b%"insert_id"]=>
   int(0)
-  ["server_info"]=>
-  string(%d) "%s"
-  ["server_version"]=>
+  [%u|b%"server_info"]=>
+  %unicode|string%(%d) "%s"
+  [%u|b%"server_version"]=>
   int(%d)
-  ["sqlstate"]=>
-  string(5) "HY000"
-  ["protocol_version"]=>
+  [%u|b%"sqlstate"]=>
+  %unicode|string%(5) "HY000"
+  [%u|b%"protocol_version"]=>
   int(10)
-  ["thread_id"]=>
+  [%u|b%"thread_id"]=>
   int(%d)
-  ["warning_count"]=>
+  [%u|b%"warning_count"]=>
   int(0)
 }
 
 Warning: mysqli_kill(): processid should have positive value in %s on line %d
 array(1) {
-  ["id"]=>
-  string(1) "1"
-}
-
-Warning: mysqli_kill(): processid should have positive value in %s on line %d
-done!
---UEXPECTF--
-Warning: mysqli_kill(): processid should have positive value in %s on line %d
-unicode(%d) "%s"
-bool(false)
-object(mysqli)#%d (0) {
-}
-
-Warning: mysqli_kill(): processid should have positive value in %s on line %d
-array(1) {
-  [u"id"]=>
-  unicode(1) "1"
+  [%u|b%"id"]=>
+  %unicode|string%(1) "1"
 }
 
 Warning: mysqli_kill(): processid should have positive value in %s on line %d
-done!
+done!
\ No newline at end of file
index dc64b903fe6f561816d995dd5b0bbbe1d4fc4160..746dd3ba90799e323a79d79856bf5904318c577d 100644 (file)
@@ -23,7 +23,7 @@ mysqli.max_links=2
                printf("[001] Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s, [%d] %s\n",
                        $host, $user, $db, $port, $socket, mysqli_connect_errno(), mysqli_connect_error());
        }
-       if (!mysqli_query($link1, "SET @pcondisabled = 'Connection 1'"))
+       if (!mysqli_query($link1, 'SET @pcondisabled = "Connection 1"'))
                printf("[002] Cannot set user variable to check if we got the same persistent connection, [%d] %s\n",
                        mysqli_errno($link1), mysqli_error($link1));
 
@@ -60,4 +60,4 @@ Warning: mysqli_connect(): Persistent connections are disabled. Downgrading to n
 Warning: mysqli_connect(): Persistent connections are disabled. Downgrading to normal in %s on line %d
 Connecction 1 - SELECT @pcondisabled -> 'Connection 1'
 Connecction 2 - SELECT @pcondisabled -> ''
-done!
+done!
\ No newline at end of file
index 61d5624515071333d4c389ffaf1287edbef7f60e..d25d5321bc1178c2ab32580a621292f2c7452fd8 100755 (executable)
@@ -90,6 +90,4 @@ mysqli.max_persistent=2
        print "done!";
 ?>
 --EXPECTF--
-done!
---UEXPECTF--
-done!
+done!
\ No newline at end of file
index 4ff345d5c5ce41d6f0e1a5acf31e2d9d8bbbbdf1..774154deeb27aa0767779a4692f8f858530daa9b 100644 (file)
@@ -19,7 +19,7 @@ mysqli.max_links=-1
        // opens a regular connection
        require_once("table.inc");
 
-       if (!$res = mysqli_query($link, "SELECT 'works..' as _desc"))
+       if (!$res = mysqli_query($link, 'SELECT "works.." as _desc'))
                printf("[001] Cannot run query, [%d] %s\n",
                        mysqli_errno($link), mysqli_error($link));
 
@@ -31,7 +31,7 @@ mysqli.max_links=-1
                printf("[002] Cannot open second regular connection, [%d] %s\n",
                        mysqli_connect_errno(), mysqli_connect_error());
 
-       if (!$res = mysqli_query($link2, "SELECT 'works...' as _desc"))
+       if (!$res = mysqli_query($link2, 'SELECT "works..." as _desc'))
                printf("[003] Cannot run query, [%d] %s\n",
                        mysqli_errno($link2), mysqli_error($link2));
 
@@ -45,7 +45,7 @@ mysqli.max_links=-1
                        $host, $user, $db, $port, $socket,
                        mysqli_connect_errno(), mysqli_connect_error());
 
-       if (!$res = mysqli_query($plink, "SELECT 'works...' as _desc"))
+       if (!$res = mysqli_query($plink, 'SELECT "works..." as _desc'))
                printf("[005] Cannot run query, [%d] %s\n",
                        mysqli_errno($plink), mysqli_error($plink));
 
@@ -58,7 +58,7 @@ mysqli.max_links=-1
                        $host, $user, $db, $port, $socket,
                        mysqli_connect_errno(), mysqli_connect_error());
 
-       if (!$res = mysqli_query($plink2, "SELECT 'works...' as _desc"))
+       if (!$res = mysqli_query($plink2, 'SELECT "works..." as _desc'))
                printf("[007] Cannot run query, [%d] %s\n",
                        mysqli_errno($plink2), mysqli_error($plink2));
 
@@ -72,7 +72,7 @@ mysqli.max_links=-1
                        $host, $user, $db, $port, $socket,
                        mysqli_connect_errno(), mysqli_connect_error());
 
-       if (!$res = mysqli_query($plink3, "SELECT 'works...' as _desc"))
+       if (!$res = mysqli_query($plink3, 'SELECT "works..." as _desc'))
                printf("[009] Cannot run query, [%d] %s\n",
                        mysqli_errno($plink2), mysqli_error($plink2));
 
@@ -93,4 +93,4 @@ Regular connection 2 - 'works...'
 Persistent connection 1 - 'works...'
 Persistent connection 2 - 'works...'
 Persistent connection 3 - 'works...'
-done!
+done!
\ No newline at end of file
index 19627b181e30ea905ff3d1b8dff35e50bdf9436b..ceac6448978fa7e94cda676135002dbd4d6c56a7 100644 (file)
@@ -160,32 +160,16 @@ mysqli.max_persistent=2
 ?>
 --EXPECTF--
 array(2) {
-  ["id"]=>
-  string(1) "1"
-  ["label"]=>
-  string(1) "a"
+  [%u|b%"id"]=>
+  %unicode|string%(1) "1"
+  [%u|b%"label"]=>
+  %unicode|string%(1) "a"
 }
 array(2) {
-  ["id"]=>
-  string(1) "1"
-  ["label"]=>
-  string(1) "a"
-}
-
-Warning: mysqli_connect(): Too many open persistent links (%d) in %s on line %d
-done!
---UEXPECTF--
-array(2) {
-  [u"id"]=>
-  unicode(1) "1"
-  [u"label"]=>
-  unicode(1) "a"
-}
-array(2) {
-  [u"id"]=>
-  unicode(1) "1"
-  [u"label"]=>
-  unicode(1) "a"
+  [%u|b%"id"]=>
+  %unicode|string%(1) "1"
+  [%u|b%"label"]=>
+  %unicode|string%(1) "a"
 }
 
 Warning: mysqli_connect(): Too many open persistent links (%d) in %s on line %d
index 0269f696fbc6399ba75b566709681d3de3448aaa..c2808579ac08d77234feca3e122e8475db52e04e 100644 (file)
@@ -24,7 +24,7 @@ mysqli.max_links=2
                printf("[001] Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s, [%d] %s\n",
                        $host, $user, $db, $port, $socket, mysqli_connect_errno(), mysqli_connect_error());
        }
-       if (!mysqli_query($link1, "SET @pcondisabled = 'Connection 1'"))
+       if (!mysqli_query($link1, 'SET @pcondisabled = "Connection 1"'))
                printf("[002] Cannot set user variable to check if we got the same persistent connection, [%d] %s\n",
                        mysqli_errno($link1), mysqli_error($link1));
 
@@ -49,7 +49,7 @@ mysqli.max_links=2
        printf("Connection 2 (no reuse) - Thread ID -> '%s'\n", $thread_id);
        mysqli_free_result($res);
 
-       if (!mysqli_query($link2, "SET @pcondisabled = 'Connection 2'"))
+       if (!mysqli_query($link2, 'SET @pcondisabled = "Connection 2"'))
                printf("[006] Cannot set user variable to check if we got the same persistent connection, [%d] %s\n",
                        mysqli_errno($link2), mysqli_error($link2));
 
@@ -91,4 +91,4 @@ Connection 2 (no reuse) - Thread ID -> '%d'
 Connection 2 - SELECT @pcondisabled -> 'Connection 2'
 Connection 2 (reuse) - SELECT @pcondisabled -> 'Connection 2'
 Connection 2 (reuse) - Thread ID -> '%d'
-done!
+done!
\ No newline at end of file
index 5a5b05fdc732b18c576b4a0b8724bb906dcccb6e..2b31ef7b99e9020e661aaa464af4de88db3471f5 100644 (file)
@@ -174,13 +174,13 @@ if (!$IS_MYSQLND)
 ?>
 --EXPECTF--
 array(1) {
-  ["processed beofre killed"]=>
-  string(1) "1"
+  [%u|b%"processed beofre killed"]=>
+  %unicode|string%(1) "1"
 }
 Fetching from thread %d...
 array(1) {
   [1]=>
-  string(1) "1"
+  %unicode|string%(1) "1"
 }
 
 Warning: mysqli_reap_async_query(): GREET %s
index 95e412986ee69f9dfe45161adcefacba161a4636..cddc2e6e3f5d6c298ea1353e3bd3e43b5a08360b 100644 (file)
@@ -28,7 +28,7 @@ if (!$IS_MYSQLND)
                        'CREATE TABLE IF NOT EXISTS bogus(id INT)',
                        'SET @a = 1',
                        'SELECT * FROM test ORDER BY id ASC LIMIT 2',
-                       "INSERT INTO test(id, label) VALUES (100, 'z')",
+                       'INSERT INTO test(id, label) VALUES (100, "z")',
                        'SELECT * FROM test ORDER BY id ASC LIMIT 2',
                        'SELECT',
                        'UPDATE test SET id = 101 WHERE id > 3',
@@ -43,7 +43,7 @@ if (!$IS_MYSQLND)
        mysqli_real_query($link, "DROP PROCEDURE IF EXISTS p");
        if (mysqli_real_query($link, 'CREATE PROCEDURE p(IN ver_in VARCHAR(25), OUT ver_out VARCHAR(25)) BEGIN SELECT ver_in INTO ver_out; END;')) {
                        $have_proc = true;
-                       $queries[] = "CALL p('myversion', @version)";
+                       $queries[] = 'CALL p("myversion", @version)';
        }
        mysqli_close($link);
 
@@ -158,10 +158,10 @@ if (!$IS_MYSQLND)
 [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) {
-  ["id"]=>
-  string(3) "100"
-  ["label"]=>
-  string(1) "z"
+  [%u|b%"id"]=>
+  %unicode|string%(3) "100"
+  [%u|b%"label"]=>
+  %unicode|string%(1) "z"
 }
 [009] [2014] %s
 done!
index c96404ddf311ede25058433faa6c437aee387004..4aa671d71a158771ef2500b45e53fd8d990d9766 100644 (file)
@@ -86,7 +86,7 @@ require_once('skipifconnectfailure.inc');
                printf("[018] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
        mysqli_stmt_close($stmt);
 
-       if (!is_object(($stmt = mysqli_prepare($link, "DO GET_LOCK('testlock', 1)"))))
+       if (!is_object(($stmt = mysqli_prepare($link, 'DO GET_LOCK("testlock", 1)'))))
                printf("[019] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
        mysqli_stmt_close($stmt);
 
index 1203f7d363a12d39a81dca85f056934084be1d44..d16ed4352a9bbb800211e4bff24d9809e675e185 100644 (file)
@@ -1,9 +1,9 @@
 --TEST--
 mysqli_query()
 --SKIPIF--
-<?php 
+<?php
 require_once('skipif.inc');
-require_once('skipifemb.inc'); 
+require_once('skipifemb.inc');
 require_once('skipifconnectfailure.inc');
 ?>
 --FILE--
@@ -30,26 +30,26 @@ require_once('skipifconnectfailure.inc');
        if (false !== ($tmp = mysqli_query($link, 'THIS IS NOT SQL')))
                printf("[004] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp);
 
-       if (false !== ($tmp = mysqli_query($link, "SELECT 'this is sql but with backslash g'\g")))
+       if (false !== ($tmp = mysqli_query($link, 'SELECT "this is sql but with backslash g"\g')))
                printf("[005] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp);
 
        if ((0 === mysqli_errno($link)) || ('' == mysqli_error($link)))
                printf("[006] mysqli_errno()/mysqli_error should return some error\n");
 
-       if (!$res = mysqli_query($link, "SELECT 'this is sql but with semicolon' AS valid ; "))
+       if (!$res = mysqli_query($link, 'SELECT "this is sql but with semicolon" AS valid ; '))
                printf("[007] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
 
        var_dump(mysqli_fetch_assoc($res));
        mysqli_free_result($res);
 
-       if (!$res = mysqli_query($link, "SELECT 'a' AS ''"))
+       if (!$res = mysqli_query($link, 'SELECT "a" AS ""'))
                printf("[007a] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
 
        var_dump($tmp = mysqli_fetch_assoc($res));
        var_dump($tmp[""]);
        mysqli_free_result($res);
 
-       if (false !== ($res = mysqli_query($link, "SELECT 'this is sql but with semicolon' AS valid ; SHOW VARIABLES")))
+       if (false !== ($res = mysqli_query($link, 'SELECT "this is sql but with semicolon" AS valid ; SHOW VARIABLES')))
                printf("[008] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
 
        if (mysqli_get_server_version($link) > 50000) {
@@ -114,27 +114,14 @@ require_once('skipifconnectfailure.inc');
 ?>
 --EXPECTF--
 array(1) {
-  ["valid"]=>
-  string(30) "this is sql but with semicolon"
-}
-array(1) {
-  [""]=>
-  string(1) "a"
-}
-string(1) "a"
-
-Warning: mysqli_query(): Couldn't fetch mysqli in %s on line %d
-done!
---UEXPECTF--
-array(1) {
-  [u"valid"]=>
-  unicode(30) "this is sql but with semicolon"
+  [%u|b%"valid"]=>
+  %unicode|string%(30) "this is sql but with semicolon"
 }
 array(1) {
-  [u""]=>
-  unicode(1) "a"
+  [%u|b%""]=>
+  %unicode|string%(1) "a"
 }
-unicode(1) "a"
+%unicode|string%(1) "a"
 
 Warning: mysqli_query(): Couldn't fetch mysqli in %s on line %d
-done!
+done!
\ No newline at end of file
index b79c3b7ae5ae23b4aa34f457b7401d71b63e8277..e4f65b0e13896b80c939e84783d3694fced12b2a 100644 (file)
@@ -99,7 +99,7 @@ END;')) {
                if (!mysqli_query($link, 'CALL p(@version)'))
                        printf("[011] Cannot call SP, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
 
-               if (!mysqli_query($link, "SET @version = 'unknown'"))
+               if (!mysqli_query($link, 'SET @version = "unknown"'))
                        printf("[012] Cannot reset user variable, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
 
                if (!mysqli_query($link, 'CALL p(@version)'))
@@ -124,13 +124,13 @@ END;')) {
 
        if (mysqli_real_query($link, 'CREATE PROCEDURE p(IN ver_in VARCHAR(25), OUT ver_out VARCHAR(25)) BEGIN SELECT ver_in INTO ver_out; END;')) {
                /* no result set, one input, one output parameter */
-               if (!mysqli_query($link, "CALL p('myversion', @version)"))
+               if (!mysqli_query($link, 'CALL p("myversion", @version)'))
                        printf("[018] Cannot call SP, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
 
-               if (!mysqli_query($link, "SET @version = 'unknown'"))
+               if (!mysqli_query($link, 'SET @version = "unknown"'))
                        printf("[019] Cannot reset user variable, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
 
-               if (!mysqli_query($link, "CALL p('myversion', @version)"))
+               if (!mysqli_query($link, 'CALL p("myversion", @version)'))
                        printf("[020] Cannot call SP, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
 
                if (!$res = mysqli_query($link, 'SELECT @version as _vers'))
@@ -152,61 +152,31 @@ END;')) {
 ?>
 --EXPECTF--
 array(2) {
-  ["id"]=>
-  string(1) "1"
-  ["label"]=>
-  string(1) "a"
+  [%u|b%"id"]=>
+  %unicode|string%(1) "1"
+  [%u|b%"label"]=>
+  %unicode|string%(1) "a"
 }
 array(2) {
-  ["id"]=>
-  string(1) "1"
-  ["label"]=>
-  string(1) "a"
+  [%u|b%"id"]=>
+  %unicode|string%(1) "1"
+  [%u|b%"label"]=>
+  %unicode|string%(1) "a"
 }
 array(2) {
-  ["id"]=>
-  string(1) "1"
-  ["label"]=>
-  string(1) "a"
+  [%u|b%"id"]=>
+  %unicode|string%(1) "1"
+  [%u|b%"label"]=>
+  %unicode|string%(1) "a"
 }
 array(2) {
-  ["id"]=>
-  string(1) "1"
-  ["label"]=>
-  string(1) "a"
+  [%u|b%"id"]=>
+  %unicode|string%(1) "1"
+  [%u|b%"label"]=>
+  %unicode|string%(1) "a"
 }
 array(1) {
-  ["id"]=>
-  string(1) "1"
+  [%u|b%"id"]=>
+  %unicode|string%(1) "1"
 }
-done!
---UEXPECTF--
-array(2) {
-  [u"id"]=>
-  unicode(1) "1"
-  [u"label"]=>
-  unicode(1) "a"
-}
-array(2) {
-  [u"id"]=>
-  unicode(1) "1"
-  [u"label"]=>
-  unicode(1) "a"
-}
-array(2) {
-  [u"id"]=>
-  unicode(1) "1"
-  [u"label"]=>
-  unicode(1) "a"
-}
-array(2) {
-  [u"id"]=>
-  unicode(1) "1"
-  [u"label"]=>
-  unicode(1) "a"
-}
-array(1) {
-  [u"id"]=>
-  unicode(1) "1"
-}
-done!
+done!
\ No newline at end of file
index b24c6dede3b74c9a2ff0a183db917590519c37cb..5c1037f68096745ca6770e63ad906b254e8dd394 100644 (file)
@@ -36,19 +36,19 @@ mysqli_close($link);
        if (false !== ($tmp = mysqli_query($link, 'това не е ескюел')))
                printf("[004] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp);
 
-       if (false !== ($tmp = mysqli_query($link, "SELECT 'това е ескюел, но със обратна наклонена и g'\g")))
+       if (false !== ($tmp = mysqli_query($link, 'SELECT "това е ескюел, но със обратна наклонена и g"\g')))
                printf("[005] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp);
 
        if ((0 === mysqli_errno($link)) || ('' == mysqli_error($link)))
                printf("[006] mysqli_errno()/mysqli_error should return some error\n");
 
-       if (!$res = mysqli_query($link, "SELECT 'това ескюел, но с точка и запетая' AS правилен ; "))
+       if (!$res = mysqli_query($link, 'SELECT "това ескюел, но с точка и запетая" AS правилен ; '))
                printf("[007] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
 
        var_dump(mysqli_fetch_assoc($res));
        mysqli_free_result($res);
 
-       if (false !== ($res = mysqli_query($link, "SELECT 'това ескюел, но с точка и запетая' AS правилен ; SHOW VARIABLES")))
+       if (false !== ($res = mysqli_query($link, 'SELECT "това ескюел, но с точка и запетая" AS правилен ; SHOW VARIABLES')))
                printf("[008] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
 
        if (mysqli_get_server_version($link) > 50000) {
@@ -125,16 +125,8 @@ mysqli_close($link);
 ?>
 --EXPECTF--
 array(1) {
-  ["правилен"]=>
-  string(59) "това ескюел, но с точка и запетая"
-}
-
-Warning: mysqli_query(): Couldn't fetch mysqli in %s on line %d
-done!
---UEXPECTF--
-array(1) {
-  [u"правилен"]=>
-  unicode(33) "това ескюел, но с точка и запетая"
+  [%u|b%"правилен"]=>
+  %unicode|string%(%d) "това ескюел, но с точка и запетая"
 }
 
 Warning: mysqli_query(): Couldn't fetch mysqli in %s on line %d
index 646686c02772eb7237de91bd3f84bd6b09b7bd64..8f20c7edd3b4eb0b7bc60fe788316408819cd4ed 100644 (file)
@@ -173,39 +173,39 @@ require_once('skipifconnectfailure.inc');
 --EXPECTF--
 Warning: mysqli_real_connect(): (%d/%d): Access denied for user '%s'@'%s' (using password: YES) in %s on line %d
 object(mysqli)#%d (%d) {
-  ["affected_rows"]=>
+  [%u|b%"affected_rows"]=>
   NULL
-  ["client_info"]=>
-  string(%d) "%s"
-  ["client_version"]=>
+  [%u|b%"client_info"]=>
+  %unicode|string%(%d) "%s"
+  [%u|b%"client_version"]=>
   int(%d)
-  ["connect_errno"]=>
+  [%u|b%"connect_errno"]=>
   int(%d)
-  ["connect_error"]=>
-  string(%d) "%s"
-  ["errno"]=>
+  [%u|b%"connect_error"]=>
+  %unicode|string%(%d) "%s"
+  [%u|b%"errno"]=>
   int(%d)
-  ["error"]=>
-  string(%d) "%s"
-  ["field_count"]=>
+  [%u|b%"error"]=>
+  %unicode|string%(%d) "%s"
+  [%u|b%"field_count"]=>
   NULL
-  ["host_info"]=>
+  [%u|b%"host_info"]=>
   NULL
-  ["info"]=>
+  [%u|b%"info"]=>
   NULL
-  ["insert_id"]=>
+  [%u|b%"insert_id"]=>
   NULL
-  ["server_info"]=>
+  [%u|b%"server_info"]=>
   NULL
-  ["server_version"]=>
+  [%u|b%"server_version"]=>
   NULL
-  ["sqlstate"]=>
+  [%u|b%"sqlstate"]=>
   NULL
-  ["protocol_version"]=>
+  [%u|b%"protocol_version"]=>
   NULL
-  ["thread_id"]=>
+  [%u|b%"thread_id"]=>
   NULL
-  ["warning_count"]=>
+  [%u|b%"warning_count"]=>
   NULL
 }
 done!
index c2cf980e280a03a3e2e55f2f96842b12f7e9c588..95831baa5d76e2159f1735e5091d4d6634446550 100644 (file)
@@ -44,7 +44,7 @@ mysqli_close($link);
        if ("§ä¨ì¥H¤U¤º®e\\0§ä¨ì¥H¤U¤º®e" !== ($tmp = mysqli_real_escape_string($link, "§ä¨ì¥H¤U¤º®e" . chr(0) . "§ä¨ì¥H¤U¤º®e")))
                printf("[009] Expecting %s, got %s\n", "§ä¨ì¥H¤U¤º®e\\0§ä¨ì¥H¤U¤º®e", $tmp);
 
-       var_dump(mysqli_query($link, "INSERT INTO test(id, label) VALUES (100, '§ä')"));
+       var_dump(mysqli_query($link, 'INSERT INTO test(id, label) VALUES (100, "§ä")'));
 
        mysqli_close($link);
        print "done!";
@@ -52,4 +52,4 @@ mysqli_close($link);
 --EXPECTF--
 bool(true)
 bool(true)
-done!
+done!
\ No newline at end of file
index 09f8099c6e716f375f985fb2be61432200bb80b8..1ac5a67c33bb9365123d684d460e2bc8da7cc9b3 100644 (file)
@@ -43,7 +43,7 @@ mysqli_close($link);
        if ("¤³¤ÎÁȤ߹ç¤ï¤»¤Ç¤Ï\\0¤³¤ÎÁȤ߹ç¤ï¤»¤Ç¤Ï" !== ($tmp = mysqli_real_escape_string($link, "¤³¤ÎÁȤ߹ç¤ï¤»¤Ç¤Ï" . chr(0) . "¤³¤ÎÁȤ߹ç¤ï¤»¤Ç¤Ï")))
                printf("[009] Expecting %s, got %s\n", "¤³¤ÎÁȤ߹ç¤ï¤»¤Ç¤Ï\\0¤³¤ÎÁȤ߹ç¤ï¤»¤Ç¤Ï", $tmp);
 
-       var_dump(mysqli_query($link, "INSERT INTO test(id, label) VALUES (100, '¤³')"));
+       var_dump(mysqli_query($link, 'INSERT INTO test(id, label) VALUES (100, "¤³")'));
 
        mysqli_close($link);
        print "done!";
@@ -51,4 +51,4 @@ mysqli_close($link);
 --EXPECTF--
 bool(true)
 bool(true)
-done!
+done!
\ No newline at end of file
index 6384d9fca798128404553ab3276975819b4c0abb..c6fc799f7e7fda17ed57aa97a153f2122c7b3f8e 100644 (file)
@@ -43,7 +43,7 @@ mysqli_close($link);
        if ("±Ç´ë¼º\\0±Ç´ë¼º" !== ($tmp = mysqli_real_escape_string($link, "±Ç´ë¼º" . chr(0) . "±Ç´ë¼º")))
                printf("[009] Expecting %s, got %s\n", "±Ç´ë¼º\\0±Ç´ë¼º", $tmp);
 
-       var_dump(mysqli_query($link, "INSERT INTO test(id, label) VALUES (100, '±Ç')"));
+       var_dump(mysqli_query($link, 'INSERT INTO test(id, label) VALUES (100, "±Ç")'));
 
        mysqli_close($link);
        print "done!";
@@ -51,4 +51,4 @@ mysqli_close($link);
 --EXPECTF--
 bool(true)
 bool(true)
-done!
+done!
\ No newline at end of file
index 0994b49fbdee81bc5e08410598b30b1fea088fec..39c29344826511cb98bea1408142635b5b2bb9df 100644 (file)
@@ -44,7 +44,7 @@ mysqli_close($link);
        if ("Ê×ÏÈ\\0Ê×ÏÈ" !== ($tmp = mysqli_real_escape_string($link, "Ê×ÏÈ" . chr(0) . "Ê×ÏÈ")))
                printf("[009] Expecting %s, got %s\n", "Ê×ÏÈ\\0Ê×ÏÈ", $tmp);
 
-       var_dump(mysqli_query($link, "INSERT INTO test(id, label) VALUES (100, 'Ê×')"));
+       var_dump(mysqli_query($link, 'INSERT INTO test(id, label) VALUES (100, "Ê×")'));
 
        mysqli_close($link);
        print "done!";
@@ -52,4 +52,4 @@ mysqli_close($link);
 --EXPECTF--
 bool(true)
 bool(true)
-done!
+done!
\ No newline at end of file
index 2e2f15fd16f3511a2fbeb853cdbb28e6fcb5ca12..2b10350984788eb1429057dcf8faf3e2275096e3 100644 (file)
@@ -2,8 +2,9 @@
 mysqli_real_escape_string() - gbk
 --SKIPIF--
 <?php
-if (ini_get('unicode.semantics'))
-       die("skip Test cannot be run in unicode mode");
+if (version_compare(PHP_VERSION, '5.9.9', '>') == 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');
@@ -16,6 +17,7 @@ if (!$link = mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
 }
 if (!mysqli_set_charset($link, 'gbk'))
        die(sprintf("skip Cannot set charset 'gbk'"));
+
 mysqli_close($link);
 ?>
 --FILE--
@@ -44,7 +46,7 @@ mysqli_close($link);
        if ("�İ汾\\0�İ汾" !== ($tmp = mysqli_real_escape_string($link, "�İ汾" . chr(0) . "�İ汾")))
                printf("[009] Expecting %s, got %s\n", "�İ汾\\0�İ汾", $tmp);
 
-       var_dump(mysqli_query($link, "INSERT INTO test(id, label) VALUES (100, '��')"));
+       var_dump(mysqli_query($link, 'INSERT INTO test(id, label) VALUES (100, "��")'));
 
        mysqli_close($link);
        print "done!";
@@ -52,4 +54,4 @@ mysqli_close($link);
 --EXPECTF--
 bool(true)
 bool(true)
-done!
+done!
\ No newline at end of file
index bdbcc19c147636af843e29a1338401e1cf0a9ed6..db1acb48169712c4414a225ed5d44a69571506f4 100644 (file)
@@ -59,13 +59,7 @@ require_once('skipifconnectfailure.inc');
 ?>
 --EXPECTF--
 array(1) {
-  ["label"]=>
-  string(1) "\"
+  [%u|b%"label"]=>
+  %unicode|string%(1) "\"
 }
-done!
---UEXPECTF--
-array(1) {
-  [u"label"]=>
-  unicode(1) "\"
-}
-done!
+done!
\ No newline at end of file
index 604b0b17c10547909c050392ac8c1fef1dd61eb7..94cf92512c2e5d95d68a0d924f7818b1973be249 100644 (file)
@@ -2,8 +2,9 @@
 mysqli_real_escape_string() - sjis
 --SKIPIF--
 <?php
-if (ini_get('unicode.semantics'))
-       die("skip Test cannot be run in unicode mode");
+if (version_compare(PHP_VERSION, '5.9.9', '>') == 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');
@@ -44,7 +45,7 @@ mysqli_close($link);
        if ("?p??\\0?p??" !== ($tmp = mysqli_real_escape_string($link, "?p??" . chr(0) . "?p??")))
                printf("[009] Expecting %s, got %s\n", "?p??\\0?p??", $tmp);
 
-       var_dump(mysqli_query($link, "INSERT INTO test(id, label) VALUES (100, '?p')"));
+       var_dump(mysqli_query($link, 'INSERT INTO test(id, label) VALUES (100, "?p")'));
 
        mysqli_close($link);
        print "done!";
@@ -52,4 +53,4 @@ mysqli_close($link);
 --EXPECTF--
 bool(true)
 bool(true)
-done!
+done!
\ No newline at end of file
index 86104adf95ed64a0644eef8d21d63b16d481baf6..3979f1b00928504516d9beb2acd1f8474ad2c972 100644 (file)
@@ -1,7 +1,7 @@
 --TEST--
 mysqli_real_query()
 --SKIPIF--
-<?php 
+<?php
 require_once('skipif.inc');
 require_once('skipifconnectfailure.inc');
 ?>
@@ -26,17 +26,17 @@ require_once('skipifconnectfailure.inc');
        if (false !== ($tmp = mysqli_real_query($link, 'THIS IS NOT SQL')))
                printf("[004] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp);
 
-       if (false !== ($tmp = mysqli_real_query($link, "SELECT 'this is sql but with backslash g'\g")))
+       if (false !== ($tmp = mysqli_real_query($link, 'SELECT "this is sql but with backslash g"\g')))
                printf("[005] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp);
 
        if ((0 === mysqli_errno($link)) || ('' == mysqli_error($link)))
                printf("[006] mysqli_errno()/mysqli_error should return some error\n");
 
-       if (!mysqli_real_query($link, "SELECT 'this is sql but with semicolon' AS valid ; "))
+       if (!mysqli_real_query($link, 'SELECT "this is sql but with semicolon" AS valid ; '))
                printf("[007] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
 
        if (!is_object($res = mysqli_use_result($link)))
-       printf("[008] Expecting result object, got %s/%s [%d] %s\n", gettype($res), $res, mysqli_errno($link), mysqli_error($link));
+       printf("[008] Expecting reseult object, got %s/%s [%d] %s\n", gettype($res), $res, mysqli_errno($link), mysqli_error($link));
 
        var_dump(mysqli_fetch_assoc($res));
        mysqli_free_result($res);
@@ -91,17 +91,9 @@ ver_param;')) {
 ?>
 --EXPECTF--
 array(1) {
-  ["valid"]=>
-  string(30) "this is sql but with semicolon"
-}
-
-Warning: mysqli_real_query(): Couldn't fetch mysqli in %s on line %d
-done!
---UEXPECTF--
-array(1) {
-  [u"valid"]=>
-  unicode(30) "this is sql but with semicolon"
+  [%u|b%"valid"]=>
+  %unicode|string%(30) "this is sql but with semicolon"
 }
 
 Warning: mysqli_real_query(): Couldn't fetch mysqli in %s on line %d
-done!
+done!
\ No newline at end of file
index c07ca8756ddc45063fd44b94844cec104c303d5c..25e1050b6a05c09deb335be7c86fee3ea5ab6436 100644 (file)
@@ -270,7 +270,7 @@ require_once('skipifconnectfailure.inc');
        else
                mysqli_stmt_close($stmt);
 
-       if (!mysqli_query($link, "INSERT INTO test(id, label) VALUES (100, 'z')", MYSQLI_USE_RESULT) ||
+       if (!mysqli_query($link, 'INSERT INTO test(id, label) VALUES (100, "z")', MYSQLI_USE_RESULT) ||
                        !mysqli_query($link, 'DELETE FROM test WHERE id > 50', MYSQLI_USE_RESULT))
                printf("[033] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
 
@@ -298,4 +298,4 @@ Warning: mysqli_kill(): processid should have positive value in %s on line %d
 Warning: mysqli_stmt_prepare(): (%d/%d): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FOO' at line 1 in %s on line %d
 [013] Access denied for user '%s'@'%s' (using password: YES)
 [016] Access denied for user '%s'@'%s' (using password: YES)
-done!
+done!
\ No newline at end of file
index 63ee372f34371cbe552e6a1a20ba7377fae090ef..fab24a7f9afd54590c62b936ae5d381967d86e99 100644 (file)
@@ -1,9 +1,9 @@
 --TEST--
 References to result sets
 --SKIPIF--
-<?php 
+<?php
 require_once('skipif.inc');
-require_once('skipifemb.inc'); 
+require_once('skipifemb.inc');
 require_once('skipifconnectfailure.inc');
 ?>
 --FILE--
@@ -80,133 +80,71 @@ require_once('skipifconnectfailure.inc');
 array(7) refcount(2){
   [0]=>
   array(2) refcount(1){
-    ["id"]=>
+    [%u|b%"id"]=>
     long(1) refcount(1)
-    ["label"]=>
-    string(1) "a" refcount(1)
+    [%u|b%"label"]=>
+    %unicode|string%(1) "a" refcount(1)
   }
   [1]=>
   array(2) refcount(1){
-    ["id"]=>
+    [%u|b%"id"]=>
     long(2) refcount(1)
-    ["label"]=>
-    string(1) "b" refcount(1)
+    [%u|b%"label"]=>
+    %unicode|string%(1) "b" refcount(1)
   }
   [2]=>
   array(2) refcount(1){
-    ["id"]=>
+    [%u|b%"id"]=>
     long(1) refcount(1)
-    ["label"]=>
-    string(1) "a" refcount(1)
+    [%u|b%"label"]=>
+    %unicode|string%(1) "a" refcount(1)
   }
   [3]=>
   array(2) refcount(1){
-    ["id"]=>
+    [%u|b%"id"]=>
     long(2) refcount(1)
-    ["label"]=>
-    string(1) "b" refcount(1)
+    [%u|b%"label"]=>
+    %unicode|string%(1) "b" refcount(1)
   }
   [4]=>
   array(3) refcount(1){
-    ["id"]=>
+    [%u|b%"id"]=>
     &long(3) refcount(2)
-    ["label"]=>
-    string(1) "a" refcount(1)
-    ["id2"]=>
+    [%u|b%"label"]=>
+    %unicode|string%(1) "a" refcount(1)
+    [%u|b%"id2"]=>
     &long(3) refcount(2)
   }
   [5]=>
   array(3) refcount(1){
-    ["id"]=>
+    [%u|b%"id"]=>
     &long(4) refcount(2)
-    ["label"]=>
-    string(1) "b" refcount(1)
-    ["id2"]=>
+    [%u|b%"label"]=>
+    %unicode|string%(1) "b" refcount(1)
+    [%u|b%"id2"]=>
     &long(4) refcount(2)
   }
   [6]=>
   &object(mysqli_result)#2 (5) refcount(2){
-    ["current_field"]=>
+    [%u|b%"current_field"]=>
     NULL refcount(1)
-    ["field_count"]=>
+    [%u|b%"field_count"]=>
     NULL refcount(1)
-    ["lengths"]=>
+    [%u|b%"lengths"]=>
     NULL refcount(1)
-    ["num_rows"]=>
+    [%u|b%"num_rows"]=>
     NULL refcount(1)
-    ["type"]=>
+    [%u|b%"type"]=>
     NULL refcount(1)
   }
 }
 array(1) refcount(2){
   [0]=>
   array(2) refcount(1){
-    ["id"]=>
-    string(1) "1" refcount(1)
-    ["label"]=>
-    string(1) "a" refcount(1)
-  }
-}
-done!
---UEXPECTF--
-array(7) refcount(2){
-  [0]=>
-  array(2) refcount(1){
-    [u"id" { 0069 0064 }]=>
-    long(1) refcount(1)
-    [u"label" { 006c 0061 0062 0065 006c }]=>
-    unicode(1) "a" { 0061 } refcount(1)
-  }
-  [1]=>
-  array(2) refcount(1){
-    [u"id" { 0069 0064 }]=>
-    long(2) refcount(1)
-    [u"label" { 006c 0061 0062 0065 006c }]=>
-    unicode(1) "b" { 0062 } refcount(1)
-  }
-  [2]=>
-  array(2) refcount(1){
-    [u"id" { 0069 0064 }]=>
-    long(1) refcount(1)
-    [u"label" { 006c 0061 0062 0065 006c }]=>
-    unicode(1) "a" { 0061 } refcount(1)
-  }
-  [3]=>
-  array(2) refcount(1){
-    [u"id" { 0069 0064 }]=>
-    long(2) refcount(1)
-    [u"label" { 006c 0061 0062 0065 006c }]=>
-    unicode(1) "b" { 0062 } refcount(1)
-  }
-  [4]=>
-  array(3) refcount(1){
-    [u"id" { 0069 0064 }]=>
-    &long(3) refcount(2)
-    [u"label" { 006c 0061 0062 0065 006c }]=>
-    unicode(1) "a" { 0061 } refcount(1)
-    [u"id2" { 0069 0064 0032 }]=>
-    &long(3) refcount(2)
-  }
-  [5]=>
-  array(3) refcount(1){
-    [u"id" { 0069 0064 }]=>
-    &long(4) refcount(2)
-    [u"label" { 006c 0061 0062 0065 006c }]=>
-    unicode(1) "b" { 0062 } refcount(1)
-    [u"id2" { 0069 0064 0032 }]=>
-    &long(4) refcount(2)
-  }
-  [6]=>
-  &object(mysqli_result)#2 (0) refcount(2){
-  }
-}
-array(1) refcount(2){
-  [0]=>
-  array(2) refcount(1){
-    [u"id" { 0069 0064 }]=>
-    unicode(1) "1" { 0031 } refcount(1)
-    [u"label" { 006c 0061 0062 0065 006c }]=>
-    unicode(1) "a" { 0061 } refcount(1)
+    [%u|b%"id"]=>
+    %unicode|string%(1) "1" refcount(1)
+    [%u|b%"label"]=>
+    %unicode|string%(1) "a" refcount(1)
   }
 }
-done!
+done!
\ No newline at end of file
index 8e2dcf2aca1ed20ec896f2bdc6465e50ee36d0fd..07dac9ba8cfd71139bd7d4e7246cb5ceb542fa30 100644 (file)
@@ -55,84 +55,41 @@ if (!$IS_MYSQLND)
 array(2) refcount(2){
   [0]=>
   array(4) refcount(1){
-    ["row_ref"]=>
+    [%u|b%"row_ref"]=>
     &NULL refcount(2)
-    ["row_copy"]=>
+    [%u|b%"row_copy"]=>
     array(2) refcount(1){
-      ["id"]=>
-      string(1) "1" refcount(2)
-      ["label"]=>
-      string(1) "a" refcount(2)
+      [%u|b%"id"]=>
+      %unicode|string%(1) "1" refcount(2)
+      [%u|b%"label"]=>
+      %unicode|string%(1) "a" refcount(2)
     }
-    ["id_ref"]=>
-    string(1) "1" refcount(1)
-    ["id_copy"]=>
-    string(1) "1" refcount(1)
+    [%u|b%"id_ref"]=>
+    %unicode|string%(1) "1" refcount(1)
+    [%u|b%"id_copy"]=>
+    %unicode|string%(1) "1" refcount(1)
   }
   [1]=>
   array(5) refcount(1){
-    ["row_ref"]=>
+    [%u|b%"row_ref"]=>
     &array(2) refcount(2){
-      ["id"]=>
-      &string(1) "2" refcount(2)
-      ["label"]=>
-      string(1) "b" refcount(3)
+      [%u|b%"id"]=>
+      &%unicode|string%(1) "2" refcount(2)
+      [%u|b%"label"]=>
+      %unicode|string%(1) "b" refcount(3)
     }
-    ["row_copy"]=>
+    [%u|b%"row_copy"]=>
     array(2) refcount(1){
-      ["id"]=>
-      string(1) "2" refcount(2)
-      ["label"]=>
-      string(1) "b" refcount(3)
+      [%u|b%"id"]=>
+      %unicode|string%(1) "2" refcount(2)
+      [%u|b%"label"]=>
+      %unicode|string%(1) "b" refcount(3)
     }
-    ["id_ref"]=>
-    &string(1) "2" refcount(2)
-    ["id_copy"]=>
-    string(1) "2" refcount(1)
-    ["id_copy_mod"]=>
-    long(2) refcount(1)
-  }
-}
-done!
---UEXPECTF--
-array(2) refcount(2){
-  [0]=>
-  array(4) refcount(1){
-    [u"row_ref" { 0072 006f 0077 005f 0072 0065 0066 }]=>
-    &NULL refcount(2)
-    [u"row_copy" { 0072 006f 0077 005f 0063 006f 0070 0079 }]=>
-    array(2) refcount(1){
-      [u"id" { 0069 0064 }]=>
-      unicode(1) "1" { 0031 } refcount(2)
-      [u"label" { 006c 0061 0062 0065 006c }]=>
-      unicode(1) "a" { 0061 } refcount(2)
-    }
-    [u"id_ref" { 0069 0064 005f 0072 0065 0066 }]=>
-    unicode(1) "1" { 0031 } refcount(1)
-    [u"id_copy" { 0069 0064 005f 0063 006f 0070 0079 }]=>
-    unicode(1) "1" { 0031 } refcount(1)
-  }
-  [1]=>
-  array(5) refcount(1){
-    [u"row_ref" { 0072 006f 0077 005f 0072 0065 0066 }]=>
-    &array(2) refcount(2){
-      [u"id" { 0069 0064 }]=>
-      &unicode(1) "2" { 0032 } refcount(2)
-      [u"label" { 006c 0061 0062 0065 006c }]=>
-      unicode(1) "b" { 0062 } refcount(3)
-    }
-    [u"row_copy" { 0072 006f 0077 005f 0063 006f 0070 0079 }]=>
-    array(2) refcount(1){
-      [u"id" { 0069 0064 }]=>
-      unicode(1) "2" { 0032 } refcount(2)
-      [u"label" { 006c 0061 0062 0065 006c }]=>
-      unicode(1) "b" { 0062 } refcount(3)
-    }
-    [u"id_ref" { 0069 0064 005f 0072 0065 0066 }]=>
-    &unicode(1) "2" { 0032 } refcount(2)
-    [u"id_copy" { 0069 0064 005f 0063 006f 0070 0079 }]=>
-    unicode(1) "2" { 0032 } refcount(1)
-    [u"id_copy_mod" { 0069 0064 005f 0063 006f 0070 0079 005f 006d 006f 0064 }]=>
+    [%u|b%"id_ref"]=>
+    &%unicode|string%(1) "2" refcount(2)
+    [%u|b%"id_copy"]=>
+    %unicode|string%(1) "2" refcount(1)
+    [%u|b%"id_copy_mod"]=>
     long(2) refcount(1)
   }
 }
index 5e6584bba88b9c236e85663074975cd1c828cdd1..e10b3348b7a34954da1869910c07f231d4b0c836 100644 (file)
@@ -6,10 +6,12 @@ require_once('skipif.inc');
 require_once('skipifemb.inc');
 require_once('skipifconnectfailure.inc');
 
+if (version_compare(PHP_VERSION, '5.9.9', '>') == 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");
-if (ini_get("unicode.semantics"))
-       die("skip: mysqli_set_charset() is disabled in unicode");
 
 require_once('connect.inc');
 if (!$link = mysqli_connect($host, $user, $passwd, $db, $port, $socket))
index 751d4b96434ffe8956429169585cd8c63a7fa06f..4cbdf20ff69ee43599985b796b8dfd0597eaec74 100644 (file)
@@ -176,57 +176,24 @@ Callback: 0
 Callback: 1
 [037] More results than expected!
 array(2) {
-  ["id"]=>
-  string(2) "97"
-  ["label"]=>
-  string(1) "x"
+  [%u|b%"id"]=>
+  %unicode|string%(2) "97"
+  [%u|b%"label"]=>
+  %unicode|string%(1) "x"
 }
 array(2) {
-  ["id"]=>
-  string(2) "98"
-  ["label"]=>
-  string(1) "y"
+  [%u|b%"id"]=>
+  %unicode|string%(2) "98"
+  [%u|b%"label"]=>
+  %unicode|string%(1) "y"
 }
 array(2) {
-  ["id"]=>
-  string(2) "99"
-  ["label"]=>
-  string(1) "z"
+  [%u|b%"id"]=>
+  %unicode|string%(2) "99"
+  [%u|b%"label"]=>
+  %unicode|string%(1) "z"
 }
 Callback set to 'callback_error'
 Callback: 0
 [042] LOAD DATA failed, [2000] How to access this error?
-done!
---UEXPECTF--
-Callback set to 'callback_simple'
-Callback: 0
-Callback: 1
-Callback set to 'callback_fclose'
-Callback: 0
-[022] LOAD DATA failed, [2000] File handle closed in handler
-Callback set to 'callback_invalid_args'
-Callback: 0
-Callback: 1
-[037] More results than expected!
-array(2) {
-  [u"id"]=>
-  unicode(2) "97"
-  [u"label"]=>
-  unicode(1) "x"
-}
-array(2) {
-  [u"id"]=>
-  unicode(2) "98"
-  [u"label"]=>
-  unicode(1) "y"
-}
-array(2) {
-  [u"id"]=>
-  unicode(2) "99"
-  [u"label"]=>
-  unicode(1) "z"
-}
-Callback set to 'callback_error'
-Callback: 0
-[042] LOAD DATA failed, [2000] How to access this error?
-done!
+done!
\ No newline at end of file
index d0115e1c3ff84cdd864ea15e6b4b7737b91a868d..22f89fd053e0c381a641db89cf988b7d50f756ae 100644 (file)
@@ -48,7 +48,7 @@ mysqli.allow_local_infile=1
                $ret = "1;'a';\n";
                $buffer = $ret;
 
-               $num_chars = (ini_get('unicode.semantics')) ? floor($buflen / 2) : $buflen;
+               $num_chars = ((version_compare(PHP_VERSION, '5.9.9', '>') == 1)) ? floor($buflen / 2) : $buflen;
                assert(strlen($buffer) < $num_chars);
 
                if ($invocation > 10)
index 710ae70d3bee4096b92e4123fe595a7eb6bec273..269e7dcf39bf406d3ed0df268733d2fe467e4c8c 100644 (file)
@@ -1,15 +1,14 @@
 --TEST--
 mysqli_set_opt() - MYSQLI_OPT_NUMERIC_AND_DATETIME_AS_UNICODE
 --SKIPIF--
-<?php 
+<?php
 require_once('skipif.inc');
-require_once('skipifemb.inc'); 
+require_once('skipifemb.inc');
 require_once('skipifconnectfailure.inc');
+if (version_compare(PHP_VERSION, '5.9.9', '<') == 1) {
+       die('skip Needs PHP 6 and Unicode');
+}
 
-if (!function_exists('unicode_semantics'))
-       die("skip needs PHP 6");
-if (!unicode_semantics())
-       die("skip works only in unicode mode");
 if (!stristr(mysqli_get_client_info(), "mysqlnd"))
        die("skip works only with mysqlnd");
 ?>
index 4e69428e3e88c6178a0d921ac8fd9ef39ae0e902..65e41a25e81e4535a6a6db5a8f41fd2a0e54789f 100644 (file)
@@ -41,14 +41,14 @@ require_once('skipifconnectfailure.inc');
        mysqli_stmt_close($stmt);
        $stmt = mysqli_stmt_init($link);
 
-       if (!mysqli_stmt_prepare($stmt, "INSERT INTO test(id, label) VALUES (1, 'a')") ||
+       if (!mysqli_stmt_prepare($stmt, 'INSERT INTO test(id, label) VALUES (1, "a")') ||
                !mysqli_stmt_execute($stmt))
                printf("[006] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
 
        mysqli_stmt_close($stmt);
        $stmt = mysqli_stmt_init($link);
 
-       if (!mysqli_stmt_prepare($stmt, "INSERT INTO test(id, label) VALUES (100, 'z')") ||
+       if (!mysqli_stmt_prepare($stmt, 'INSERT INTO test(id, label) VALUES (100, "z")') ||
                !mysqli_stmt_execute($stmt))
                printf("[007] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
 
@@ -58,7 +58,7 @@ require_once('skipifconnectfailure.inc');
        mysqli_stmt_close($stmt);
        $stmt = mysqli_stmt_init($link);
 
-       if (!mysqli_stmt_prepare($stmt, "INSERT INTO test(id, label) VALUES (100, 'z')") ||
+       if (!mysqli_stmt_prepare($stmt, 'INSERT INTO test(id, label) VALUES (100, "z")') ||
                !mysqli_stmt_execute($stmt))
                // NOTE: the error message varies with the MySQL Server version, dump only the error code!
                printf("[009] [%d] (error message varies with the MySQL Server version, check the error code)\n", mysqli_stmt_errno($stmt));
@@ -70,7 +70,7 @@ require_once('skipifconnectfailure.inc');
        mysqli_stmt_close($stmt);
        $stmt = mysqli_stmt_init($link);
 
-       if (!mysqli_stmt_prepare($stmt, "INSERT INTO test(id, label) VALUES (1, 'a') ON DUPLICATE KEY UPDATE id = 4") ||
+       if (!mysqli_stmt_prepare($stmt, 'INSERT INTO test(id, label) VALUES (1, "a") ON DUPLICATE KEY UPDATE id = 4') ||
                !mysqli_stmt_execute($stmt))
                printf("[011] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
 
index bddc6c2bfb836e65fd38d7406d1c9788be536bad..8fc9380b3ff25a5a0f69d0baccaf414b7e5bdace 100644 (file)
@@ -331,64 +331,32 @@ if (version_compare(PHP_VERSION, '5.3.0-dev') == -1)
 --EXPECTF--
 Regular, procedural, using variables
 int(1)
-string(1) "a"
+%unicode|string%(1) "a"
 Call user func, procedural, using references for everything
 int(1)
-string(1) "a"
+%unicode|string%(1) "a"
 Call user func, object oriented, using references for everything
 int(1)
-string(1) "a"
+%unicode|string%(1) "a"
 Call user func, object oriented, using variable for types. using references for bound parameter
 int(1)
-string(1) "a"
+%unicode|string%(1) "a"
 Call user func, object oriented, using constant for types. using references for bound parameter
 int(1)
-string(1) "a"
+%unicode|string%(1) "a"
 Call user func, procedural, using references for everything but using variable for types
 int(1)
-string(1) "a"
+%unicode|string%(1) "a"
 Call user func, procedural, using references for bound parameter, using variables for resource and types
 int(1)
-string(1) "a"
+%unicode|string%(1) "a"
 Call user func, procedural, using references for bound parameter, using variables for resource and types
 int(1)
-string(1) "a"
+%unicode|string%(1) "a"
 Call user func, procedural, using references for bound parameter, using variable for resource, using constant for types
 int(1)
-string(1) "a"
+%unicode|string%(1) "a"
 Call user func, procedural, using references for bound parameter, using variable for resource, using constant for types, array
 int(1)
-string(1) "a"
-done!
---UEXPECTF--
-Regular, procedural, using variables
-int(1)
-unicode(1) "a"
-Call user func, procedural, using references for everything
-int(1)
-unicode(1) "a"
-Call user func, object oriented, using references for everything
-int(1)
-unicode(1) "a"
-Call user func, object oriented, using variable for types. using references for bound parameter
-int(1)
-unicode(1) "a"
-Call user func, object oriented, using constant for types. using references for bound parameter
-int(1)
-unicode(1) "a"
-Call user func, procedural, using references for everything but using variable for types
-int(1)
-unicode(1) "a"
-Call user func, procedural, using references for bound parameter, using variables for resource and types
-int(1)
-unicode(1) "a"
-Call user func, procedural, using references for bound parameter, using variables for resource and types
-int(1)
-unicode(1) "a"
-Call user func, procedural, using references for bound parameter, using variable for resource, using constant for types
-int(1)
-unicode(1) "a"
-Call user func, procedural, using references for bound parameter, using variable for resource, using constant for types, array
-int(1)
-unicode(1) "a"
-done!
+%unicode|string%(1) "a"
+done!
\ No newline at end of file
index e9c3ad450e77b5c2b34f154f04de6bfba900c296..4e03c66f2a0ccfbf4bf4a90dc114b10486690aa3 100644 (file)
@@ -121,6 +121,4 @@ require_once('skipifconnectfailure.inc');
        print "done!";
 ?>
 --EXPECTF--
-done!
---UEXPECTF--
 done!
\ No newline at end of file
index f5f08ac67283e20ebffd42d8da1fe4b7fa747446..a1b0e2caab2d699e0f2ab78f8c612943a7c3dc22 100644 (file)
@@ -10,7 +10,7 @@ require_once('skipifconnectfailure.inc');
 <?php
        include "connect.inc";
 
-       $hint_str_or_unicode = ini_get("unicode.semantics")? "unicode":"string";
+       $hint_str_or_unicode = (version_compare(PHP_VERSION, '5.9.9', '>') == 1) ? "unicode":"string";
 
        $tmp    = NULL;
        $link   = NULL;
@@ -317,14 +317,4 @@ Warning: mysqli_stmt_bind_result(): Number of bind variables doesn't match numbe
 Warning: mysqli_stmt_bind_result(): Number of bind variables doesn't match number of fields in prepared statement in %s on line %d
 int(1)
 %s(1) "a"
-done!
---UEXPECTF--
-Warning: mysqli_stmt_bind_result(): invalid object or resource mysqli_stmt
- in %s on line %d
-
-Warning: mysqli_stmt_bind_result(): Number of bind variables doesn't match number of fields in prepared statement in %s on line %d
-
-Warning: mysqli_stmt_bind_result(): Number of bind variables doesn't match number of fields in prepared statement in %s on line %d
-int(1)
-unicode(1) "a"
-done!
+done!
\ No newline at end of file
index 4934177182cb227a4789f6da530c7cb3917b861f..34f7831896033bd99047f1fd1d64680af9a6d02a 100644 (file)
@@ -152,6 +152,4 @@ require_once('skipifconnectfailure.inc');
        print "done!";
 ?>
 --EXPECTF--
-done!
---UEXPECTF--
 done!
\ No newline at end of file
index 185780567634030ffffd39c0a46b32c6fb535cc2..3040d316a733e9d8631440de436a64ba21798ac0 100644 (file)
@@ -245,134 +245,67 @@ require_once('skipifconnectfailure.inc');
 --EXPECTF--
 plain vanilla...
 int(1)
-string(1) "a"
+%unicode|string%(1) "a"
 reference, one level...
 int(1)
 int(1)
-string(1) "a"
-string(1) "a"
+%unicode|string%(1) "a"
+%unicode|string%(1) "a"
 reference, two levels...
 int(1)
 int(1)
 int(1)
-string(1) "a"
-string(1) "a"
-string(1) "a"
+%unicode|string%(1) "a"
+%unicode|string%(1) "a"
+%unicode|string%(1) "a"
 reference, $GLOBALS...
 int(1)
 int(1)
-string(1) "a"
-string(1) "a"
+%unicode|string%(1) "a"
+%unicode|string%(1) "a"
 reference, same target...
-string(1) "a"
-string(1) "a"
+%unicode|string%(1) "a"
+%unicode|string%(1) "a"
 reference, simple object...
 int(1)
-string(1) "a"
+%unicode|string%(1) "a"
 reference, simple object w reference...
 int(1)
-string(1) "a"
+%unicode|string%(1) "a"
 reference, simple object w reference, change after bind...
 int(1)
 int(1)
-string(1) "a"
+%unicode|string%(1) "a"
 int(1)
 reference, one level, change after bind...
 int(1)
 int(1)
-string(1) "a"
-string(1) "a"
+%unicode|string%(1) "a"
+%unicode|string%(1) "a"
 reference, circle...
 int(1)
-string(1) "a"
-string(1) "a"
+%unicode|string%(1) "a"
+%unicode|string%(1) "a"
 reference, object, forward declaration...
 int(1)
 object(bar)#%d (2) {
-  ["bar"]=>
-  &string(1) "a"
-  ["foo"]=>
-  &string(1) "a"
+  [%u|b%"bar"]=>
+  &%unicode|string%(1) "a"
+  [%u|b%"foo"]=>
+  &%unicode|string%(1) "a"
 }
-string(1) "a"
+%unicode|string%(1) "a"
 references, object, private...
 int(1)
-string(1) "a"
+%unicode|string%(1) "a"
 object(mega_bar)#5 (4) {
   [%s]=>
   &int(1)
-  ["id_ref"]=>
+  [%u|b%"id_ref"]=>
   &int(1)
-  ["bar"]=>
-  &string(1) "a"
-  ["foo"]=>
-  &string(1) "a"
+  [%u|b%"bar"]=>
+  &%unicode|string%(1) "a"
+  [%u|b%"foo"]=>
+  &%unicode|string%(1) "a"
 }
-done!
---UEXPECTF--
-plain vanilla...
-int(1)
-unicode(1) "a"
-reference, one level...
-int(1)
-int(1)
-unicode(1) "a"
-unicode(1) "a"
-reference, two levels...
-int(1)
-int(1)
-int(1)
-unicode(1) "a"
-unicode(1) "a"
-unicode(1) "a"
-reference, $GLOBALS...
-int(1)
-int(1)
-unicode(1) "a"
-unicode(1) "a"
-reference, same target...
-unicode(1) "a"
-unicode(1) "a"
-reference, simple object...
-int(1)
-unicode(1) "a"
-reference, simple object w reference...
-int(1)
-unicode(1) "a"
-reference, simple object w reference, change after bind...
-int(1)
-int(1)
-unicode(1) "a"
-int(1)
-reference, one level, change after bind...
-int(1)
-int(1)
-unicode(1) "a"
-unicode(1) "a"
-reference, circle...
-int(1)
-unicode(1) "a"
-unicode(1) "a"
-reference, object, forward declaration...
-int(1)
-object(bar)#%d (2) {
-  [u"bar"]=>
-  &unicode(1) "a"
-  [u"foo"]=>
-  &unicode(1) "a"
-}
-unicode(1) "a"
-references, object, private...
-int(1)
-unicode(1) "a"
-object(mega_bar)#5 (4) {
-  [u"id":u"mega_bar":private]=>
-  &int(1)
-  [u"id_ref"]=>
-  &int(1)
-  [u"bar"]=>
-  &unicode(1) "a"
-  [u"foo"]=>
-  &unicode(1) "a"
-}
-done!
+done!
\ No newline at end of file
index 27b66c0c0c609fb3a59840022c0df11e3ae57a75..b5f8d59160a74e95a9ec47c3264525b9085757d6 100644 (file)
@@ -26,7 +26,7 @@ require_once('skipifconnectfailure.inc');
        $c2->query("use $db");
        $c1->query("drop table if exists type_change");
        $c1->query("create table type_change(a int, b char(10))");
-       $c1->query("insert into type_change values (1, 'one'), (2, 'two')"); 
+       $c1->query("insert into type_change values (1, 'one'), (2, 'two')");
        $s1 = $c1->prepare("select a from type_change order by a");
        var_dump($s1->execute(), $s1->bind_result($col1));
        echo "---- Row 1\n";
@@ -71,7 +71,7 @@ NULL
 ALTER
 bool(true)
 bool(false)
-string(34) "Unknown column 'a' in 'field list'"
+%unicode|string%(34) "Unknown column 'a' in 'field list'"
 ---- Row 1
 bool(false)
 int(2)
@@ -81,30 +81,4 @@ int(2)
 ---- Row 3
 bool(false)
 ----
-done!
---UEXPECTF--
-bool(true)
-bool(true)
----- Row 1
-bool(true)
-int(1)
----- Row 2
-bool(true)
-int(2)
----- Row 3
-NULL
-----
-ALTER
-bool(true)
-bool(false)
-unicode(34) "Unknown column 'a' in 'field list'"
----- Row 1
-bool(false)
-int(2)
----- Row 2
-bool(false)
-int(2)
----- Row 3
-bool(false)
-----
-done!
+done!
\ No newline at end of file
index 17e74e87b44a814c6da30eb26534b5fe7ebc09d2..f6b7444cba56a373367d949d3d9f948c062cb659 100644 (file)
@@ -104,7 +104,7 @@ if (mysqli_get_server_version($link) <= 50000) {
        if (mysqli_real_query($link, 'CREATE PROCEDURE p(IN ver_in VARCHAR(25), OUT ver_out VARCHAR(25)) BEGIN SELECT ver_in INTO ver_out; END;')) {
                // no result set, one input parameter, output parameter
                // yes, I really do not want to bind input values...
-               if (!$stmt = mysqli_prepare($link, "CALL p('myversion', @version)"))
+               if (!$stmt = mysqli_prepare($link, 'CALL p("myversion", @version)'))
                        printf("[029] Cannot prepare CALL, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
 
                if (!mysqli_stmt_execute($stmt))
@@ -182,4 +182,4 @@ if (mysqli_get_server_version($link) <= 50000) {
        print "done!";
 ?>
 --EXPECTF--
-done!
+done!
\ No newline at end of file
index 57ca199e4ecfe28bb968d32b170e3fe4d99d0fc9..143c3c268a957d6fd46e2ee7abad461ae2a9e05f 100644 (file)
@@ -63,7 +63,7 @@ require_once('skipifconnectfailure.inc');
        if (0 !== ($tmp = mysqli_stmt_field_count($stmt)))
                printf("[017] Expecting int/0, got %s/%s\n", gettype($tmp), $tmp);
 
-       if (!mysqli_stmt_prepare($stmt, "UPDATE test SET label = 'z' WHERE id = 1") ||
+       if (!mysqli_stmt_prepare($stmt, 'UPDATE test SET label = "z" WHERE id = 1') ||
                !mysqli_stmt_execute($stmt))
                printf("[018] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
 
@@ -93,4 +93,4 @@ Warning: mysqli_stmt_bind_param(): Number of variables doesn't match number of p
 Warning: mysqli_stmt_prepare(): Couldn't fetch mysqli_stmt in %s on line %d
 
 Warning: mysqli_stmt_field_count(): Couldn't fetch mysqli_stmt in %s on line %d
-done!
+done!
\ No newline at end of file
index 3c586508cf74f90dfeeb1cfc9d6d4ce51112e834..e58f6b00015d444635f02df9eca8cdccf10994a9 100644 (file)
@@ -167,41 +167,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) {
-  ["id"]=>
+  [%u|b%"id"]=>
   int(1)
-  ["label"]=>
+  [%u|b%"label"]=>
   %s(1) "a"
 }
 array(2) {
-  ["id"]=>
+  [%u|b%"id"]=>
   int(2)
-  ["label"]=>
-  %s(1) "b"
-}
-
-Warning: mysqli_stmt_fetch(): Couldn't fetch mysqli_stmt in %s on line %d
-done!
---UEXPECTF--
-Warning: mysqli_stmt_fetch(): invalid object or resource mysqli_stmt
- in %s on line %d
-
-Warning: mysqli_stmt_fetch(): invalid object or resource mysqli_stmt
- in %s on line %d
-
-Warning: mysqli_stmt_get_result(): invalid object or resource mysqli_stmt
- in %s on line %d
-[038] [2014] [Commands out of sync; you can't run this command now]
-[039] [0] []
-array(2) {
-  [%s"id"]=>
-  int(1)
-  [%s"label"]=>
-  %s(1) "a"
-}
-array(2) {
-  [%s"id"]=>
-  int(2)
-  [%s"label"]=>
+  [%u|b%"label"]=>
   %s(1) "b"
 }
 
index 4ba8e245447ed28346bc16dba2cfc1e6e8108949..c562008731e0722935635657d1b95b2e8f63ca13 100644 (file)
@@ -5,7 +5,7 @@ mysqli_stmt_get_result()
 require_once('skipif.inc');
 require_once('skipifemb.inc');
 require_once('skipifconnectfailure.inc');
-if (!function_exists('mysqli_stmt_get_result')) 
+if (!function_exists('mysqli_stmt_get_result'))
        die('skip mysqli_stmt_get_result not available');
 ?>
 --FILE--
@@ -153,36 +153,17 @@ if (!function_exists('mysqli_stmt_get_result'))
 ?>
 --EXPECTF--
 array(2) {
-  ["id"]=>
+  [%u|b%"id"]=>
   int(1)
-  ["label"]=>
-  string(1) "a"
+  [%u|b%"label"]=>
+  %unicode|string%(1) "a"
 }
 NULL
 array(2) {
-  ["id"]=>
+  [%u|b%"id"]=>
   int(1)
-  ["label"]=>
-  string(1) "a"
-}
-NULL
-[017] [2014] Commands out of sync; you can't run this command now
-
-Warning: mysqli_stmt_get_result(): Couldn't fetch mysqli_stmt in %s on line %d
-done!
---UEXPECTF--
-array(2) {
-  [u"id"]=>
-  int(1)
-  [u"label"]=>
-  unicode(1) "a"
-}
-NULL
-array(2) {
-  [u"id"]=>
-  int(1)
-  [u"label"]=>
-  unicode(1) "a"
+  [%u|b%"label"]=>
+  %unicode|string%(1) "a"
 }
 NULL
 [017] [2014] Commands out of sync; you can't run this command now
index afaa5765d95ecf9e397cbd485ccc051f391e4743..bf13c1e2b25654fb8a72822fe7e89e57127366cc 100644 (file)
@@ -208,36 +208,10 @@ if (!function_exists('mysqli_stmt_get_result'))
 ?>
 --EXPECTF--
 array(2) {
-  ["id"]=>
+  [%u|b%"id"]=>
   int(1)
-  ["label"]=>
-  string(1) "a"
-}
-NULL
-bool(false)
-bool(false)
-id
-label
-_id
-_label
-_null
-_label_concat
-
-Warning: mysqli_fetch_field(): Couldn't fetch mysqli_result in %s on line %d
-NULL
-
-Warning: mysqli_fetch_field(): Couldn't fetch mysqli_result in %s on line %d
-NULL
-
-Warning: mysqli_fetch_field(): Couldn't fetch mysqli_result in %s on line %d
-NULL
-done!
---UEXPECTF--
-array(2) {
-  [u"id"]=>
-  int(1)
-  [u"label"]=>
-  unicode(1) "a"
+  [%u|b%"label"]=>
+  %unicode|string%(1) "a"
 }
 NULL
 bool(false)
index 12e33f22096cafebd8dfb1289cfd1cedca985091..f08250292f3d302c84c6bfd15974f1f94fb57119 100644 (file)
@@ -89,6 +89,4 @@ if (!function_exists('mysqli_stmt_get_result'))
        print "done!";
 ?>
 --EXPECTF--
-done!
---UEXPECTF--
 done!
\ No newline at end of file
index f70eea7c33ad59ad8b9e59d2cf767a7a51963b65..164326db4c96f854fa12376b48a7595c6a3e439c 100644 (file)
@@ -15,7 +15,7 @@ mysqli_stmt_get_result - data types
        if (!$link = mysqli_connect($host, $user, $passwd, $db, $port, $socket))
                printf("[001] [%d] %s\n", mysqli_connect_errno(), mysqli_connect_error());
 
-       $hint_str_or_unicode = ini_get('unicode.semantics') ? 'unicode' : 'string';
+       $hint_str_or_unicode = (version_compare(PHP_VERSION, '5.9.9', '>') == 1) ? 'unicode' : 'string';
 
        function func_mysqli_stmt_get_result($link, $engine, $bind_type, $sql_type, $bind_value, $offset, $type_hint = null) {
 
index 73b67a515fd9e8605ddd81211e1f580c7a430d1d..12235fc58a70ef073108d440bd1256c4068b8fc9 100644 (file)
@@ -98,58 +98,27 @@ require_once('skipifconnectfailure.inc');
 Warning: mysqli_stmt_result_metadata(): invalid object or resource mysqli_stmt
  in %s on line %d
 object(stdClass)#5 (%d) {
-  ["name"]=>
-  string(2) "id"
-  ["orgname"]=>
-  string(2) "id"
-  ["table"]=>
-  string(4) "test"
-  ["orgtable"]=>
-  string(4) "test"
-  ["def"]=>
-  string(0) ""
-  ["max_length"]=>
+  [%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%"max_length"]=>
   int(0)
-  ["length"]=>
+  [%u|b%"length"]=>
   int(11)
-  ["charsetnr"]=>
+  [%u|b%"charsetnr"]=>
   int(63)
-  ["flags"]=>
+  [%u|b%"flags"]=>
   int(49155)
-  ["type"]=>
+  [%u|b%"type"]=>
   int(3)
-  ["decimals"]=>
-  int(0)
-}
-
-Warning: mysqli_stmt_result_metadata(): Couldn't fetch mysqli_stmt in %s on line %d
-done!
---UEXPECTF--
-
-Warning: mysqli_stmt_result_metadata(): invalid object or resource mysqli_stmt
- in %s on line %d
-object(stdClass)#5 (%d) {
-  [u"name"]=>
-  unicode(2) "id"
-  [u"orgname"]=>
-  unicode(2) "id"
-  [u"table"]=>
-  unicode(4) "test"
-  [u"orgtable"]=>
-  unicode(4) "test"
-  [u"def"]=>
-  unicode(0) ""
-  [u"max_length"]=>
-  int(0)
-  [u"length"]=>
-  int(11)
-  [u"charsetnr"]=>
-  int(63)
-  [u"flags"]=>
-  int(49155)
-  [u"type"]=>
-  int(3)
-  [u"decimals"]=>
+  [%u|b%"decimals"]=>
   int(0)
 }
 
index 888b952edcd6127a848818210cf88dc8eeb2e76a..f6e509ae02aaa55b0b3b134f9df49a39730acfdc 100644 (file)
@@ -226,6 +226,4 @@ die("skip Check again when the Klingons visit earth - http://bugs.mysql.com/bug.
        print "done!";
 ?>
 --EXPECTF--
-done!
---UEXPECTF--
 done!
\ No newline at end of file
index 9263d277aa79271063807014a0e56a28b954e8d4..a29df4ffa44f1ec62a843ca7cc4fb40cf558a38a 100644 (file)
@@ -41,7 +41,7 @@ require_once('skipifconnectfailure.inc');
        if (!mysqli_stmt_bind_param($stmt, "ib", $id, $label))
                printf("[008] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
 
-       if (!$res = mysqli_query($link, "SHOW VARIABLES LIKE 'max_allowed_packet'"))
+       if (!$res = mysqli_query($link, 'SHOW VARIABLES LIKE "max_allowed_packet"'))
                printf("[009] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
 
        if (!$row = mysqli_fetch_assoc($res))
@@ -128,4 +128,4 @@ require_once('skipifconnectfailure.inc');
 ?>
 --EXPECTF--
 Warning: mysqli_stmt_send_long_data(): Invalid parameter number in %s on line %d
-done!
+done!
\ No newline at end of file
index f908b45d108e8046212966625980b7e1f704cea3..1600729250d2a83ffedc885c93a00daf9b3ca691 100644 (file)
@@ -31,7 +31,7 @@ if (!stristr(mysqli_get_client_info(), 'mysqlnd'))
        if (!mysqli_stmt_bind_param($stmt, "ib", $id, $label))
                printf("[005] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
 
-       if (!$res = mysqli_query($link, "SHOW VARIABLES LIKE 'max_allowed_packet'"))
+       if (!$res = mysqli_query($link, 'SHOW VARIABLES LIKE "max_allowed_packet"'))
                printf("[006] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
 
        if (!$row = mysqli_fetch_assoc($res))
@@ -97,4 +97,4 @@ Warning: mysqli_stmt_send_long_data(): There was an error while sending long dat
        print "done!";
 ?>
 --EXPECTF--
-done!
+done!
\ No newline at end of file
index fb5e24def0d0a234ccb6680eefc2fe81712b9169..57d18424bd6e8637868adc7588ddea0815db7d0d 100644 (file)
@@ -31,7 +31,7 @@ require_once('skipifconnectfailure.inc');
        if (NULL !== ($tmp = @mysqli_stmt_store_result($stmt)))
                printf("[005] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
 
-       if (!mysqli_stmt_prepare($stmt, "INSERT INTO test(id, label) VALUES (100, 'z')") ||
+       if (!mysqli_stmt_prepare($stmt, 'INSERT INTO test(id, label) VALUES (100, "z")') ||
                !mysqli_stmt_execute($stmt))
                printf("[006] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
 
@@ -83,4 +83,4 @@ require_once('skipifconnectfailure.inc');
        print "done!";
 ?>
 --EXPECTF--
-done!
+done!
\ No newline at end of file