Home
last modified time | relevance | path

Searched refs:mysqli (Results 1 – 25 of 244) sorted by relevance

12345678910

/PHP-5.5/ext/mysqli/tests/
H A Dmysqli_class_mysqli_properties_no_conn.phpt37 @$mysqli->client_info, gettype(@$mysqli->client_info),
45 assert(@mysqli_errno($mysqli) === @$mysqli->errno);
47 @$mysqli->errno, gettype(@$mysqli->errno),
51 assert(@mysqli_error($mysqli) === @$mysqli->error);
53 @$mysqli->error, gettype(@$mysqli->error),
63 @$mysqli->insert_id, gettype(@$mysqli->insert_id),
68 @$mysqli->sqlstate, gettype(@$mysqli->sqlstate),
73 @$mysqli->host_info, gettype(@$mysqli->host_info),
77 assert(@mysqli_info($mysqli) == @$mysqli->info);
79 @$mysqli->info, gettype(@$mysqli->info),
[all …]
H A Dmysqli_connect_oo_defaults.phpt2 new mysqli()
35 printf("[001] [%d] %s\n", $mysqli->errno, $mysqli->error);
44 $mysqli->close();
58 printf("[003] [%d] %s\n", $mysqli->errno, $mysqli->error);
62 $mysqli->close();
76 printf("[005] [%d] %s\n", $mysqli->errno, $mysqli->error);
80 $mysqli->close();
94 printf("[007] [%d] %s\n", $mysqli->errno, $mysqli->error);
98 $mysqli->close();
112 printf("[009] [%d] %s\n", $mysqli->errno, $mysqli->error);
[all …]
H A Dmysqli_connect_oo.phpt2 new mysqli()
22 if (false !== $mysqli)
30 $mysqli->close();
37 $mysqli->close();
44 $mysqli->close();
51 $mysqli->close();
70 if (!is_object($mysqli = new mysqli())) {
100 $mysqli = new mysqli($host, $user, $passwd, $db, $port);
109 $mysqli = new mysqli($host, $user, $passwd, $db);
118 $mysqli = new mysqli($host, $user);
[all …]
H A Dmysqli_class_mysqli_interface.phpt13 $mysqli = new mysqli($host, $user, $passwd, $db, $port, $socket);
173 $mysqli->client_info, gettype($mysqli->client_info),
183 $mysqli->errno, gettype($mysqli->errno),
188 $mysqli->error, gettype($mysqli->error),
198 $mysqli->field_count, gettype($mysqli->field_count),
203 $mysqli->insert_id, gettype($mysqli->insert_id),
208 $mysqli->sqlstate, gettype($mysqli->sqlstate),
213 $mysqli->stat, gettype($mysqli->stat),
218 $mysqli->host_info, gettype($mysqli->host_info),
224 $mysqli->info, gettype($mysqli->info),
[all …]
H A Dmysqli_affected_rows_oo.phpt2 mysqli->affected_rows
13 $mysqli = new mysqli();
26 printf("[003] [%d] %s\n", $mysqli->errno, $mysqli->error);
29 printf("[004] [%d] %s\n", $mysqli->errno, $mysqli->error);
32 printf("[005] [%d] %s\n", $mysqli->errno, $mysqli->error);
43 printf("[008] [%d] %s\n", $mysqli->errno, $mysqli->error);
49 printf("[010] [%d] %s\n", $mysqli->errno, $mysqli->error);
55 printf("[012] [%d] %s\n", $mysqli->errno, $mysqli->error);
62 printf("[014] [%d] %s\n", $mysqli->errno, $mysqli->error);
68 printf("[015] [%d] %s\n", $mysqli->errno, $mysqli->error);
[all …]
H A Dmysqli_autocommit_oo.phpt2 mysqli->autocommit()
32 printf("[003] [%d] %s\n", $mysqli->errno, $mysqli->error);
35 printf("[004] [%d] %s\n", $mysqli->errno, $mysqli->error);
46 printf("[007] [%d] %s\n", $mysqli->errno, $mysqli->error);
53 printf("[009] [%d] %s\n", $mysqli->errno, $mysqli->error);
60 printf("[011] [%d] %s\n", $mysqli->errno, $mysqli->error);
63 printf("[012] [%d] %s\n", $mysqli->errno, $mysqli->error);
66 printf("[013] [%d] %s\n", $mysqli->errno, $mysqli->error);
70 $tmp['num'], $mysqli->errno, $mysqli->error);
75 printf("[015] [%d] %s\n", $mysqli->errno, $mysqli->error);
[all …]
H A Dmysqli_fetch_array_oo.phpt2 mysqli->fetch_array()
22 printf("[004] [%d] %s\n", $mysqli->errno, $mysqli->error);
43 printf("[010] Cannot run query, [%d] %s\n", $mysqli->errno, $$mysqli->error);
51 $mysqli->errno, $$mysqli->error);
62 gettype($tmp), $tmp, $mysqli->errno, $mysqli->error);
67 gettype($tmp), $tmp, $mysqli->errno, $mysqli->error);
74 printf("[%04d] [%d] %s\n", $offset, $mysqli->errno, $mysqli->error);
85 printf("[%04d] [%d] %s\n", $offset + 1, $mysqli->errno, $mysqli->error);
103 printf("[%04d] [%d] %s\n", $offset + 2, $mysqli->errno, $mysqli->error);
108 printf("[%04d] [%d] %s\n", $offset + 3, $mysqli->errno, $mysqli->error);
[all …]
H A Dmysqli_commit_oo.phpt23 $mysqli = new mysqli();
42 printf("[004] [%d] %s\n", $mysqli->errno, $mysqli->error);
50 printf("[006] [%d] %s\n", $mysqli->errno, $mysqli->error);
59 printf("[008] [%d] %s\n", $mysqli->errno, $mysqli->error);
62 printf("[009] [%d] %s\n", $mysqli->errno, $mysqli->error);
72 printf("[011] [%d] %s\n", $mysqli->errno, $mysqli->error);
76 printf("[012] [%d] %s\n", $mysqli->errno, $mysqli->error);
79 printf("[013] [%d] %s\n", $mysqli->errno, $mysqli->error);
82 printf("[014] [%d] %s\n", $mysqli->errno, $mysqli->error);
85 printf("[015] [%d] %s\n", $mysqli->errno, $mysqli->error);
[all …]
H A Dmysqli_connect_oo_warnings.phpt2 new mysqli()
21 if (!is_object($mysqli = new mysqli($myhost)) || ('mysqli' !== get_class($mysqli)))
22 …01] Expecting NULL, got %s/%s\n", gettype($mysqli), (is_object($mysqli)) ? var_export($mysqli, tru…
25 if (!is_object($mysqli = @new mysqli($myhost)) || ('mysqli' !== get_class($mysqli)))
26 …02] Expecting NULL, got %s/%s\n", gettype($mysqli), (is_object($mysqli)) ? var_export($mysqli, tru…
47 Warning: mysqli::mysqli(): (HY000/200%d): %s
H A Dmysqli_error_oo.phpt2 $mysqli->error
16 $mysqli = new mysqli();
17 if ('' !== ($tmp = @$mysqli->error))
20 if (!$mysqli = new mysqli($host, $user, $passwd, $db, $port, $socket))
24 $tmp = $mysqli->error;
26 …xpecting string/empty, got %s/%s. [%d] %s\n", gettype($tmp), $tmp, $mysqli->errno, $mysqli->error);
29 printf("[004] Failed to drop old test table: [%d] %s\n", $mysqli->errno, $mysqli->error);
32 $mysqli->query('SELECT * FROM test');
33 $tmp = $mysqli->error;
37 $mysqli->close();
[all …]
H A Dmysqli_errno_oo.phpt2 $mysqli->errno
16 $mysqli = new mysqli();
17 if (0 !== ($tmp = @$mysqli->errno))
20 if (!$mysqli = new mysqli($host, $user, $passwd, $db, $port, $socket))
24 var_dump($mysqli->errno);
27 printf("[003] Failed to drop old test table: [%d] %s\n", $mysqli->errno, $mysqli->error);
31 var_dump($mysqli->errno);
33 @$mysqli->query('No SQL');
34 if (($tmp = $mysqli->errno) === 0)
37 $mysqli->close();
[all …]
H A Dmysqli_phpinfo.phpt2 phpinfo() mysqli section
20 if (!stristr($phpinfo, "mysqli support"))
26 if (!stristr($phpinfo, "mysqli.default_host"))
29 if (!stristr($phpinfo, "mysqli.default_port"))
32 if (!stristr($phpinfo, "mysqli.default_pw"))
35 if (!stristr($phpinfo, "mysqli.default_socket"))
38 if (!stristr($phpinfo, "mysqli.default_user"))
41 if (!stristr($phpinfo, "mysqli.max_links"))
44 if (!stristr($phpinfo, "mysqli.reconnect"))
61 'mysqli.allow_local_infile',
[all …]
H A Dmysqli_dump_debug_info_oo.phpt16 if (!$mysqli = new mysqli($host, $user, $passwd, $db, $port, $socket))
19 if (NULL !== ($tmp = @$mysqli->dump_debug_info($link)))
22 if (!is_bool($tmp = $mysqli->dump_debug_info()))
25 $mysqli->errno, $mysqli->error);
27 $mysqli->close();
29 if (NULL !== ($tmp = $mysqli->dump_debug_info()))
32 $mysqli->errno, $mysqli->error);
37 Warning: mysqli::dump_debug_info(): Couldn't fetch mysqli in %s on line %d
H A Dbug42548.phpt19 $mysqli = mysqli_init();
20 $mysqli->real_connect($host, $user, $passwd, $db, $port, $socket);
26 $mysqli->query("DROP PROCEDURE IF EXISTS p1") or die($mysqli->error);
27 $mysqli->query("CREATE PROCEDURE p1() BEGIN SELECT 23; SELECT 42; END") or die($mysqli->error);
29 if ($mysqli->multi_query("CALL p1();"))
33 if ($objResult = $mysqli->store_result()) {
38 if ($mysqli->more_results()) {
44 } while ($mysqli->more_results() && $mysqli->next_result());
46 print $mysqli->error;
49 $mysqli->query("DROP PROCEDURE p1") or die($mysqli->error);
[all …]
H A Dmysqli_change_user_oo.phpt2 mysqli->change_user()
25 if (!is_null($tmp = @$mysqli->change_user()))
28 if (!is_null($tmp = @$mysqli->change_user($link)))
31 if (!is_null($tmp = @$mysqli->change_user($link, $link)))
51 if (!$mysqli->query('SET @mysqli_change_user_test_var=1'))
52 printf("[009] Failed to set test variable: [%d] %s\n", $mysqli->errno, $mysqli->error);
55 printf("[010] [%d] %s\n", $mysqli->errno, $mysqli->error);
61 if (true !== ($tmp = $mysqli->change_user($user, $passwd, $db)))
65 printf("[013] [%d] %s\n", $mysqli->errno, $mysqli->error);
75 printf("[016] [%d] %s\n", $mysqli->errno, $mysqli->error);
[all …]
H A Dbug36949.phpt2 Bug #36949 (invalid internal mysqli objects dtor)
13 private $mysqli;
17 $this->mysqli = new mysqli($host, $user, $passwd, $db, $port, $socket);
18 $result = $this->mysqli->query("SELECT NOW() AS my_time FROM DUAL");
25 $this->mysqli->close();
31 private $mysqli;
35 $this->mysqli = new mysqli($host, $user, $passwd, $db, $port, $socket);
36 $result = $this->mysqli->query("SELECT NOW() AS my_time FROM DUAL");
43 $this->mysqli->close();
H A Dmysqli_connect.phpt70 ini_set('mysqli.default_socket', $socket);
81 ini_set('mysqli.default_port', $port);
92 ini_set('mysqli.default_pw', $passwd);
103 ini_set('mysqli.default_user', $user);
114 ini_set('mysqli.default_host', $host);
142 ini_set('mysqli.default_host', 'p:');
159 %unicode|string%(19) "mysqli.default_port"
163 %unicode|string%(17) "mysqli.default_pw"
167 %unicode|string%(19) "mysqli.default_user"
169 %unicode|string%(19) "mysqli.default_user"
[all …]
H A Dmysqli_character_set_name_oo.phpt17 if (!$mysqli = new my_mysqli($host, $user, $passwd, $db, $port, $socket))
21 if (!is_null($tmp = @$mysqli->character_set_name($link)))
24 if (!$res = $mysqli->query('SELECT version() AS server_version'))
25 printf("[003] [%d] %s\n", $mysqli->errno, $mysqli->error);
35 …if (!$res = $mysqli->query('SELECT @@character_set_connection AS charset, @@collation_connection A…
36 printf("[008] [%d] %s\n", $mysqli->errno, $mysqli->error);
42 $charset = $mysqli->character_set_name();
52 $charset2 = $mysqli->character_set_name();
58 $mysqli->close();
60 if (NULL !== ($tmp = @$mysqli->character_set_name()))
[all …]
H A Dbug66762.phpt2 Bug #66762 mysqli@libmysql segfault in mysqli_stmt::bind_result() when link closed
12 $mysqli = new mysqli($host, $user, $passwd, $db);
14 $read_stmt = $mysqli->prepare("SELECT 1");
18 unset($mysqli);
H A Dmysqli_max_links.phpt2 Testing mysqli.max_links
10 mysqli.max_links=1
19 var_dump((int)ini_get('mysqli.max_links'));
57 Warning: mysqli_query() expects parameter 1 to be mysqli, boolean given in %s on line %d
59 Warning: mysqli_close() expects parameter 1 to be mysqli, boolean given in %s on line %d
61 Warning: mysqli_query() expects parameter 1 to be mysqli, boolean given in %s on line %d
63 Warning: mysqli_close() expects parameter 1 to be mysqli, boolean given in %s on line %d
65 Warning: mysqli_query() expects parameter 1 to be mysqli, boolean given in %s on line %d
67 Warning: mysqli_close() expects parameter 1 to be mysqli, boolean given in %s on line %d
69 Warning: mysqli_query() expects parameter 1 to be mysqli, boolean given in %s on line %d
[all …]
H A D074.phpt13 $mysqli = new my_mysqli($host, $user, $passwd, $db, $port, $socket);
15 var_dump($mysqli->autocommit(false));
16 $result = $mysqli->query("SELECT @@autocommit");
19 var_dump($mysqli->autocommit(true));
20 $result = $mysqli->query("SELECT @@autocommit");
H A Dbug46109.phpt12 $mysqli = new mysqli();
13 $mysqli->init();
14 $mysqli->init();
H A Dmysqli_constants_categories.phpt2 Constants exported by ext/mysqli - checking category - PHP bug not mysqli bug (check from time to t…
14 if (stristr($name, 'mysqli')) {
15 if ('mysqli' != $group)
16 printf("found constant '%s' in group '%s'. expecting group 'mysqli'\n", $name, $group);
H A Dmysqli_fetch_object_oo.phpt17 $mysqli = new mysqli();
18 $res = @new mysqli_result($mysqli);
23 if (!$mysqli = new my_mysqli($host, $user, $passwd, $db, $port, $socket))
28 printf("[003] [%d] %s\n", $mysqli->errno, $mysqli->error);
42 printf("[007] Object seems wrong. [%d] %s\n", $mysqli->errno, $mysqli->error);
58 printf("[008] Object seems wrong. [%d] %s\n", $mysqli->errno, $mysqli->error);
74 printf("[009] Object seems wrong. [%d] %s\n", $mysqli->errno, $mysqli->error);
80 printf("[010] Object seems wrong. [%d] %s\n", $mysqli->errno, $mysqli->error);
86 printf("[011] Object seems wrong. [%d] %s\n", $mysqli->errno, $mysqli->error);
96 printf("[012] [%d] %s\n", $mysqli->errno, $mysqli->error);
[all …]
/PHP-5.5/ext/mysqli/
H A Dconfig.w324 // Note: The extension name is "mysqli", you enable it with "--with-mysqli".
9 ARG_WITH("mysqli", "MySQLi support", "no");
13 "mysqli.c " +
26 EXTENSION("mysqli", mysqli_source);
29 ADD_EXTENSION_DEP('mysqli', 'mysqlnd', true);
31 PHP_INSTALL_HEADERS("ext/mysqli", "php_mysqli_structs.h");
33 if (CHECK_LIB("libmysql.lib", "mysqli", PHP_MYSQLI) &&
37 EXTENSION("mysqli", mysqli_source);
40 PHP_INSTALL_HEADERS("ext/mysqli", "php_mysqli_structs.h");
42 WARNING("mysqli not enabled; libraries and headers not found");

Completed in 81 milliseconds

12345678910