Home
last modified time | relevance | path

Searched refs:gettype (Results 1 – 25 of 238) sorted by relevance

12345678910

/php-src/Zend/tests/
H A D017.phpt11 var_dump(gettype(get_loaded_extensions()));
13 var_dump(gettype(get_loaded_extensions(true)));
18 var_dump(gettype(get_defined_constants(true)));
19 var_dump(gettype(get_defined_constants()));
25 var_dump(gettype(get_defined_functions()));
28 var_dump(gettype(get_declared_interfaces()));
32 var_dump(gettype(get_extension_funcs("standard")));
34 var_dump(gettype(get_extension_funcs("zend")));
H A Dbug62653.phpt6 $foo = "10.0000"; // gettype($foo) = "string"
7 $foo /= 2; //Makes $foo = 5 but still gettype($foo) = "double"
18 $foo /= 2; //Makes $foo = 5 but still gettype($foo) = "double"
/php-src/ext/mysqli/tests/
H A Dmysqli_class_mysqli_interface.phpt174 $mysqli->errno, gettype($mysqli->errno),
175 mysqli_errno($link), gettype(mysqli_errno($link)));
179 $mysqli->error, gettype($mysqli->error),
180 mysqli_error($link), gettype(mysqli_error($link)));
192 $mysqli->insert_id, gettype($mysqli->insert_id),
197 $mysqli->sqlstate, gettype($mysqli->sqlstate),
202 $mysqli->host_info, gettype($mysqli->host_info),
208 $mysqli->info, gettype($mysqli->info),
209 mysqli_info($link), gettype(mysqli_info($link)));
212 assert(gettype($mysqli->thread_id) == gettype(mysqli_thread_id($link)));
[all …]
H A Dmysqli_stmt_get_result_metadata.phpt58 printf("[009] %s/%s !== %s/%s\n", gettype($tmp1), $tmp1, gettype($tmp2), $tmp2);
63 printf("[010] %s/%s !== %s/%s\n", gettype($tmp1), $tmp1, gettype($tmp2), $tmp2);
66 printf("[011] %s/%s !== %s/%s\n", gettype($tmp1), $tmp1, gettype($tmp2), $tmp2);
70 printf("[012] %s/%s !== %s/%s\n", gettype($tmp1), $tmp1, gettype($tmp2), $tmp2);
95 …$k, gettype($info->name), $info->name, gettype($fields['meta'][$k]->name), $fields['meta'][$k]->na…
103 …$k, gettype($info->table), $info->table, gettype($fields['meta'][$k]->table), $fields['meta'][$k]-…
111 … $k, gettype($info->def), $info->def, gettype($fields['meta'][$k]->def), $fields['meta'][$k]->def);
127 …$k, gettype($info->flags), $info->flags, gettype($fields['meta'][$k]->flags), $fields['meta'][$k]-…
131 …$k, gettype($info->type), $info->type, gettype($fields['meta'][$k]->type), $fields['meta'][$k]->ty…
176 gettype($pos), $pos, gettype($tmp), $tmp);
[all …]
H A Dmysqli_explain_metadata.phpt26 $field_names[$name] = gettype($value);
34 $num_rows, gettype($tmp), $tmp);
38 $num_fields, gettype($tmp), $tmp);
43 $num_fields, gettype($tmp), $tmp);
73 $num_rows, gettype($tmp), $tmp);
77 $num_fields, gettype($tmp), $tmp);
81 $num_fields, gettype($tmp), $tmp);
85 $num_fields, gettype($tmp), $tmp);
90 $num_fields, gettype($tmp), $tmp);
106 $num_rows, gettype($tmp), $tmp);
[all …]
H A Dmysqli_stmt_affected_rows.phpt30 printf("[005] Expecting int/0, got %s/'%s'\n", gettype($tmp), $tmp);
47 printf("[008] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp);
59 printf("[010] Expecting int/0, got %s/%s\n", gettype($tmp), $tmp);
69 printf("[012] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp);
79 printf("[014] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp);
89 printf("[016] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp);
115 printf("[021] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp);
125 printf("[023] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp);
135 printf("[025] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp);
142 printf("[027] Expecting int/0, got %s/%s\n", gettype($tmp), $tmp);
[all …]
H A Dmysqli_affected_rows.phpt19 gettype($tmp), $tmp, mysqli_errno($link), mysqli_error($link));
31 printf("[010] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp);
36 printf("[011] Expecting int/-1, got %s/%s\n", gettype($tmp), $tmp);
42 printf("[013] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp);
48 printf("[015] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp);
55 printf("[017] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp);
61 printf("[019] Expecting int/4, got %s/%s\n", gettype($tmp), $tmp);
67 printf("[021] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp);
73 printf("[023] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp);
79 printf("[025] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp);
[all …]
H A Dmysqli_affected_rows_oo.phpt23 printf("[002] Expecting int/0, got %s/%s\n", gettype($tmp), $tmp);
35 printf("[006] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp);
40 printf("[007] Expecting int/-1, got %s/%s\n", gettype($tmp), $tmp);
46 printf("[009] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp);
52 printf("[011] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp);
59 printf("[013] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp);
65 printf("[015] Expecting int/4, got %s/%s\n", gettype($tmp), $tmp);
71 printf("[016] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp);
77 printf("[018] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp);
83 printf("[020] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp);
[all …]
H A Dmysqli_get_warnings.phpt19 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("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
62 printf("[013] Expecting int/not 0, got %s/%s\n", gettype($warning->errno), $warning->errno);
65 printf("[014] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp);
78 printf("[018] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp);
81 printf("[020] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp);
97 printf("[025] Expecting string, got %s/%s", gettype($warning->message), $warning->message);
107 printf("[028] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp);
110 printf("[029] Expecting string/empty, got %s/%s\n", gettype($tmp), $tmp);
[all …]
H A Dmysqli_connect.phpt18 $anon_allow = (gettype($tmp) == "object");
23 if (($anon_allow && gettype($tmp) != "object") || (!$anon_allow && $tmp != false)) {
24 printf("[002] Expecting %s, got %s/%s\n", $exptype, gettype($tmp), $tmp);
28 if (($anon_allow && gettype($tmp) != "object") || (!$anon_allow && $tmp != false)) {
29 printf("[003] Expecting %s, got %s/%s\n", $exptype, gettype($tmp), $tmp);
33 if (($anon_allow && gettype($tmp) != "object") || (!$anon_allow && $tmp != false)) {
34 printf("[004] Expecting %s, got %s/%s\n", $exptype, gettype($tmp), $tmp);
39 printf("[005] Expecting %s, got %s/%s\n", $exptype, gettype($tmp), $tmp);
44 printf("[006] Expecting %s, got %s/%s\n", $exptype, gettype($tmp), $tmp);
49 printf("[007] Expecting %s, got %s/%s\n", $exptype, gettype($tmp), $tmp);
[all …]
H A Dbug35517.phpt22 if ((gettype($id) !== 'int') && (gettype($id) != 'integer'))
23 … printf("[001] Expecting integer on 64bit got %s/%s\n", gettype($id), var_export($id, true));
25 if (gettype($id) !== 'string') {
26 … printf("[002] Expecting string on 32bit got %s/%s\n", gettype($id), var_export($id, true));
H A Dmysqli_stmt_get_result_seek.phpt24 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
28 printf("[005] Expecting 3 rows, got %s/%s rows\n", gettype($res->num_rows), $res->num_rows);
31 …printf("[006] Expecting 2 fields, got %s/%s rows\n", gettype($res->field_count), $res->field_count…
34 …printf("[006] Expecting offset 0, got %s/%s rows\n", gettype($res->current_field), $res->current_f…
68 printf("[012] Expecting boolean/false got %s/%s\n", gettype($tmp), $tmp);
77 printf("[015] Expecting boolan/true got %s/%s\n", gettype($tmp), $tmp);
81 $pos + 1, $pos, gettype($row[0]), $row[0]);
84 printf("[014] Expecting boolan/false got %s/%s\n", gettype($tmp), $tmp);
92 printf("[015] Expecting boolan/true got %s/%s\n", gettype($tmp), $tmp);
95 printf("[016] Expecting array got %s/%s\n", gettype($tmp), $tmp);
H A Dmysqli_stmt_bind_param_references.phpt31 $offset, gettype($id), $id,
32 gettype($row['id']), $row['id']
39 $offset, gettype($label), $label,
40 gettype($row['label']), $row['label']
65 printf("[002] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp);
76 printf("[005] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp);
87 printf("[007] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp);
98 printf("[010] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp);
106 printf("[013] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp);
116 printf("[015] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp);
[all …]
H A Dmysqli_get_charset.phpt49 printf("[015] Expecting object/std_class, got %s/%s\n", gettype($charset), $charset);
52 !in_array(gettype($charset->charset), array("string", "unicode")) ||
54 …printf("[016] Expecting string/%s, got %s/%s\n", $character_set_connection, gettype($charset->char…
56 !in_array(gettype($charset->collation), array("string", "unicode")) ||
58 …printf("[017] Expecting string/%s, got %s/%s\n", $collation_connection, gettype($charset->collatio…
62 …printf("[019] Expecting string - ideally %s*, got %s/%s\n", $character_sets_dir, gettype($charset-…
69 gettype($charset->min_length), $charset->min_length);
74 … printf("[021] Expecting int/%d, got %s/%s\n", $id, gettype($charset->number), $charset->number);
78 printf("[022] Expecting int/any, got %s/%s\n", gettype($charset->state), $charset->state);
H A Dmysqli_stmt_error.phpt18 printf("[004] Expecting int/0, got %s/%s\n", gettype($tmp), $tmp);
25 printf("[006] Expecting string/any non empty, got %s/%s\n", gettype($tmp), $tmp);
32 printf("[008] Expecting empty string, got %s/%s\n", gettype($tmp), $tmp);
37 printf("[009] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp);
41 printf("[010] Expecting string/any non empty, got %s/%s\n", gettype($tmp), $tmp);
H A Dmysqli_stmt_errno.phpt18 printf("[004] Expecting int/0, got %s/%s\n", gettype($tmp), $tmp);
25 printf("[006] Expecting int/any non zero, got %s/%s\n", gettype($tmp), $tmp);
32 printf("[008] Expecting zero, got %s/%s\n", gettype($tmp), $tmp);
37 printf("[009] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp);
41 printf("[010] Expecting int/any non zero, got %s/%s\n", gettype($tmp), $tmp);
H A Dmysqli_stmt_field_count.phpt33 printf("[007] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp);
38 printf("[009] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp);
43 printf("[011] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp);
49 printf("[013] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp);
60 printf("[015] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp);
65 printf("[017] Expecting int/0, got %s/%s\n", gettype($tmp), $tmp);
72 printf("[019] Expecting int/0, got %s/%s\n", gettype($tmp), $tmp);
H A Dmysqli_stmt_result_metadata.phpt26 printf("[006] Expecting object, got %s/%s\n", gettype($tmp), $tmp);
30 gettype($tmp), $tmp, mysqli_errno($link), mysqli_error($link));
34 gettype($field0_fetch), $field0_fetch, mysqli_errno($link), mysqli_error($link));
38 gettype($field0_direct), $field0_direct, mysqli_errno($link), mysqli_error($link));
50 gettype($tmp), $tmp, mysqli_errno($link), mysqli_error($link));
62 gettype($field1_direct), $field1_direct, mysqli_errno($link), mysqli_error($link));
72 gettype($tmp), $tmp, mysqli_errno($link), mysqli_error($link));
H A Dmysqli_stmt_get_result.phpt42 printf("[009] non-object, got %s/%s\n", gettype($tmp), var_export($tmp, 1));
67 printf("[016] NULL, got %s/%s\n", gettype($tmp), var_export($tmp, 1));
86 printf("[020] Expecting false, got %s/%s\n", gettype($tmp), var_export($tmp, 1));
92 printf("[024] Expecting object, got %s/%s\n", gettype($tmp), var_export($tmp, 1));
95 printf("[025] false, got %s/%s\n", gettype($tmp), var_export($tmp, 1));
100 printf("[028] Expecting boolean/true, got %s/%s\n", gettype($tmp), var_export($tmp, 1));
104 printf("[029] false, got %s/%s\n", gettype($tmp), var_export($tmp, 1));
138 printf("[037] Expecting boolean/true, got %s/%s\n", gettype($tmp), var_export($tmp, 1));
142 gettype($tmp), var_export($tmp, 1),
147 gettype($tmp), $tmp, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
[all …]
/php-src/ext/standard/tests/general_functions/
H A Dgettype_settype_error.phpt2 Test gettype() & settype() functions : error conditions
5 /* Test different error conditions of settype() and gettype() functions */
7 echo "**** Testing gettype() and settype() functions ****\n";
21 **** Testing gettype() and settype() functions ****
H A Dgetrusage.phpt8 var_dump(gettype(getrusage()));
9 var_dump(gettype(getrusage(1)));
10 var_dump(gettype(getrusage(-1)));
/php-src/ext/dba/tests/
H A Dbug65708.phpt20 echo gettype($key)."\n";
21 echo gettype($copy)."\n";
25 echo gettype($key)."\n";
26 echo gettype($copy)."\n";
/php-src/ext/pdo_mysql/tests/
H A Dpdo_mysql_stmt_bindcolumn.phpt38 var_export($id, true), gettype($id),
39 var_export($label, true), gettype($label));
48 var_export($data[$index]['id'], true), gettype($data[$index]['id']),
49 var_export($row['id'], true), gettype($row['id']));
53 var_export($data[$index]['label'], true), gettype($data[$index]['label']),
54 var_export($row['label'], true), gettype($row['label']));
78 var_export($id, true), gettype($id),
79 var_export($label, true), gettype($label));
88 var_export($data[$index]['id'], true), gettype($data[$index]['id']),
89 var_export($row['id'], true), gettype($row['id']));
[all …]
/php-src/ext/snmp/tests/
H A Dsnmpwalk.phpt24 var_dump(gettype($return));
26 var_dump(gettype($return[0]));
27 var_dump(gettype($return[1]));
31 var_dump(gettype($return));
32 var_dump(gettype($return[0]));
36 var_dump(gettype($return));
37 var_dump(gettype($return[0]));
H A Dsnmp2_walk.phpt24 var_dump(gettype($return));
26 var_dump(gettype($return[0]));
27 var_dump(gettype($return[1]));
31 var_dump(gettype($return));
32 var_dump(gettype($return[0]));
36 var_dump(gettype($return));
37 var_dump(gettype($return[0]));

Completed in 37 milliseconds

12345678910