/PHP-5.5/ext/mysqli/tests/ |
H A D | mysqli_real_query.phpt | 12 $tmp = NULL; 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); 58 if (!is_array($tmp) || empty($tmp) || !isset($tmp['p_version']) || ('' == $tmp['p_version'])) { 60 var_dump($tmp); 74 if (!is_array($tmp) || empty($tmp) || !isset($tmp['f_version']) || ('' == $tmp['f_version'])) { 76 var_dump($tmp); [all …]
|
H A D | mysqli_reconnect.phpt | 109 if (true !== ($tmp = mysqli_ping($link))) 110 printf("[017] Expecting boolean/true got %s/%s\n", gettype($tmp), $tmp);
|
H A D | mysqli_report.phpt | 13 $tmp = NULL; 16 if (NULL !== ($tmp = @mysqli_report())) 17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 19 if (true !== ($tmp = mysqli_report(-1))) 20 printf("[002] Expecting boolean/true even for invalid flags, got %s/%s\n", gettype($tmp), $tmp); 23 printf("[003] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 26 printf("[004] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 29 printf("[005] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 32 printf("[007] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 35 printf("[008] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); [all …]
|
H A D | mysqli_report_wo_ps.phpt | 13 $tmp = NULL; 16 if (NULL !== ($tmp = @mysqli_report())) 17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 19 if (true !== ($tmp = mysqli_report(-1))) 20 printf("[002] Expecting boolean/true even for invalid flags, got %s/%s\n", gettype($tmp), $tmp); 23 printf("[003] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 26 printf("[004] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 29 printf("[005] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 31 if (true !== ($tmp = mysqli_report(MYSQLI_REPORT_ALL))) 32 printf("[007] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); [all …]
|
H A D | mysqli_result_references.phpt | 68 $tmp = array(); 70 $tmp[] = $row; 72 $tmp = unserialize(serialize($tmp)); 73 debug_zval_dump($tmp);
|
H A D | mysqli_stat.phpt | 13 $tmp = NULL; 16 if (!is_null($tmp = @mysqli_stat())) 17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 19 if (!is_null($tmp = @mysqli_stat($link))) 20 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 24 if (!is_null($tmp = @mysqli_stat($link, "foo"))) 25 printf("[003] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 27 if ((!is_string($tmp = mysqli_stat($link))) || ('' === $tmp)) 29 gettype($tmp), $tmp, mysqli_errno($link), mysql_error($link)); 33 if (!is_null($tmp = mysqli_stat($link))) [all …]
|
H A D | mysqli_stmt_affected_rows.phpt | 13 $tmp = NULL; 17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 20 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 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 | 13 $tmp = NULL; 16 if (!is_null($tmp = @mysqli_stmt_attr_get())) 17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 19 if (!is_null($tmp = @mysqli_stmt_attr_get($link))) 20 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 22 if (!is_null($tmp = @mysqli_stmt_attr_get($link, $link))) 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); 49 gettype($tmp), $tmp, $k, $attr); [all …]
|
H A D | mysqli_multi_query.phpt | 18 $tmp = NULL; 21 if (!is_null($tmp = @mysqli_multi_query())) 22 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 25 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 30 printf("[003] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp); 48 $tmp = ob_get_contents(); 53 … $tmp = trim(preg_replace('@Strict Standards: mysqli_next_result\(\).*on line \d+@ism', '', $tmp)); 55 print trim($tmp) . "\n"; 86 $tmp = ob_get_contents(); 91 … $tmp = trim(preg_replace('@Strict Standards: mysqli_next_result\(\).*on line \d+@ism', '', $tmp)); [all …]
|
H A D | mysqli_no_reconnect.phpt | 116 if (false !== ($tmp = @mysqli_ping($link))) 117 printf("[016] Expecting boolean/false got %s/%s\n", gettype($tmp), $tmp);
|
H A D | mysqli_num_rows.phpt | 13 $tmp = NULL; 16 if (!is_null($tmp = @mysqli_num_rows())) 17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 19 if (!is_null($tmp = @mysqli_num_rows($link))) 20 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 31 if ($expected !== ($tmp = mysqli_num_rows($res))) 34 gettype($tmp), $tmp); 38 if ($test_free && (NULL !== ($tmp = mysqli_num_rows($res)))) 39 printf("[%03d] Expecting NULL, got %s/%s\n", $offset + 2, gettype($tmp), $tmp); 64 if (0 !== ($tmp = mysqli_num_rows($res))) [all …]
|
H A D | mysqli_options.phpt | 30 $tmp = NULL; 33 if (!is_null($tmp = @mysqli_options())) 34 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 36 if (!is_null($tmp = @mysqli_options($link))) 37 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 46 printf("[003] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 48 if (!is_null($tmp = @mysqli_options($link, "s", 'extra_my.cnf'))) 49 printf("[004] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 52 printf("[005] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 68 $tmp = mysqli_fetch_assoc($res); [all …]
|
H A D | mysqli_pam_sha256.phpt | 11 $tmp = ob_get_contents(); 13 if (!stristr($tmp, "auth_plugin_sha256_password"))
|
H A D | mysqli_pam_sha256_public_key_option.phpt | 11 $tmp = ob_get_contents(); 13 if (!stristr($tmp, "auth_plugin_sha256_password"))
|
H A D | mysqli_pam_sha256_public_key_option_invalid.phpt | 11 $tmp = ob_get_contents(); 13 if (!stristr($tmp, "auth_plugin_sha256_password"))
|
H A D | mysqli_pconn_conn_multiple.phpt | 27 printf("[003] Expecting boolean/true got %s/%s\n", gettype($tmp), $tmp); 30 printf("[004] Expecting int/any got %s/%s\n", gettype($tmp), $tmp); 52 printf("[009] Expecting boolean/true got %s/%s\n", gettype($tmp), $tmp); 55 printf("[010] Expecting int/any got %s/%s\n", gettype($tmp), $tmp); 70 printf("[013] Expecting NULL got %s/%s\n", gettype($tmp), $tmp); 77 printf("[015] Expecting NULL got %s/%s\n", gettype($tmp), $tmp); 89 printf("[018] Expecting boolean/true got %s/%s\n", gettype($tmp), $tmp); 92 printf("[019] Expecting int/any got %s/%s\n", gettype($tmp), $tmp); 117 printf("[025] Expecting int/any got %s/%s\n", gettype($tmp), $tmp); 132 printf("[028] Expecting NULL got %s/%s\n", gettype($tmp), $tmp); [all …]
|
H A D | mysqli_pconn_twice.phpt | 23 if (true !== ($tmp = my_mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket))) 24 printf("[003] Expecting boolean/true got %s/%s\n", gettype($tmp), $tmp); 42 if (true !== ($tmp = $link->real_connect($host, $user, $passwd, $db, $port, $socket))) 43 printf("[009] Expecting boolean/true got %s/%s\n", gettype($tmp), $tmp); 56 if (NULL !== ($tmp = $link->connect($host, $user, $passwd, $db, $port, $socket))) 57 printf("[013] Expecting NULL got %s/%s\n", gettype($tmp), $tmp); 63 if (NULL !== ($tmp = $link->connect($host, $user, $passwd, $db, $port, $socket))) 64 printf("[015] Expecting NULL got %s/%s\n", gettype($tmp), $tmp);
|
H A D | mysqli_ping.phpt | 13 $tmp = NULL; 16 if (!is_null($tmp = @mysqli_ping())) 17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 21 if (!is_null($tmp = @mysqli_ping($link, $link))) 22 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 37 if (!is_null($tmp = mysqli_ping($link))) 38 printf("[005] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
|
H A D | mysqli_poll.phpt | 28 if (NULL !== ($tmp = @mysqli_poll())) 29 printf("[002] Expecting NULL got %s\n", var_export($tmp, true)); 32 if (NULL !== ($tmp = @mysqli_poll($l))) 36 if (NULL !== ($tmp = @mysqli_poll($l, $n))) 40 if (NULL !== ($tmp = @mysqli_poll($l, $n, $n))) 44 if (NULL !== ($tmp = @mysqli_poll($l, $e, $r, -1))) 45 printf("[007] Expecting boolean/false got %s/%s\n", gettype($tmp), var_export($tmp, true)); 48 if (NULL !== ($tmp = @mysqli_poll($l, $e, $r, 0, -1))) 49 printf("[008] Expecting boolean/false got %s/%s\n", gettype($tmp), var_export($tmp, true)); 53 printf("[009] Expecting int/0 got %s/%s\n", gettype($tmp), var_export($tmp, true)); [all …]
|
H A D | mysqli_poll_kill.phpt | 28 …if (true !== ($tmp = mysqli_query($link, "SELECT 1 AS 'processed before killed'", MYSQLI_ASYNC | … 29 printf("[002] Expecting boolean/true got %s/%s\n", gettype($tmp), var_export($tmp, true)); 41 if (1 !== ($tmp = (mysqli_poll($links, $errors, $reject, 0, 10000)))) 42 printf("[003] Expecting int/1 got %s/%s\n", gettype($tmp), var_export($tmp, true)); 68 if (0 !== ($tmp = mysqli_poll($links, $errors, $reject, 1))) 70 gettype($tmp), var_export($tmp, true)); 84 if (true !== ($tmp = mysqli_query($link, "SELECT 1", MYSQLI_ASYNC | MYSQLI_USE_RESULT))) 85 printf("[011] Expecting boolean/true got %s/%s\n", gettype($tmp), var_export($tmp, true)); 140 printf("[015] Expecting boolean/false got %s/%s\n", gettype($tmp), var_export($tmp, true)); 146 if (0 !== ($tmp = (mysqli_poll($links, $errors, $reject, 0, 10000)))) [all …]
|
H A D | mysqli_poll_mixing_insert_select.phpt | 55 if (true !== ($tmp = mysqli_query($link, $queries[$i], MYSQLI_ASYNC | MYSQLI_USE_RESULT))) 56 printf("[002] Expecting true got %s/%s\n", gettype($tmp), var_export($tmp, true)); 121 printf("[005] Expecting true got %s/%s\n", gettype($tmp), var_export($tmp, true)); 123 printf("[006] Expecting true got %s/%s\n", gettype($tmp), var_export($tmp, true));
|
H A D | mysqli_prepare.phpt | 13 $tmp = NULL; 16 if (!is_null($tmp = @mysqli_prepare())) 17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 19 if (!is_null($tmp = @mysqli_prepare($link))) 20 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 24 if (false !== ($tmp = @mysqli_prepare($link, false))) 25 printf("[003] Expecting boolean/false, got %s\n", gettype($tmp)); 30 if (false !== ($tmp = mysqli_prepare($link, 'SELECT id FROM test WHERE id > ?'))) 110 printf("[023] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 114 if (!is_null($tmp = @mysqli_stmt_prepare($link, 'SELECT id FROM test'))) [all …]
|
H A D | mysqli_prepare_no_object.phpt | 13 if (false !== ($tmp = mysqli_prepare($link, false))) 14 …] Expecting boolean/false, got %s/%s\n", gettype($tmp), (is_object($tmp) ? var_dump($tmp, true) : … 17 if (false !== ($tmp = mysqli_prepare($link, ''))) 18 …] Expecting boolean/false, got %s/%s\n", gettype($tmp), (is_object($tmp) ? var_dump($tmp, true) : … 27 if (false !== ($tmp = $mysqli->prepare(false))) 28 …] Expecting boolean/false, got %s/%s\n", gettype($tmp), (is_object($tmp) ? var_dump($tmp, true) : … 31 if (false !== ($tmp = $mysqli->prepare(''))) 32 …] Expecting boolean/false, got %s/%s\n", gettype($tmp), (is_object($tmp) ? var_dump($tmp, true) : …
|
H A D | mysqli_more_results.phpt | 19 $tmp = NULL; 22 if (!is_null($tmp = @mysqli_more_results())) 23 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 25 if (!is_null($tmp = @mysqli_more_results($link))) 26 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 51 $tmp = ob_get_contents(); 56 … $tmp = trim(preg_replace('@Strict Standards: mysqli_next_result\(\).*on line \d+@ism', '', $tmp)); 58 print trim($tmp) . "\n"; 83 $tmp = ob_get_contents(); 88 … $tmp = trim(preg_replace('@Strict Standards: mysqli_next_result\(\).*on line \d+@ism', '', $tmp)); [all …]
|
H A D | mysqli_next_result.phpt | 19 $tmp = NULL; 23 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 26 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 34 printf("[003] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp); 37 $tmp = ob_get_contents(); 44 print trim($tmp) . "\n"; 50 printf("[004] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp); 53 $tmp = ob_get_contents(); 60 print trim($tmp) . "\n"; 82 $tmp = ob_get_contents(); [all …]
|