Home
last modified time | relevance | path

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

123456789

/PHP-7.4/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);
57 if (!$res = $mysqli->query("SELECT 'mysqli.default_port' AS testing"))
58 printf("[003] [%d] %s\n", $mysqli->errno, $mysqli->error);
62 $mysqli->close();
75 if (!$res = $mysqli->query("SELECT 'mysqli.default_pw' AS testing"))
76 printf("[005] [%d] %s\n", $mysqli->errno, $mysqli->error);
93 if (!$res = $mysqli->query("SELECT 'mysqli.default_user' AS testing"))
94 printf("[007] [%d] %s\n", $mysqli->errno, $mysqli->error);
112 printf("[009] [%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_class_mysqli_interface.phpt13 $mysqli = new mysqli($host, $user, $passwd, $db, $port, $socket);
166 $mysqli->client_info, gettype($mysqli->client_info),
176 $mysqli->errno, gettype($mysqli->errno),
181 $mysqli->error, gettype($mysqli->error),
189 $mysqli->field_count, gettype($mysqli->field_count),
194 $mysqli->insert_id, gettype($mysqli->insert_id),
199 $mysqli->sqlstate, gettype($mysqli->sqlstate),
204 $mysqli->host_info, gettype($mysqli->host_info),
210 $mysqli->info, gettype($mysqli->info),
216 $mysqli->thread_id, gettype($mysqli->thread_id),
[all …]
H A Dmysqli_connect_oo.phpt2 new mysqli()
22 if (false !== $mysqli)
30 $mysqli->close();
37 $mysqli->close();
44 $mysqli->close();
55 if (!is_object($mysqli = new mysqli()) || (0 !== mysqli_connect_errno())) {
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_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_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_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"))
50 'mysqli.allow_local_infile',
[all …]
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_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::__construct(): (HY000/200%d): %s
H A Dbug79375.phpt21 function testStmtStoreResult(mysqli $mysqli, string $name) {
26 $stmt = $mysqli->prepare($query);
35 function testStmtGetResult(mysqli $mysqli, string $name) {
49 function testNormalQuery(mysqli $mysqli, string $name) {
61 function testStmtUseResult(mysqli $mysqli, string $name) {
76 function testResultFetchRow(mysqli $mysqli, string $name) {
94 $mysqli->close();
105 $mysqli->close();
116 $mysqli->close();
127 $mysqli->close();
[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 (false !== ($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 Dbug32490.phpt2 Bug #32490 (constructor of mysqli has wrong name)
4 <?php if (!extension_loaded("mysqli")) die("skip mysqli not available"); ?>
7 var_dump(method_exists("mysqli", "mysqli"));
8 var_dump(method_exists("mysqli", "__construct"));
H A Dmysqli_real_connect_compression_error.phpt26 $mysqli = mysqli_init();
27 $result = my_mysqli_real_connect($mysqli, $host, $user, $passwd, $db, $port, $socket);
28 $mysqli->query("DROP TABLE IF EXISTS test");
29 $mysqli->query("CREATE TABLE test (`blob` LONGBLOB NOT NULL) ENGINE=MyISAM");
32 $mysqli->query("INSERT INTO $db.test(`blob`) VALUE ('$data')");
34 var_dump(mysqli_error_list($mysqli));
35 $mysqli->close();
39 $mysqli = mysqli_init();
43 $mysqli->query("INSERT INTO $db.test(`blob`) VALUE ('$data')");
45 var_dump(mysqli_error_list($mysqli));
[all …]
H A Dmysqli_change_user_oo.phpt2 mysqli->change_user()
24 if (!$mysqli = new my_mysqli($host, $user, $passwd, $db, $port, $socket))
38 if (!$mysqli = new my_mysqli($host, $user, $passwd, $db, $port, $socket))
42 if (!$mysqli->query('SET @mysqli_change_user_test_var=1'))
43 printf("[009] Failed to set test variable: [%d] %s\n", $mysqli->errno, $mysqli->error);
46 printf("[010] [%d] %s\n", $mysqli->errno, $mysqli->error);
52 if (true !== ($tmp = $mysqli->change_user($user, $passwd, $db)))
56 printf("[013] [%d] %s\n", $mysqli->errno, $mysqli->error);
66 printf("[016] [%d] %s\n", $mysqli->errno, $mysqli->error);
72 $mysqli->close();
[all …]
H A Dmysqli_next_result_error.phpt15 $mysqli = new mysqli($host, $user, $passwd, $db, $port, $socket);
17 $mysqli->multi_query("SELECT 1; SELECT 2; Syntax Error");
21 if ($res = $mysqli->store_result()) {
25 } while ($mysqli->more_results() && $mysqli->next_result());
30 $mysqli->query("DROP PROCEDURE IF EXISTS p");
31 $mysqli->query('CREATE PROCEDURE p() READS SQL DATA BEGIN SELECT 1; SELECT foobar FROM table_that_d…
33 $stmt = $mysqli->prepare("CALL p()");
47 $mysqli->query("DROP PROCEDURE IF EXISTS p");
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 Dbug77597.phpt12 $mysqli = new my_mysqli($host, $user, $passwd, $db, $port, $socket);
14 $mysqli->query('DROP TABLE IF EXISTS a');
15 $mysqli->query('CREATE TABLE a (b int)');
16 $mysqli->query('INSERT INTO a VALUES (1),(2),(3),(4),(5),(6),(7),(8),(9)');
18 $mysqli->real_query("SELECT * FROM a");
20 $result = $mysqli->store_result(MYSQLI_STORE_RESULT_COPY_DATA);
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);
155 string(21) "mysqli.default_socket"
159 string(19) "mysqli.default_port"
163 string(17) "mysqli.default_pw"
167 string(19) "mysqli.default_user"
169 string(19) "mysqli.default_user"
[all …]
H A Dbug75018.phpt12 $mysqli = new mysqli("$host:$port", $user, $passwd, $db);
16 $mysqli->query($sql);
19 $mysqli->query($sql);
22 $mysqli->query($sql);
24 $mysqli->query($sql);
27 $result = $mysqli->query($sql);
H A Dmysqli_reap_async_query.phpt11 die("skip mysqlnd only feature, compile PHP using --with-mysqli=mysqlnd");
45 foreach ($links as $mysqli) {
47 $res = $mysqli->reap_async_query();
49 $res = mysqli_reap_async_query($mysqli);
53 } else if (mysqli_errno($mysqli) > 0) {
55 $offset, mysqli_errno($mysqli), mysqli_error($mysqli));
61 foreach ($errors as $mysqli)
63 $offset, mysqli_thread_id($mysqli), mysqli_errno($mysqli), mysqli_error($mysqli));
65 foreach ($reject as $mysqli)
67 $offset, mysqli_thread_id($mysqli), mysqli_errno($mysqli), mysqli_error($mysqli));
/PHP-7.4/ext/mysqli/
H A Dconfig.w323 // Note: The extension name is "mysqli", you enable it with "--with-mysqli".
8 ARG_WITH("mysqli", "MySQLi support", "no");
12 "mysqli.c " +
24 EXTENSION("mysqli", mysqli_source, PHP_MYSQLI_SHARED, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
27 ADD_EXTENSION_DEP('mysqli', 'mysqlnd', true);
29 PHP_INSTALL_HEADERS("ext/mysqli", "php_mysqli_structs.h");
31 if (CHECK_LIB("libmysql.lib", "mysqli", PHP_MYSQLI) &&
35 EXTENSION("mysqli", mysqli_source, PHP_MYSQLI_SHARED, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
38 PHP_INSTALL_HEADERS("ext/mysqli", "php_mysqli_structs.h");
40 WARNING("mysqli not enabled; libraries and headers not found");

Completed in 33 milliseconds

123456789