/PHP-7.4/ext/mysqli/tests/ |
H A D | mysqli_real_escape_string_euckr.phpt | 12 die(sprintf("skip Cannot connect to MySQL, [%d] %s\n", 24 printf("[001] Cannot connect to the server using host=%s, user=%s, 25 passwd=***, dbname=%s, port=%s, socket=%s - [%d] %s\n", $host, $user, $db, 30 printf("Failed to drop old test table: [%d] %s\n", mysqli_errno($link), 36 printf("Failed to create test table: [%d] %s\n", mysqli_errno($link), 43 printf("[004] Expecting \\\\, got %s\n", $tmp); 46 printf("[005] Expecting \", got %s\n", $tmp); 49 printf("[006] Expecting ', got %s\n", $tmp); 52 printf("[007] Expecting \\n, got %s\n", $tmp); 55 printf("[008] Expecting \\r, got %s\n", $tmp); [all …]
|
H A D | mysqli_real_escape_string_gb2312.phpt | 12 die(sprintf("skip Cannot connect to MySQL, [%d] %s\n", 25 printf("[001] Cannot connect to the server using host=%s, user=%s, 26 passwd=***, dbname=%s, port=%s, socket=%s - [%d] %s\n", $host, $user, $db, 31 printf("Failed to drop old test table: [%d] %s\n", mysqli_errno($link), 37 printf("Failed to create test table: [%d] %s\n", mysqli_errno($link), 44 printf("[004] Expecting \\\\, got %s\n", $tmp); 47 printf("[005] Expecting \", got %s\n", $tmp); 50 printf("[006] Expecting ', got %s\n", $tmp); 53 printf("[007] Expecting \\n, got %s\n", $tmp); 56 printf("[008] Expecting \\r, got %s\n", $tmp); [all …]
|
H A D | mysqli_real_escape_string_nobackslash.phpt | 18 printf("[002] Expecting \\, got %s\n", $tmp); 21 printf("[003] Expecting \", got %s\n", $tmp); 24 printf("[004] Expecting '', got %s\n", $tmp); 27 printf("[005] Expecting \\n, got %s\n", $tmp); 30 printf("[006] Expecting \\r, got %s\n", $tmp); 34 printf("[007] Expecting %s, got %s\n", "foo" . chr(0) . "bar", $tmp); 36 if (!mysqli_query($link, sprintf('INSERT INTO test(id, label) VALUES (100, "%s")', 38 printf("[009] Cannot INSERT, [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 42 printf("[010] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 51 printf("[012] Expecting \\, got %s\n", $tmp); [all …]
|
H A D | mysqli_real_escape_string_sjis.phpt | 11 die(sprintf("skip Cannot connect to MySQL, [%d] %s\n", 27 printf("[004] Expecting \\\\, got %s\n", $tmp); 30 printf("[005] Expecting \", got %s\n", $tmp); 33 printf("[006] Expecting ', got %s\n", $tmp); 36 printf("[007] Expecting \\n, got %s\n", $tmp); 39 printf("[008] Expecting \\r, got %s\n", $tmp); 42 printf("[009] Expecting %s, got %s\n", "?p??\\0?p??", $tmp);
|
H A D | mysqli_real_escape_string_unicode.phpt | 17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 20 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 25 printf("[003] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 28 printf("[004] Expecting фу\\\\бар, got %s\n", $tmp); 31 printf("[005] Expecting бар\"фус, got %s\n", $tmp); 40 printf("[008] Expecting \\r, got %s\n", $tmp); 43 printf("[009] Expecting %s, got %s\n", "иху\\0аху", $tmp); 48 printf("[010] Expecting %s, got %s\n", $exp, $tmp, var_dump($exp, $tmp)); 67 printf("[016] Expecting %s, got %s\n", "竺可桢\\0空调器", $tmp); 72 printf("[017] Expecting %s, got %s\n", $exp, $tmp, var_dump($exp, $tmp)); [all …]
|
H A D | mysqli_real_query.phpt | 16 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 19 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 24 printf("[003] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 27 printf("[004] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp); 30 printf("[005] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp); 36 printf("[007] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 39 …printf("[008] Expecting reseult object, got %s/%s [%d] %s\n", gettype($res), $res, mysqli_errno($l… 45 printf("[008] Expecting boolean/false, got %s/%s, [%d] %s\n", gettype($res), $res, 49 // let's try to play with stored procedures 88 printf("[011] Expecting false, got %s/%s\n", gettype($tmp), $tmp); [all …]
|
H A D | mysqli_reap_async_query.phpt | 21 printf("[001] [%d] %s\n", mysqli_connect_errno(), mysqli_connect_error()); 26 printf("[001] [%d] %s\n", mysqli_connect_errno(), mysqli_connect_error()); 29 printf("[002] Expecting NULL got %s\n", var_export($tmp, true)); 33 printf("[003] Expecting NULL got %s\n", var_export($tmp, true)); 36 printf("[004] Expecting NULL got %s\n", var_export($tmp, true)); 52 printf("[%03d + 2] %s\n", $offset, var_export($res->fetch_assoc(), true)); 54 printf("[%03d + 3] Error indicated through links array: %d/%s", 62 printf("[%03d + 5] Error on %d: %d/%s\n", 66 printf("[%03d + 6] Rejecting thread %d: %d/%s\n",
|
H A D | mysqli_reconnect.phpt | 26 printf("[002] Cannot get full processlist, [%d] %s\n", 36 printf("[003] Processlist is borked, [%d] %s\n", 47 printf("[006] Cannot get wait_timeout, [%d] %s\n", 75 printf("[011] Cannot get database name, [%d] %s\n", 79 printf("[012] Cannot get database name, [%d] %s\n", 84 printf("[013] Connection should has been made to DB/Schema '%s', expecting '%s', [%d] %s\n", 106 printf("[016] Processlist is borked, [%d] %s\n", 110 printf("[017] Expecting boolean/true got %s/%s\n", gettype($tmp), $tmp); 113 printf("[018] Cannot get database name, [%d] %s\n", 117 printf("[019] Cannot get database name, [%d] %s\n", [all …]
|
H A D | mysqli_release_savepoint.phpt | 24 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 27 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 30 …f("[003] Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, sock… 35 printf("[004] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 38 printf("[005] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 41 printf("[006] Expecting false, got %s/%s\n", gettype($tmp), $tmp); 50 … printf("[009] Cannot turn off autocommit, expecting true, got %s/%s\n", gettype($tmp), $tmp); 54 …printf("[010] Got %s - [%d] %s\n", var_dump($tmp, true), mysqli_errno($link), mysqli_error($link)); 61 printf("[012] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 64 …printf("[013] Got %s - [%d] %s\n", var_dump($tmp, true), mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | mysqli_report_new.phpt | 10 …tf("SKIP Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, sock… 36 …f("[001] Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, sock… 48 Warning: mysqli_change_user(): (%d/%d): Access denied for user '%s'@'%s' (using password: %s) in %s…
|
H A D | mysqli_report_wo_ps.phpt | 10 …tf("SKIP Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, sock… 27 printf("[003] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 30 printf("[004] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 33 printf("[005] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 36 printf("[007] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 39 printf("[008] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 77 …"[010] Can connect to the server using host=%s, user=%s, passwd=***non_empty, dbname=%s, port=%s, … 90 …"[013] Can connect to the server using host=%s, user=%s, passwd=***non_empty, dbname=%s, port=%s, … 108 Warning: mysqli_change_user(): (%d/%d): Access denied for user '%s'@'%s' (using password: %s) in %s… 115 [011] Access denied for user '%s'@'%s' (using password: YES) [all …]
|
H A D | mysqli_result_invalid_mode.phpt | 20 printf("[001] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 29 Warning: mysqli_result::__construct(): Invalid value for resultmode in %s on line %d
|
H A D | mysqli_result_references.phpt | 18 printf("[001] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 43 …f("[002] Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, sock… 48 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 66 printf("[004] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
|
H A D | mysqli_result_references_mysqlnd.phpt | 22 printf("[001] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 38 printf("[002] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
|
H A D | mysqli_result_unclonable.phpt | 14 …f("[001] Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, sock… 18 printf("[002] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 24 Fatal error: Uncaught Error: Trying to clone an uncloneable object of class mysqli_result in %s:%d 27 thrown in %s on line %d
|
H A D | mysqli_send_query.phpt | 24 printf("[001] Expecting NULL/NULL, got %s/%s\n", gettype($tmp), $tmp); 27 printf("[002] Expecting NULL/NULL, got %s/%s\n", gettype($tmp), $tmp); 30 …f("[003] Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, sock… 36 printf("[004] Expecting NULL/NULL, got %s/%s\n", gettype($tmp), $tmp); 39 printf("[005] Expecting integer/any value, got %s/%s\n", gettype($tmp), $tmp); 44 printf("[006] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 49 Warning: mysqli_send_query(): Couldn't fetch mysqli in %s on line %d
|
H A D | mysqli_set_charset.phpt | 19 die(sprintf("skip Cannot check server version, [%d] %s\n", 55 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 58 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 61 printf("[003] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 80 …printf("[011] Expecting boolean/false because of invalid character set, got %s/%s\n", gettype($ret… 84 …f("[012] Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, sock… 88 printf("[013] Expecting boolean/true, got %s/%s\n", gettype($ret), $ret); 95 … printf("[015] Character set not changed? Expecting %s, got %s\n", $new_charset, $tmp['charset']); 106 printf("[017] Cannot set character set to '%s', [%d] %s\n", $tmp['Charset'], 113 …printf("[018] Cannot run SET NAMES %s, [%d] %s\n", $tmp['Charset'], mysqli_errno($link), mysqli_er… [all …]
|
H A D | mysqli_set_opt.phpt | 17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 20 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 25 printf("[003] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 27 if (!is_null($tmp = @mysqli_set_opt($link, "s", 'extra_my.cnf'))) 28 printf("[004] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 31 printf("[005] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 67 Warning: mysqli_set_opt(): Couldn't fetch mysqli in %s on line %d
|
H A D | mysqli_sqlstate.phpt | 17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 20 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 44 %s(5) "00000" 45 %s(5) "42S22" 46 %s(5) "00000" 48 Warning: mysqli_sqlstate(): Couldn't fetch mysqli in %s on line %d
|
H A D | mysqli_ssl_set.phpt | 19 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 22 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 25 printf("[003] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 28 printf("[004] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 31 printf("[005] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 34 printf("[006] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 47 printf("[007] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 56 printf("[008] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp);
|
H A D | mysqli_stat.phpt | 17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 20 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 25 printf("[003] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 28 printf("[004] Expecting non empty string, got %s/'%s', [%d] %s\n", 34 printf("[005] Expecting false, got %s/%s\n", gettype($tmp), $tmp); 39 Warning: mysqli_stat(): Couldn't fetch mysqli in %s on line %d
|
H A D | mysqli_stmt_affected_rows.phpt | 17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 20 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 23 …printf("Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socke… 39 printf("[005] Expecting int/0, got %s/'%s'\n", gettype($tmp), $tmp); 56 printf("[008] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp); 68 printf("[010] Expecting int/0, got %s/%s\n", gettype($tmp), $tmp); 78 printf("[012] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp); 88 printf("[014] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp); 98 printf("[016] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp); 124 printf("[021] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp); [all …]
|
H A D | mysqli_stmt_attr_get.phpt | 17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 20 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 23 printf("[003] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 28 printf("[004] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 44 printf("[005] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp); 48 … printf("[006] Expecting any type, but not boolean/false, got %s/%s for attribute %s/%s\n", 57 printf("[007] Expecting false, got %s/%s for attribute %s/%s\n",
|
H A D | mysqli_stmt_attr_get_prefetch.phpt | 17 printf("[001] Expecting int/1, got %s/%s for attribute %s/%s\n",
|
H A D | mysqli_stmt_attr_set.phpt | 17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 20 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 23 printf("[003] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 26 printf("[004] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 45 printf("[005] Expecting false, got %s/%s\n", gettype($tmp), $tmp); 151 printf("[010] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp); 154 printf("[011] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp); 157 printf("[012] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp); 160 printf("[013] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 163 printf("[014] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); [all …]
|