Lines Matching refs:mysqli
2 Interface of the class mysqli
13 function dump_properties($mysqli) {
16 $variables = array_keys(get_class_vars(get_class($mysqli)));
19 printf("%s = '%s'\n", $var, var_export(@$mysqli->$var, true));
23 $variables = array_keys(get_object_vars($mysqli));
25 printf("%s = '%s'\n", $var, var_export(@$mysqli->$var, true));
30 assert(@mysqli_affected_rows($mysqli) === @$mysqli->affected_rows);
31 printf("mysqli->affected_rows = '%s'/%s ('%s'/%s)\n",
32 @$mysqli->affected_rows, gettype(@$mysqli->affected_rows),
33 @mysqli_affected_rows($mysqli), gettype(@mysqli_affected_rows($mysqli)));
35 assert(@mysqli_get_client_info() === @$mysqli->client_info);
36 printf("mysqli->client_info = '%s'/%s ('%s'/%s)\n",
37 @$mysqli->client_info, gettype(@$mysqli->client_info),
40 assert(@mysqli_get_client_version() === @$mysqli->client_version);
41 printf("mysqli->client_version = '%s'/%s ('%s'/%s)\n",
42 @$mysqli->client_version, gettype(@$mysqli->client_version),
45 assert(@mysqli_errno($mysqli) === @$mysqli->errno);
46 printf("mysqli->errno = '%s'/%s ('%s'/%s)\n",
47 @$mysqli->errno, gettype(@$mysqli->errno),
49 @mysqli_errno($mysqli), gettype(@mysqli_errno($mysqli)));
51 assert(@mysqli_error($mysqli) === @$mysqli->error);
52 printf("mysqli->error = '%s'/%s ('%s'/%s)\n",
53 @$mysqli->error, gettype(@$mysqli->error),
54 @mysqli_error($mysqli), gettype(@mysqli_error($mysqli)));
56 assert(@mysqli_field_count($mysqli) === @$mysqli->field_count);
57 printf("mysqli->field_count = '%s'/%s ('%s'/%s)\n",
58 @$mysqli->field_count, gettype(@$mysqli->field_count),
59 @mysqli_field_count($mysqli), gettype(@mysqli_field_count($mysqli)));
61 assert(@mysqli_insert_id($mysqli) === @$mysqli->insert_id);
62 printf("mysqli->insert_id = '%s'/%s ('%s'/%s)\n",
63 @$mysqli->insert_id, gettype(@$mysqli->insert_id),
64 @mysqli_insert_id($mysqli), gettype(@mysqli_insert_id($mysqli)));
66 assert(@mysqli_sqlstate($mysqli) === @$mysqli->sqlstate);
67 printf("mysqli->sqlstate = '%s'/%s ('%s'/%s)\n",
68 @$mysqli->sqlstate, gettype(@$mysqli->sqlstate),
69 @mysqli_sqlstate($mysqli), gettype(@mysqli_sqlstate($mysqli)));
71 assert(@mysqli_stat($mysqli) === @$mysqli->sstat);
72 printf("mysqli->stat = '%s'/%s ('%s'/%s)\n",
73 @$mysqli->stat, gettype(@$mysqli->stat),
74 @mysqli_stat($mysqli), gettype(@mysqli_stat($mysqli)));
76 assert(@mysqli_get_host_info($mysqli) === @$mysqli->host_info);
77 printf("mysqli->host_info = '%s'/%s ('%s'/%s)\n",
78 @$mysqli->host_info, gettype(@$mysqli->host_info),
79 @mysqli_get_host_info($mysqli), gettype(@mysqli_get_host_info($mysqli)));
82 assert(@mysqli_info($mysqli) == @$mysqli->info);
83 printf("mysqli->info = '%s'/%s ('%s'/%s)\n",
84 @$mysqli->info, gettype(@$mysqli->info),
85 @mysqli_info($mysqli), gettype(@mysqli_info($mysqli)));
87 assert(@mysqli_thread_id($mysqli) > @$mysqli->thread_id);
88 assert(gettype(@$mysqli->thread_id) == gettype(@mysqli_thread_id($mysqli)));
89 printf("mysqli->thread_id = '%s'/%s ('%s'/%s)\n",
90 @$mysqli->thread_id, gettype(@$mysqli->thread_id),
91 @mysqli_thread_id($mysqli), gettype(@mysqli_thread_id($mysqli)));
93 assert(@mysqli_get_proto_info($mysqli) === @$mysqli->protocol_version);
94 printf("mysqli->protocol_version = '%s'/%s ('%s'/%s)\n",
95 @$mysqli->protocol_version, gettype(@$mysqli->protocol_version),
96 @mysqli_get_proto_info($mysqli), gettype(@mysqli_get_proto_info($mysqli)));
98 assert(@mysqli_get_server_info($mysqli) === @$mysqli->server_info);
99 printf("mysqli->server_info = '%s'/%s ('%s'/%s)\n",
100 @$mysqli->server_info, gettype(@$mysqli->server_info),
101 @mysqli_get_server_info($mysqli), gettype(@mysqli_get_server_info($mysqli)));
103 assert(@mysqli_get_server_version($mysqli) === @$mysqli->server_version);
104 printf("mysqli->server_version = '%s'/%s ('%s'/%s)\n",
105 @$mysqli->server_version, gettype(@$mysqli->server_version),
106 @mysqli_get_server_version($mysqli), gettype(@mysqli_get_server_version($mysqli)));
108 assert(@mysqli_warning_count($mysqli) === @$mysqli->warning_count);
109 printf("mysqli->warning_count = '%s'/%s ('%s'/%s)\n",
110 @$mysqli->warning_count, gettype(@$mysqli->warning_count),
111 @mysqli_warning_count($mysqli), gettype(@mysqli_warning_count($mysqli)));
114 printf("mysqli->unknown = '%s'\n", @$mysqli->unknown);
116 @$mysqli->unknown = 13;
117 printf("setting mysqli->unknown, @mysqli_unknown = '%s'\n", @$mysqli->unknown);
120 @$mysqli->unknown = $unknown;
121 printf("setting mysqli->unknown, @mysqli_unknown = '%s'\n", @$mysqli->unknown);
124 assert(@mysqli_connect_error() === @$mysqli->connect_error);
125 printf("mysqli->connect_error = '%s'/%s ('%s'/%s)\n",
126 @$mysqli->connect_error, gettype(@$mysqli->connect_error),
129 assert(@mysqli_connect_errno() === @$mysqli->connect_errno);
130 printf("mysqli->connect_errno = '%s'/%s ('%s'/%s)\n",
131 @$mysqli->connect_errno, gettype(@$mysqli->connect_errno),
136 $mysqli = @new mysqli($host, $user, $passwd . "invalid", $db, $port, $socket);
137 dump_properties($mysqli);
140 $mysqli = @new mysqli($host, $user, $passwd . "invalid", $db, $port, $socket);
141 $res = @$mysqli->query("SELECT * FROM test");
142 dump_properties($mysqli);
192 mysqli->affected_rows = ''/NULL (''/NULL)
195 mysqli->client_info = ''/NULL ('%s'/string)
196 mysqli->client_version = '%d'/integer ('%d'/integer)
197 mysqli->errno = ''/NULL (''/NULL)
198 mysqli->error = ''/NULL (''/NULL)
199 mysqli->field_count = ''/NULL (''/NULL)
200 mysqli->insert_id = ''/NULL (''/NULL)
201 mysqli->sqlstate = ''/NULL (''/NULL)
202 mysqli->stat = ''/NULL (''/NULL)
203 mysqli->host_info = ''/NULL (''/NULL)
204 mysqli->info = ''/NULL (''/NULL)
207 mysqli->thread_id = ''/NULL (''/NULL)
208 mysqli->protocol_version = ''/NULL (''/NULL)
209 mysqli->server_info = ''/NULL (''/NULL)
210 mysqli->server_version = ''/NULL (''/NULL)
211 mysqli->warning_count = ''/NULL (''/NULL)
214 mysqli->unknown = ''
215 setting mysqli->unknown, @mysqli_unknown = '13'
216 setting mysqli->unknown, @mysqli_unknown = 'friday'
219 mysqli->connect_error = '%s'/string ('%s'/string)
220 mysqli->connect_errno = '%d'/integer ('%d'/integer)
264 mysqli->affected_rows = ''/NULL (''/NULL)
267 mysqli->client_info = ''/NULL ('%s'/string)
268 mysqli->client_version = '%d'/integer ('%d'/integer)
269 mysqli->errno = ''/NULL (''/NULL)
270 mysqli->error = ''/NULL (''/NULL)
271 mysqli->field_count = ''/NULL (''/NULL)
272 mysqli->insert_id = ''/NULL (''/NULL)
273 mysqli->sqlstate = ''/NULL (''/NULL)
274 mysqli->stat = ''/NULL (''/NULL)
275 mysqli->host_info = ''/NULL (''/NULL)
276 mysqli->info = ''/NULL (''/NULL)
279 mysqli->thread_id = ''/NULL (''/NULL)
280 mysqli->protocol_version = ''/NULL (''/NULL)
281 mysqli->server_info = ''/NULL (''/NULL)
282 mysqli->server_version = ''/NULL (''/NULL)
283 mysqli->warning_count = ''/NULL (''/NULL)
286 mysqli->unknown = ''
287 setting mysqli->unknown, @mysqli_unknown = '13'
288 setting mysqli->unknown, @mysqli_unknown = 'friday'
291 mysqli->connect_error = '%s'/string ('%s'/string)
292 mysqli->connect_errno = '%d'/integer ('%d'/integer)