Home
last modified time | relevance | path

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

12345678910>>...20

/PHP-8.1/ext/mysqli/tests/
H A Dmysqli_class_mysqli_properties_no_conn.phpt2 Interface of the class mysqli
4 mysqli
49 … printf("mysqli->client_info = '%s'/%s\n", $mysqli->client_info, gettype($mysqli->client_info));
51 …printf("mysqli->client_version = '%s'/%s\n", $mysqli->client_version, gettype($mysqli->client_vers…
60 $mysqli->errno;
72 $mysqli->error;
199 printf("mysqli->unknown = '%s'\n", @$mysqli->unknown);
211 @$mysqli->connect_error, gettype(@$mysqli->connect_error),
216 @$mysqli->connect_errno, gettype(@$mysqli->connect_errno),
293 mysqli->unknown = ''
[all …]
H A Dmysqli_connect_oo_defaults.phpt2 new mysqli()
4 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);
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_autocommit_oo.phpt2 mysqli->autocommit()
4 mysqli
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);
[all …]
H A Dmysqli_class_mysqli_interface.phpt4 mysqli
13 $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),
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_fetch_array_oo.phpt2 mysqli->fetch_array()
4 mysqli
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);
76 printf("[%04d] [%d] %s\n", $offset, $mysqli->errno, $mysqli->error);
87 printf("[%04d] [%d] %s\n", $offset + 1, $mysqli->errno, $mysqli->error);
98 printf("[%04di] [%d] %s\n", $offset + 1, $mysqli->errno, $mysqli->error);
105 printf("[%04d] [%d] %s\n", $offset + 2, $mysqli->errno, $mysqli->error);
110 printf("[%04d] [%d] %s\n", $offset + 3, $mysqli->errno, $mysqli->error);
[all …]
H A Dmysqli_connect_oo.phpt2 new mysqli()
4 mysqli
22 if (false !== $mysqli)
30 $mysqli->close();
37 $mysqli->close();
55 if (!is_object($mysqli = new mysqli()) || (0 !== mysqli_connect_errno())) {
71 if (!is_object($mysqli = new mysqli())) {
102 $mysqli = new mysqli($host, $user, $passwd, $db, $port);
111 $mysqli = new mysqli($host, $user, $passwd, $db);
120 $mysqli = new mysqli($host, $user);
[all …]
H A Dmysqli_affected_rows_oo.phpt2 mysqli->affected_rows
4 mysqli
13 $mysqli = new mysqli();
29 printf("[003] [%d] %s\n", $mysqli->errno, $mysqli->error);
32 printf("[004] [%d] %s\n", $mysqli->errno, $mysqli->error);
35 printf("[005] [%d] %s\n", $mysqli->errno, $mysqli->error);
46 printf("[008] [%d] %s\n", $mysqli->errno, $mysqli->error);
52 printf("[010] [%d] %s\n", $mysqli->errno, $mysqli->error);
58 printf("[012] [%d] %s\n", $mysqli->errno, $mysqli->error);
65 printf("[014] [%d] %s\n", $mysqli->errno, $mysqli->error);
[all …]
H A Dmysqli_phpinfo.phpt2 phpinfo() mysqli section
4 mysqli
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"))
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', 'mysqli.local_infile_directory',
[all …]
H A Dmysqli_commit_oo.phpt4 mysqli
23 $mysqli = new mysqli();
25 $mysqli->commit();
44 printf("[004] [%d] %s\n", $mysqli->errno, $mysqli->error);
52 printf("[006] [%d] %s\n", $mysqli->errno, $mysqli->error);
61 printf("[008] [%d] %s\n", $mysqli->errno, $mysqli->error);
64 printf("[009] [%d] %s\n", $mysqli->errno, $mysqli->error);
74 printf("[011] [%d] %s\n", $mysqli->errno, $mysqli->error);
78 printf("[012] [%d] %s\n", $mysqli->errno, $mysqli->error);
88 printf("[016] [%d] %s\n", $mysqli->errno, $mysqli->error);
[all …]
H A Dmysqli_error_oo.phpt2 $mysqli->error
4 mysqli
16 $mysqli = new mysqli();
17 if ('' !== ($tmp = @$mysqli->error))
20 if (!$mysqli = new mysqli($host, $user, $passwd, $db, $port, $socket))
24 $tmp = $mysqli->error;
29 printf("[004] Failed to drop old test table: [%d] %s\n", $mysqli->errno, $mysqli->error);
33 $tmp = $mysqli->error;
37 $mysqli->close();
40 $mysqli->error;
[all …]
H A Dmysqli_errno_oo.phpt2 $mysqli->errno
4 mysqli
16 $mysqli = new mysqli();
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');
37 $mysqli->close();
40 $mysqli->errno;
[all …]
H A Dmysqli_connect_oo_warnings.phpt2 new mysqli()
4 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.phpt4 mysqli
23 function testStmtStoreResult(mysqli $mysqli, string $name) {
37 function testStmtGetResult(mysqli $mysqli, string $name) {
51 function testNormalQuery(mysqli $mysqli, string $name) {
63 function testStmtUseResult(mysqli $mysqli, string $name) {
78 function testResultFetchRow(mysqli $mysqli, string $name) {
96 $mysqli->close();
107 $mysqli->close();
118 $mysqli->close();
129 $mysqli->close();
[all …]
H A Dbug42548.phpt4 mysqli
20 $mysqli = mysqli_init();
27 $mysqli->query("DROP PROCEDURE IF EXISTS p1") or die($mysqli->error);
28 $mysqli->query("CREATE PROCEDURE p1() BEGIN SELECT 23; SELECT 42; END") or die($mysqli->error);
30 if ($mysqli->multi_query("CALL p1();"))
34 if ($objResult = $mysqli->store_result()) {
39 if ($mysqli->more_results()) {
45 } while ($mysqli->more_results() && $mysqli->next_result());
47 print $mysqli->error;
50 $mysqli->query("DROP PROCEDURE p1") or die($mysqli->error);
[all …]
H A Dmysqli_real_connect_compression_error.phpt4 mysqli
26 $mysqli = mysqli_init();
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()
4 mysqli
24 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 Dgh8267.phpt4 mysqli
13 $mysqli = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
14 $mysqli->query("DROP TABLE IF EXISTS foo");
15 $mysqli->query("CREATE TABLE foo (id BIGINT UNSIGNED AUTO_INCREMENT, PRIMARY KEY (id))");
16 $mysqli->query("INSERT INTO foo VALUES (9223372036854775807)");
17 var_dump($mysqli->insert_id);
18 $mysqli->query("INSERT INTO foo VALUES (0)");
19 var_dump($mysqli->insert_id);
H A Dbug46109.phpt4 mysqli
13 $mysqli = new mysqli();
14 $mysqli->init();
15 $mysqli->init();
19 Deprecated: Method mysqli::init() is deprecated in %s on line %d
21 Deprecated: Method mysqli::init() is deprecated in %s on line %d
H A Dmysqli_incomplete_initialization.phpt4 mysqli
9 $mysqli = new mysqli();
10 @$mysqli->__construct('doesnotexist');
11 $mysqli->close();
15 Fatal error: Uncaught Error: mysqli object is not fully initialized in %s:%d
17 #0 %s(%d): mysqli->close()
H A Dmysqli_next_result_error.phpt4 mysqli
16 $mysqli = new mysqli($host, $user, $passwd, $db, $port, $socket);
18 $mysqli->multi_query("SELECT 1; SELECT 2; Syntax Error");
22 if ($res = $mysqli->store_result()) {
26 } while ($mysqli->more_results() && $mysqli->next_result());
31 $mysqli->query("DROP PROCEDURE IF EXISTS p");
32 $mysqli->query('CREATE PROCEDURE p() READS SQL DATA BEGIN SELECT 1; SELECT foobar FROM table_that_d…
34 $stmt = $mysqli->prepare("CALL p()");
48 $mysqli->query("DROP PROCEDURE IF EXISTS p");
H A Dmysqli_dump_debug_info_oo.phpt4 mysqli
16 if (!$mysqli = new mysqli($host, $user, $passwd, $db, $port, $socket))
19 if (!is_bool($tmp = $mysqli->dump_debug_info()))
22 $mysqli->errno, $mysqli->error);
24 $mysqli->close();
27 $mysqli->dump_debug_info();
35 mysqli object is already closed
H A Dmysqli_reap_async_query.phpt4 mysqli
11 die("skip mysqlnd only feature, compile PHP using --with-mysqli=mysqlnd");
35 foreach ($links as $mysqli) {
37 $res = $mysqli->reap_async_query();
39 $res = mysqli_reap_async_query($mysqli);
43 } else if (mysqli_errno($mysqli) > 0) {
45 $offset, mysqli_errno($mysqli), mysqli_error($mysqli));
51 foreach ($errors as $mysqli)
53 $offset, mysqli_thread_id($mysqli), mysqli_errno($mysqli), mysqli_error($mysqli));
55 foreach ($reject as $mysqli)
[all …]
H A Dgh9841.phpt4 mysqli
18 $mysqli->query("SELECT (
24 $mysqli->query("SELECT (
29 $mysqli->reap_async_query();
31 $mysqli->real_query("SELECT (
36 $result = new mysqli_result($mysqli);
42 $mysqli->query("SELECT (
51 $mysqli->query("SELECT (
57 $mysqli->reap_async_query();
62 $mysqli->real_query("SELECT (
[all …]
/PHP-8.1/ext/mysqli/
H A Dmysqli.stub.php21 class mysqli class
772 ): mysqli|false {}
786 function mysqli_errno(mysqli $mysql): int {}
789 function mysqli_error(mysqli $mysql): string {}
849 function mysqli_field_count(mysqli $mysql): int {}
899 function mysqli_init(): mysqli|false {}
902 function mysqli_info(mysqli $mysql): ?string {}
929 function mysqli_ping(mysqli $mysql): bool {}
944 mysqli $mysql,
1054 mysqli $mysql,
[all …]
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 " +
23 EXTENSION("mysqli", mysqli_source, PHP_MYSQLI_SHARED, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
26 ADD_EXTENSION_DEP('mysqli', 'mysqlnd', true);
28 PHP_INSTALL_HEADERS("ext/mysqli", "php_mysqli_structs.h");
30 if (CHECK_LIB("libmysql.lib", "mysqli", PHP_MYSQLI) &&
34 EXTENSION("mysqli", mysqli_source, PHP_MYSQLI_SHARED, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
37 PHP_INSTALL_HEADERS("ext/mysqli", "php_mysqli_structs.h");
39 WARNING("mysqli not enabled; libraries and headers not found");

Completed in 27 milliseconds

12345678910>>...20