/PHP-5.5/ext/mysql/tests/ |
H A D | mysql_num_rows.phpt | 12 $tmp = NULL; 15 if (!is_null($tmp = @mysql_num_rows())) 16 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 18 if (NULL !== ($tmp = @mysql_num_rows($link))) 19 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 30 if ($expected !== ($tmp = mysql_num_rows($res))) 33 gettype($tmp), $tmp); 37 if ($test_free && (false !== ($tmp = mysql_num_rows($res)))) 38 printf("[%03d] Expecting boolean/false, got %s/%s\n", $offset + 2, gettype($tmp), $tmp);
|
H A D | mysql_drop_db.phpt | 13 $tmp = NULL; 18 if (NULL !== ($tmp = mysql_drop_db())) 19 printf("[001] Expecting NULL/NULL, got %s/%s\n", gettype($tmp), $tmp); 28 if (true !== ($tmp = mysql_drop_db('mysqldropdb', $link))) 30 gettype($tmp), $tmp, 33 if (false !== ($tmp = mysql_drop_db('mysqldropdb', $link))) 35 gettype($tmp), $tmp,
|
H A D | mysql_client_encoding.phpt | 12 $tmp = NULL; 27 $tmp = mysql_fetch_assoc($res); 29 $version = explode('.', $tmp['server_version']); 38 $tmp = mysql_fetch_assoc($res); 40 if (!$tmp['charset']) 43 if ($link_enc !== $tmp['charset']) { 44 if ($link_enc === $tmp['collation']) { 49 var_dump($tmp); 64 if (false !== ($tmp = @mysql_client_encoding($link))) 65 printf("[012] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp);
|
H A D | mysql_errno.phpt | 12 $tmp = NULL; 15 if (false !== ($tmp = @mysql_errno())) 16 printf("[001] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp); 18 if (null !== ($tmp = @mysql_errno($link))) 19 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 21 if (!is_null($tmp = @mysql_errno($link, 'too many args'))) 22 printf("[002b] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
|
/PHP-5.5/ext/mysqli/tests/ |
H A D | mysqli_sqlstate.phpt | 13 $tmp = NULL; 16 if (!is_null($tmp = @mysqli_sqlstate())) 17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 19 if (!is_null($tmp = @mysqli_sqlstate($link))) 20 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
|
H A D | mysqli_embedded_connect.phpt | 12 $tmp = NULL; 15 if (NULL !== ($tmp = @mysqli_embedded_connect())) 16 printf("[001] Expecting NULL/NULL, got %s/%s\n", gettype($tmp), $tmp); 23 if (!is_bool($tmp = mysqli_embedded_connect($db . '_unknown'))) 24 printf("[003] Expecting boolean/[true|false] value, got %s/%s\n", gettype($tmp), $tmp);
|
H A D | mysqli_get_server_version.phpt | 13 if (!is_null($tmp = @mysqli_get_server_version())) 14 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 16 if (!is_null($tmp = @mysqli_get_server_version(NULL))) 17 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
|
H A D | mysqli_connect_twice.phpt | 20 if (true !== ($tmp = my_mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket))) 21 printf("[003] Expecting boolean/true got %s/%s\n", gettype($tmp), $tmp); 24 printf("[004] Expecting int/any got %s/%s\n", gettype($tmp), $tmp); 45 if (true !== ($tmp = $link->real_connect($host, $user, $passwd, $db, $port, $socket))) 46 printf("[009] Expecting boolean/true got %s/%s\n", gettype($tmp), $tmp); 49 printf("[010] Expecting int/any got %s/%s\n", gettype($tmp), $tmp); 63 if (NULL !== ($tmp = $link->connect($host, $user, $passwd, $db, $port, $socket))) 64 printf("[013] Expecting NULL got %s/%s\n", gettype($tmp), $tmp); 70 if (NULL !== ($tmp = $link->connect($host, $user, $passwd, $db, $port, $socket))) 71 printf("[015] Expecting NULL got %s/%s\n", gettype($tmp), $tmp);
|
H A D | mysqli_stmt_bind_result_references.phpt | 25 printf("[002] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 42 printf("[004] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 62 printf("[006] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 81 printf("[008] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 95 printf("[010] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 110 printf("[012] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 128 printf("[012] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 145 printf("[012] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 166 printf("[014] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 185 printf("[016] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); [all …]
|
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_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_fetch_row.phpt | 13 $tmp = NULL; 16 if (!is_null($tmp = @mysqli_fetch_row())) 17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 19 if (!is_null($tmp = @mysqli_fetch_row($link))) 20 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
|
H A D | mysqli_fetch_field.phpt | 13 $tmp = NULL; 17 if (!is_null($tmp = @mysqli_fetch_field())) 18 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 21 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 37 $tmp = mysqli_fetch_field($res); 38 var_dump($tmp); 41 $tmp = mysqli_fetch_field($res); 42 var_dump($tmp); 51 if ($tmp->db != $db) { 53 $db, $tmp->db); [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_stmt_num_rows.phpt | 13 $tmp = NULL; 16 if (!is_null($tmp = @mysqli_stmt_num_rows())) 17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 19 if (!is_null($tmp = @mysqli_stmt_num_rows($link))) 20 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 44 if ($expected !== ($tmp = mysqli_stmt_num_rows($stmt))) 47 gettype($tmp), $tmp); 80 if (0 !== ($tmp = mysqli_stmt_num_rows($stmt))) 81 printf("[53 - %03d] Expecting int/0, got %s/%s\n", $i, gettype($tmp), $tmp); 96 printf("[54] Expecting int/7, 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 …]
|
/PHP-5.5/ext/spl/tests/ |
H A D | bug68557.phpt | 5 mkdir(__DIR__ . DIRECTORY_SEPARATOR . 'tmp'); 6 touch(__DIR__ . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR . 'a'); 7 touch(__DIR__ . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR . 'b'); 9 $d = new DirectoryIterator(__DIR__ . DIRECTORY_SEPARATOR . 'tmp'); 34 unlink(__DIR__ . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR . 'a'); 35 unlink(__DIR__ . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR . 'b'); 36 rmdir(__DIR__ . DIRECTORY_SEPARATOR . 'tmp');
|
/PHP-5.5/ext/standard/tests/file/ |
H A D | fseek_dir_basic.phpt | 54 string(9) "file1.tmp" 56 string(9) "file2.tmp" 58 string(9) "file3.tmp" 72 string(9) "file1.tmp" 74 string(9) "file2.tmp" 76 string(9) "file3.tmp" 90 string(9) "file1.tmp" 92 string(9) "file2.tmp" 94 string(9) "file3.tmp"
|
H A D | is_file_error.phpt | 15 $file_handle = fopen($file_path."/is_file_error.tmp", "w"); 16 var_dump( is_file( $file_path."/is_file_error.tmp", $file_path."/is_file_error1.tmp") ); 19 var_dump( is_file($file_path."/is_file_error1.tmp") ); 32 if(file_exists($file_path."/is_file_error.tmp")) { 33 unlink($file_path."/is_file_error.tmp"); 35 if(file_exists($file_path."/is_file_error1.tmp")) { 36 unlink($file_path."/is_file_error1.tmp");
|
H A D | is_file_variation4.phpt | 17 $file_handle = fopen($dir_name."/is_file_variation4.tmp", "w"); 21 "/is_file_variation4/is_file_variation4.tmp", 24 "/is_file_variation4/is_file_variation4.tmp/", 27 "/is_file_variation4//is_file_variation4.tmp", 28 "//is_file_variation4//is_file_variation4.tmp", 29 "/is_file_variation4/*.tmp", 30 "is_file_variation4/is_file*.tmp", 33 "/is_file_variation4/is_file_variation4.tmp".chr(0), 34 "/is_file_variation4/is_file_variation4.tmp\0" 52 unlink($dir_name."/is_file_variation4.tmp");
|
H A D | file_variation.phpt | 18 $fh = fopen($file_path."/file_variation.tmp", "w"); 32 var_dump( file("file1_variation.tmp", FILE_USE_INCLUDE_PATH) ); 33 var_dump( file($file_path1."/file1_variation.tmp", 1) ); 36 $file_handle = fopen($file_path."/file2_variation.tmp", "w"); 39 $out_array = file($file_path."/file2_variation.tmp"); 43 $file_handle2 = fopen($file_path."/file3_variation.tmp", "w"); 50 var_dump( file($file_path."/file3_variation.tmp" )); 60 unlink($file_path."/file_variation.tmp"); 61 unlink($file_path."/file_variation/file1_variation.tmp"); 62 unlink($file_path."/file2_variation.tmp"); [all …]
|
/PHP-5.5/ext/pdo_mysql/tests/ |
H A D | pdo_mysql_pconnect.phpt | 23 $tmp = $stmt->fetch(PDO::FETCH_ASSOC); 24 if ($tmp['_pers'] !== '1') 28 $tmp = $stmt->fetch(PDO::FETCH_ASSOC); 29 $con1 = $tmp['_con1']; 32 $tmp = $stmt->fetch(PDO::FETCH_ASSOC); 33 $con2 = $tmp['_con2']; 41 $tmp = $stmt->fetch(PDO::FETCH_ASSOC); 42 $con1 = $tmp['_con1']; 58 if (!strstr($tmp, '2006')) 65 $con1 = $tmp['_con1']; [all …]
|
H A D | pdo_mysql_commit.phpt | 19 if (true !== ($tmp = $db->beginTransaction())) { 20 printf("[001] Expecting true, got %s/%s\n", gettype($tmp), $tmp); 26 if (true !== ($tmp = $db->commit())) { 33 if (1 !== ($tmp = $db->getAttribute(PDO::ATTR_AUTOCOMMIT))) 35 gettype($tmp), var_export($tmp, true)); 37 if (true !== ($tmp = $db->beginTransaction())) 38 printf("[004] Expecting true, got %s/%s\n", gettype($tmp), $tmp); 42 if (true !== ($tmp = $db->commit())) 59 if (true !== ($tmp = $db->beginTransaction())) 60 printf("[007] Expecting true, got %s/%s\n", gettype($tmp), $tmp); [all …]
|
H A D | pdo_mysql_exec.phpt | 81 if (count($tmp) > 1 || !isset($tmp[0]['p_version'])) { 83 var_dump($tmp); 90 if (count($tmp) > 1 || !isset($tmp[0]['_version'])) { 92 var_dump($tmp); 97 $tmp[0]['_version'], gettype($tmp[0]['_version'])); 119 if (count($tmp) > 1 || !isset($tmp[0]['f_version'])) { 121 var_dump($tmp); 127 if (count($tmp) > 1 || !isset($tmp[0]['_version'])) { 129 var_dump($tmp); 134 $tmp[0]['_version'], gettype($tmp[0]['_version'])); [all …]
|
/PHP-5.5/ext/standard/tests/streams/ |
H A D | stream_get_meta_data_file_variation1.phpt | 49 string(%i) "%s.tmp" 69 string(%i) "%s.tmp" 89 string(%i) "%s.tmp" 109 string(%i) "%s.tmp" 129 string(%i) "%s.tmp" 149 string(%i) "%s.tmp" 169 string(%i) "%s.tmp" 189 string(%i) "%s.tmp" 209 string(%i) "%s.tmp" 229 string(%i) "%s.tmp" [all …]
|