/PHP-5.4/ext/mysqli/tests/ |
H A D | mysqli_get_warnings.phpt | 16 $tmp = NULL; 20 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 23 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 26 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 33 …] Expecting boolean/false, got %s/%s\n", gettype($tmp), (is_object($tmp) ? var_dump($tmp, true) : … 46 …ing object/mysqli_warning, got %s/%s\n", gettype($tmp), (is_object($tmp) ? var_dump($tmp, true) : … 66 printf("[014] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 75 …ing object/mysqli_warning, got %s/%s\n", gettype($tmp), (is_object($tmp) ? var_dump($tmp, true) : … 79 printf("[018] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 82 printf("[020] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp); [all …]
|
H A D | mysqli_info.phpt | 14 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 17 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 24 if (!is_string($tmp = mysqli_info($link)) || ('' != $tmp)) 25 printf("[004] Expecting string/empty, got %s/%s\n", gettype($tmp), $tmp); 30 if (!is_string($tmp = mysqli_info($link)) || ('' == $tmp)) 39 if (!is_string($tmp = mysqli_info($link)) || ('' == $tmp)) 45 if (!is_string($tmp = mysqli_info($link)) || ('' == $tmp)) 51 if (!is_string($tmp = mysqli_info($link)) || ('' == $tmp)) 57 if (!is_string($tmp = mysqli_info($link)) || ('' != $tmp)) 58 printf("[014] Expecting string/empty, got %s/%s\n", gettype($tmp), $tmp); [all …]
|
H A D | mysqli_insert_id.phpt | 13 $tmp = NULL; 16 if (!is_null($tmp = @mysqli_insert_id())) 17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 20 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 24 if (0 !== ($tmp = mysqli_insert_id($link))) 25 printf("[003] Expecting int/0, got %s/%s\n", gettype($tmp), $tmp); 30 if (0 !== ($tmp = mysqli_insert_id($link))) 31 printf("[005] Expecting int/0, got %s/%s\n", gettype($tmp), $tmp); 39 printf("[007] Expecting int/0, got %s/%s\n", gettype($tmp), $tmp); 119 printf("[021] Expecting int/1000, got %s/%s\n", gettype($tmp), $tmp); [all …]
|
H A D | mysqli_kill.phpt | 13 $tmp = NULL; 16 if (!is_null($tmp = @mysqli_kill())) 17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 19 if (!is_null($tmp = @mysqli_kill($link))) 20 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 26 printf("[003] Expecting boolean/any, got %s/%s\n", gettype($tmp), $tmp); 31 $tmp = mysqli_kill($link, $thread_id); 32 if (!is_bool($tmp)) 33 printf("[005] Expecting boolean/any, got %s/%s\n", gettype($tmp), $tmp); 63 (!$tmp = mysqli_fetch_assoc($res))) { [all …]
|
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_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_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 …]
|
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_fields.phpt | 13 $tmp = NULL; 16 if (!is_null($tmp = @mysqli_num_fields())) 17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 19 if (!is_null($tmp = @mysqli_num_fields($link))) 20 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 31 if ($expected !== ($tmp = mysqli_num_fields($res))) 34 gettype($tmp), $tmp); 38 if ($test_free && (NULL !== ($tmp = mysqli_num_fields($res)))) 39 printf("[%03d] Expecting NULL, got %s/%s\n", $offset + 2, 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_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_poll_reference.phpt | 184 $tmp = ob_get_contents(); 186 if ($tmp != '') { 187 printf("Expected error:\n%s\n", $tmp);
|
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_query.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); 25 printf("[002a] Expecting boolean/false got %s/%s\n", gettype($tmp), $tmp); 28 printf("[003] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 49 var_dump($tmp[""]); 63 if (!is_array($tmp) || empty($tmp) || !isset($tmp['p_version']) || ('' == $tmp['p_version'])) { 65 var_dump($tmp); 78 if (!is_array($tmp) || empty($tmp) || !isset($tmp['f_version']) || ('' == $tmp['f_version'])) { 80 var_dump($tmp); [all …]
|
H A D | mysqli_query_iterators.phpt | 13 $tmp = NULL;
|
H A D | mysqli_query_unicode.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); 31 printf("[002.5] Expecting TRUE, got %s/%s\n", gettype($tmp), $tmp); 34 printf("[003] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 37 printf("[004] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp); 62 if (!is_array($tmp) || empty($tmp) || !isset($tmp['п_версия']) || ('' == $tmp['п_версия'])) { 64 var_dump($tmp); 77 if (!is_array($tmp) || empty($tmp) || !isset($tmp['ф_версия']) || ('' == $tmp['ф_версия'])) { 79 var_dump($tmp); [all …]
|
H A D | mysqli_real_connect.phpt | 13 $tmp = NULL; 17 printf("[001a] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 20 printf("[001b] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 23 printf("[001c] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 26 printf("[001d] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 29 printf("[001e] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 32 printf("[001f] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 35 printf("[001g] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 39 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 153 var_dump($tmp); [all …]
|
H A D | mysqli_real_connect_pconn.phpt | 31 …if (false !== ($tmp = mysqli_real_connect($link, $host, $user . 'unknown_really', $passwd . 'non_e… 32 …er=%s, passwd=***non_empty, dbname=%s, port=%s, socket=%s\n", gettype($tmp), $tmp, $host, $user . … 126 $tmp = mysqli_fetch_assoc($res); 127 if ($tmp['testing'] !== 'mysqli.default_host (persistent)') { 130 var_dump($tmp); 144 if (NULL === ($tmp = mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket))) 145 printf("[026] Expecting not NULL, got %s/%s\n", gettype($tmp), $tmp);
|