/PHP-7.0/ext/mysqli/tests/ |
H A D | mysqli_connect.phpt | 13 $tmp = NULL; 24 printf("[001] Expecting NULL got %s/%s\n", gettype($tmp), $tmp); 27 if (($anon_allow && gettype($tmp) != "object") || (!$anon_allow && $tmp != false)) { 28 printf("[002] Expecting %s, got %s/%s\n", $exptype, gettype($tmp), $tmp); 32 if (($anon_allow && gettype($tmp) != "object") || (!$anon_allow && $tmp != false)) { 33 printf("[003] Expecting %s, got %s/%s\n", $exptype, gettype($tmp), $tmp); 38 printf("[004] Expecting %s, got %s/%s\n", $exptype, gettype($tmp), $tmp); 43 printf("[005] Expecting %s, got %s/%s\n", $exptype, gettype($tmp), $tmp); 48 printf("[006] Expecting %s, got %s/%s\n", $exptype, gettype($tmp), $tmp); 53 printf("[007] Expecting %s, got %s/%s\n", $exptype, gettype($tmp), $tmp); [all …]
|
H A D | mysqli_real_escape_string_nobackslash.phpt | 17 if ('\\' !== ($tmp = mysqli_real_escape_string($link, '\\'))) 18 printf("[002] Expecting \\, got %s\n", $tmp); 20 if ('"' !== ($tmp = mysqli_real_escape_string($link, '"'))) 21 printf("[003] Expecting \", got %s\n", $tmp); 23 if ("''" !== ($tmp = mysqli_real_escape_string($link, "'"))) 24 printf("[004] Expecting '', got %s\n", $tmp); 26 if ("\n" !== ($tmp = mysqli_real_escape_string($link, "\n"))) 27 printf("[005] Expecting \\n, got %s\n", $tmp); 29 if ("\r" !== ($tmp = mysqli_real_escape_string($link, "\r"))) 30 printf("[006] Expecting \\r, got %s\n", $tmp); [all …]
|
H A D | mysqli_store_result.phpt | 13 $tmp = NULL; 16 if (!is_null($tmp = @mysqli_store_result())) 17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 19 if (!is_null($tmp = @mysqli_store_result($link))) 20 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 31 if (true !== ($tmp = mysqli_data_seek($res, 2))) 33 gettype($tmp), $tmp, mysqli_errno($link), mysqli_error($link)); 47 if (false !== ($tmp = mysqli_data_seek($res, 1))) 49 gettype($tmp), $tmp); 53 if (NULL !== ($tmp = mysqli_store_result($link))) [all …]
|
H A D | mysqli_set_charset.phpt | 21 !($tmp = mysqli_fetch_assoc($res))) { 31 $tmp['server_version'])); 55 $tmp = NULL; 59 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 62 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 65 printf("[003] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 71 $tmp = mysqli_fetch_assoc($res); 96 $tmp = mysqli_fetch_assoc($res); 98 if ($new_charset !== $tmp['charset']) 105 …if ('ucs2' == $tmp['Charset'] || 'utf16' == $tmp['Charset'] || 'utf32' == $tmp['Charset'] || 'utf1… [all …]
|
H A D | mysqli_begin_transaction.phpt | 20 $tmp = NULL; 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 printf("[003] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 37 printf("[005] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 40 printf("[006] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 43 printf("[007] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 52 printf("[010] Cannot turn on autocommit, expecting true, got %s/%s\n", gettype($tmp), $tmp); 61 $tmp = mysqli_rollback($link); 62 if ($tmp !== true) [all …]
|
H A D | mysqli_get_charset.phpt | 15 $tmp = NULL; 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); 31 $tmp = mysqli_fetch_assoc($res); 42 $tmp = mysqli_fetch_assoc($res); 50 if (empty($tmp)) 53 $maxlen = (isset($tmp['Maxlen'])) ? $tmp['Maxlen'] : ''; 54 $comment = (isset($tmp['Description'])) ? $tmp['Description'] : ''; 60 if (!($id = $tmp['Id'])) [all …]
|
H A D | mysqli_stmt_send_long_data.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); 28 printf("[004] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 61 $tmp = ''; 64 $tmp .= 'a'; 69 $blob .= $tmp; 81 gettype($tmp), $tmp, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 85 gettype($tmp), $tmp, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 89 gettype($tmp), $tmp, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); [all …]
|
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_stmt_init.phpt | 18 $tmp = NULL; 21 if (!is_null($tmp = @mysqli_stmt_init())) 22 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 24 if (!is_null($tmp = @mysqli_stmt_init($link))) 25 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 37 if (NULL !== ($tmp = mysqli_stmt_init($stmt))) 38 printf("[004] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 42 if (NULL !== ($tmp = mysqli_stmt_init($link))) 43 printf("[005] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
|
H A D | mysqli_use_result.phpt | 13 $tmp = NULL; 16 if (!is_null($tmp = @mysqli_use_result())) 17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 19 if (!is_null($tmp = @mysqli_use_result($link))) 20 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 31 if (false !== ($tmp = mysqli_data_seek($res, 2))) 33 gettype($tmp), $tmp, mysqli_errno($link), mysqli_error($link)); 47 if (false !== ($tmp = mysqli_data_seek($res, 1))) 49 gettype($tmp), $tmp); 53 if (NULL !== ($tmp = mysqli_use_result($link))) [all …]
|
H A D | mysqli_set_opt.phpt | 13 $tmp = NULL; 16 if (!is_null($tmp = @mysqli_set_opt())) 17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 19 if (!is_null($tmp = @mysqli_set_opt($link))) 20 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 24 if (!is_null($tmp = @mysqli_set_opt($link, MYSQLI_OPT_CONNECT_TIMEOUT))) 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); 30 if (!is_null($tmp = @mysqli_set_opt($link, MYSQLI_INIT_COMMAND, 'SET AUTOCOMMIT=0', 'foo'))) [all …]
|
H A D | mysqli_get_server_info.phpt | 13 if (!is_null($tmp = @mysqli_get_server_info())) 14 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 16 if (!is_null($tmp = @mysqli_get_server_info(NULL))) 17 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 23 if (!is_null($tmp = @mysqli_get_server_info('too', 'many arguments'))) 24 printf("[005] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
|
H A D | mysqli_get_proto_info.phpt | 13 if (!is_null($tmp = @mysqli_get_proto_info())) 14 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 16 if (!is_null($tmp = @mysqli_get_proto_info(NULL))) 17 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 23 if (!is_null($tmp = @mysqli_get_proto_info('too many', 'arguments'))) 24 printf("[004] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
|
H A D | mysqli_stmt_store_result.phpt | 13 $tmp = NULL; 16 if (!is_null($tmp = @mysqli_stmt_store_result())) 17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 19 if (!is_null($tmp = @mysqli_stmt_store_result($link))) 20 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 25 printf("[003] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 31 if (NULL !== ($tmp = @mysqli_stmt_store_result($stmt))) 32 printf("[005] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 38 if (true !== ($tmp = @mysqli_stmt_store_result($stmt))) 39 printf("[007] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); [all …]
|
H A D | 065.phpt | 27 $tmp = null; 31 if (3 !== ($tmp = strlen($mysql->real_escape_string($esc_str)))) 32 printf("[003] Expecting 3/int got %s/%s\n", gettype($tmp), $tmp); 34 if ('latin1' !== ($tmp = $mysql->character_set_name())) 35 printf("[004] Expecting latin1/string got %s/%s\n", gettype($tmp), $tmp); 43 if (2 !== ($tmp = strlen($mysql->real_escape_string($esc_str)))) 44 printf("[005] Expecting 2/int got %s/%s\n", gettype($tmp), $tmp); 46 if ('gbk' !== ($tmp = $mysql->character_set_name())) 47 printf("[005] Expecting gbk/string got %s/%s\n", gettype($tmp), $tmp);;
|
/PHP-7.0/ext/standard/tests/file/ |
H A D | readlink_realpath_basic2.phpt | 32 "$file_path/readlink_realpath_basic2/home/readlink_realpath_basic2.tmp", 33 "$file_path/readlink_realpath_basic2/readlink_realpath_basic2.tmp", 35 "$file_path/readlink_realpath_basic2/home//../././readlink_realpath_basic2.tmp", 40 "$file_path/readlink_realpath_basic2/readlink_realpath_basic2.tmp/" 56 unlink("$name_prefix/home/test/readlink_realpath_basic2.tmp"); 57 unlink("$name_prefix/home/readlink_realpath_basic2.tmp"); 58 unlink("$name_prefix/readlink_realpath_basic2.tmp"); 67 string(%d) "%s/readlink_realpath_basic2/home/readlink_realpath_basic2.tmp" 70 string(%d) "%s/readlink_realpath_basic2/readlink_realpath_basic2.tmp" 73 string(%d) "%s/readlink_realpath_basic2/home/test/readlink_realpath_basic2.tmp" [all …]
|
H A D | fopen_variation15-win32.phpt | 24 $file = "fopen_variation15.tmp"; 108 --- READ: file://fopen15.tmpDir\fopen_variation15.tmp --- 113 --- WRITE: file://fopen15.tmpDir\fopen_variation15.tmp --- 118 --- READ: file://fopen15.tmpDir/fopen_variation15.tmp --- 123 --- WRITE: file://fopen15.tmpDir/fopen_variation15.tmp --- 128 --- READ: file://./fopen15.tmpDir/fopen_variation15.tmp --- 133 --- WRITE: file://./fopen15.tmpDir/fopen_variation15.tmp --- 138 --- READ: file://.\fopen15.tmpDir\fopen_variation15.tmp --- 143 --- WRITE: file://.\fopen15.tmpDir\fopen_variation15.tmp --- 148 --- READ: file://%s/fopen15.tmpDir/fopen_variation15.tmp --- [all …]
|
H A D | copy_variation2.phpt | 31 "@copy_variation2.tmp", 32 "#copy_variation2.tmp", 33 "+copy_variation2.tmp", 34 "*copy_variation2.tmp", 35 "?copy_variation2.tmp", 36 "<copy_variation2.tmp", 37 ">copy_variation2.tmp", 38 "!copy_variation2.tmp", 39 "©_variation2.tmp", 40 "(copy_variation2.tmp", [all …]
|
H A D | realpath_basic-win32.phpt | 31 "$file_path/realpath_basic/home/realpath_basic.tmp", 32 "$file_path/realpath_basic/realpath_basic.tmp/", 33 "$file_path/realpath_basic//home/test//../test/./realpath_basic.tmp", 34 "$file_path/realpath_basic/home//../././realpath_basic.tmp//", 37 b"$file_path/realpath_basic/home/realpath_basic.tmp", 57 unlink("$name_prefix/home/test/realpath_basic.tmp"); 58 unlink("$name_prefix/home/realpath_basic.tmp"); 59 unlink("$name_prefix/realpath_basic.tmp"); 70 string(%d) "%s\realpath_basic\home\realpath_basic.tmp" 76 string(%d) "%s\realpath_basic\home\test\realpath_basic.tmp" [all …]
|
H A D | copy_variation2-win32.phpt | 31 "@copy_variation2.tmp", 32 "#copy_variation2.tmp", 33 "+copy_variation2.tmp", 34 "?copy_variation2.tmp", 35 ">copy_variation2.tmp", 36 "!copy_variation2.tmp", 37 "©_variation2.tmp", 38 "(copy_variation2.tmp", 39 ":copy_variation2.tmp", 40 ";copy_variation2.tmp", [all …]
|
/PHP-7.0/ext/date/tests/ |
H A D | date.phpt | 5 $tmp = "cr"; 8 for($a = 0;$a < strlen($tmp); $a++){ 9 echo $tmp[$a], ': ', date($tmp[$a], 1043324459)."\n"; 14 for($a = 0;$a < strlen($tmp); $a++){ 15 echo $tmp[$a], ': ', date($tmp[$a], 1043324459)."\n";
|
/PHP-7.0/ext/pdo_mysql/tests/ |
H A D | pdo_mysql_last_insert_id.phpt | 16 if ('0' !== ($tmp = $db->lastInsertId())) 18 var_export($tmp, true), gettype($tmp)); 22 var_export($tmp, true), gettype($tmp)); 25 if ('0' !== ($tmp = $db->lastInsertId())) 26 printf("[003] Expecting '0'/string got '%s'/%s", var_export($tmp, true), gettype($tmp)); 30 printf("[004] Expecting '0'/string got '%s'/%s", var_export($tmp, true), gettype($tmp)); 34 printf("[005] Expecting '0'/string got '%s'/%s", var_export($tmp, true), gettype($tmp)); 39 printf("[006] Expecting '0'/string got '%s'/%s", var_export($tmp, true), gettype($tmp)); 43 printf("[006] Expecting '0'/string got '%s'/%s", var_export($tmp, true), gettype($tmp)); 48 printf("[007] Expecting '0'/string got '%s'/%s", var_export($tmp, true), gettype($tmp)); [all …]
|
/PHP-7.0/ext/standard/tests/streams/ |
H A D | stream_copy_to_stream_socket.phpt | 12 $tmp = tmpfile(); 16 stream_copy_to_stream($sockets[1], $tmp); 18 fseek($tmp, 0, SEEK_SET); 19 var_dump(stream_get_contents($tmp)); 21 stream_copy_to_stream($sockets[1], $tmp); 23 fseek($tmp, 0, SEEK_SET); 24 var_dump(stream_get_contents($tmp));
|
/PHP-7.0/ext/soap/ |
H A D | php_http.c | 98 zval *tmp; in http_context_headers() local 102 Z_TYPE_P(tmp) == IS_STRING && Z_STRLEN_P(tmp)) { in http_context_headers() 186 Z_TYPE_P(tmp) == IS_LONG && Z_LVAL_P(tmp) > 0) { in http_connect() 349 zval *trace, *tmp; in make_http_soap_request() local 439 …if (Z_TYPE_P(tmp) != IS_STRING || !is_numeric_string(Z_STRVAL_P(tmp), Z_STRLEN_P(tmp), &redirect_m… in make_http_soap_request() 588 (Z_TYPE_P(tmp) == IS_FALSE || (Z_TYPE_P(tmp) == IS_LONG && Z_LVAL_P(tmp) == 0)))) { in make_http_soap_request() 915 char *tmp; in make_http_soap_request() local 923 tmp++; in make_http_soap_request() 926 tmp = strstr(tmp," "); in make_http_soap_request() 928 tmp++; in make_http_soap_request() [all …]
|
/PHP-7.0/main/ |
H A D | reentrancy.c | 178 struct tm *tmp; in php_localtime_r() local 183 if (tmp) { in php_localtime_r() 185 tmp = p_tm; in php_localtime_r() 190 return tmp; in php_localtime_r() 199 char *tmp; in php_ctime_r() local 204 strcpy(buf, tmp); in php_ctime_r() 217 char *tmp; in php_asctime_r() local 235 struct tm *tmp; in php_gmtime_r() local 240 if (tmp) { in php_gmtime_r() 242 tmp = p_tm; in php_gmtime_r() [all …]
|