Home
last modified time | relevance | path

Searched refs:mysql (Results 1 – 25 of 113) sorted by relevance

12345

/PHP-8.0/ext/mysqli/
H A Dmysqli_nonapi.c167 if (mysql->mysql) {
187 php_mysqli_set_error(mysql_errno(mysql->mysql), (char *) mysql_error(mysql->mysql));
211 ssl_key = mysql->mysql->options.ssl_key ? estrdup(mysql->mysql->options.ssl_key) : NULL;
213 ssl_ca = mysql->mysql->options.ssl_ca ? estrdup(mysql->mysql->options.ssl_ca) : NULL;
219 mysql->mysql = NULL;
244 if (!mysql->mysql) {
314 php_mysqli_set_error(mysql_errno(mysql->mysql), (char *) mysql_error(mysql->mysql));
320 mysql->mysql = NULL;
326 php_mysqli_set_error(mysql_errno(mysql->mysql), (char *) mysql_error(mysql->mysql));
781 if (mysql->mysql == *p) {
[all …]
H A Dmysqli_priv.h56 extern MYSQLI_WARNING *php_get_warnings(MYSQLND_CONN_DATA * mysql);
58 extern MYSQLI_WARNING *php_get_warnings(MYSQL * mysql);
71 #define MYSQLI_DISABLE_MQ if (mysql->multi_query) { \
72 mysql_set_server_option(mysql->mysql, MYSQL_OPTION_MULTI_STATEMENTS_OFF); \
73 mysql->multi_query = 0; \
76 #define MYSQLI_ENABLE_MQ if (!mysql->multi_query) { \
77 mysql_set_server_option(mysql->mysql, MYSQL_OPTION_MULTI_STATEMENTS_ON); \
78 mysql->multi_query = 1; \
120 #define MYSQLI_REPORT_MYSQL_ERROR(mysql) \ argument
121 if ((MyG(report_mode) & MYSQLI_REPORT_ERROR) && mysql_errno(mysql)) { \
[all …]
H A Dmysqli_api.c151 rc = mysql_affected_rows(mysql->mysql); in PHP_FUNCTION()
172 MYSQLI_REPORT_MYSQL_ERROR(mysql->mysql); in PHP_FUNCTION()
592 MYSQLI_REPORT_MYSQL_ERROR(mysql->mysql); in PHP_FUNCTION()
642 mysqlnd_end_psession(mysql->mysql); in php_mysqli_close()
662 mysql->mysql = NULL; in php_mysqli_close()
791 RETURN_LONG(mysql_errno(mysql->mysql));
1358 RETURN_STRING((mysql->mysql->host_info) ? mysql->mysql->host_info : "");
1360 RETURN_STRING((mysql->mysql->data->host_info) ? mysql->mysql->data->host_info : "");
1421 info = mysql_info(mysql->mysql);
1488 rc = mysql_insert_id(mysql->mysql);
[all …]
H A Dmysqli.stub.php534 function mysqli_close(mysqli $mysql): bool {} argument
557 function mysqli_errno(mysqli $mysql): int {} argument
559 function mysqli_error(mysqli $mysql): string {} argument
561 function mysqli_error_list(mysqli $mysql): array {} argument
588 function mysqli_field_count(mysqli $mysql): int {} argument
622 function mysqli_info(mysqli $mysql): ?string {} argument
647 function mysqli_ping(mysqli $mysql): bool {} argument
660 mysqli $mysql, argument
749 function mysqli_sqlstate(mysqli $mysql): string {} argument
752 mysqli $mysql, argument
[all …]
H A Dconfig.m45 /var/tmp/mysql.sock \
6 /var/run/mysql/mysql.sock \
7 /var/lib/mysql/mysql.sock \
8 /var/mysql/mysql.sock \
9 /usr/local/mysql/var/mysql.sock \
10 /Private/tmp/mysql.sock \
11 /private/tmp/mysql.sock \
12 /tmp/mysql.sock \
35 PHP_ARG_WITH([mysql-sock],
37 [AS_HELP_STRING([[--with-mysql-sock[=SOCKPATH]]],
[all …]
/PHP-8.0/ext/mysqli/tests/
H A Dbug31668.phpt13 $mysql->multi_query('SELECT 1;SELECT 2');
15 $res = $mysql->store_result();
16 if ($mysql->errno == 0) {
22 } while ($mysql->next_result());
23 var_dump($mysql->error, __LINE__);
24 $mysql->close();
27 $mysql->multi_query('SELECT 1;SELECT 2');
29 $res = $mysql->store_result();
30 if ($mysql->errno == 0) {
36 } while ($mysql->next_result());
[all …]
H A Dbug35759.phpt14 $mysql = new mysqli($host, $user, $passwd, $db, $port, $socket);
15 $mysql->query("DROP TABLE IF EXISTS test");
23 if (!$mysql->query($create)) {
24 if (1101 == $mysql->errno) {
29 printf("[001] [%d] %s\n", $mysql->errno, $mysql->error);
32 if (!$mysql->query("INSERT INTO test (a0) VALUES ('')"))
33 printf("[002] [%d] %s\n", $mysql->errno, $mysql->error);
35 $stmt = $mysql->prepare("SELECT * FROM test");
48 printf("[003] [%d] %s\n", $mysql->errno, $mysql->error);
51 $mysql->close();
H A D069.phpt12 $mysql = new my_mysqli($host, $user, $passwd, $db, $port, $socket);
13 $mysql->multi_query('SELECT 1;SELECT 2');
15 $res = $mysql->store_result();
16 if ($mysql->errno == 0) {
22 if (!$mysql->more_results()) {
25 } while (@$mysql->next_result());
26 $mysql->close();
H A D065.phpt16 if (!$mysql = new my_mysqli($host, $user, $passwd, $db, $port, $socket))
19 if (!mysqli_query($mysql, "SET sql_mode=''"))
20 printf("[002] Cannot set SQL-Mode, [%d] %s\n", mysqli_errno($mysql), mysqli_error($mysql));
26 if ($mysql->set_charset("latin1")) {
28 if (3 !== ($tmp = strlen($mysql->real_escape_string($esc_str))))
31 if ('latin1' !== ($tmp = $mysql->character_set_name()))
35 if ($res = $mysql->query("SHOW CHARACTER SET LIKE 'gbk'")) {
37 if ($mysql->set_charset("gbk")) {
40 if (2 !== ($tmp = strlen($mysql->real_escape_string($esc_str))))
43 if ('gbk' !== ($tmp = $mysql->character_set_name()))
[all …]
H A Dgh7837.phpt15 $mysql = new mysqli($host, $user, $passwd, $db, $port, $socket);
16 $mysql->options(MYSQLI_OPT_INT_AND_FLOAT_NATIVE, true);
17 $mysql->query("DROP TABLE IF EXISTS test");
18 $mysql->query("CREATE TABLE test (`ubigint` bigint unsigned NOT NULL) ENGINE=InnoDB");
19 $mysql->query("INSERT INTO test (`ubigint`) VALUES (18446744073709551615)");
20 $mysql->query("INSERT INTO test (`ubigint`) VALUES (9223372036854775808)");
21 $mysql->query("INSERT INTO test (`ubigint`) VALUES (1)");
22 $result = $mysql->query("SELECT ubigint FROM test");
H A Dbug37090.phpt15 $mysql = new my_mysqli($host, $user, $passwd, $db, $port, $socket);
18 $cs[] = $mysql->set_charset("latin1");
19 $cs[] = $mysql->character_set_name();
21 $cs[] = $mysql->set_charset("utf8");
22 $cs[] = $mysql->character_set_name();
24 $cs[] = $mysql->set_charset("notdefined");
25 $cs[] = $mysql->character_set_name();
H A D071.phpt12 $mysql = new my_mysqli($host, $user, $passwd, $db, $port, $socket);
13 $version = $mysql->server_version;
15 var_dump($mysql->ping());
17 $ret = $mysql->kill($mysql->thread_id);
36 var_dump($mysql->ping());
38 $mysql->close();
40 $mysql = new my_mysqli($host, $user, $passwd, $db, $port, $socket);
42 var_dump(mysqli_ping($mysql));
44 $ret = $mysql->kill($mysql->thread_id);
63 var_dump(mysqli_ping($mysql));
[all …]
H A Dbug28817.phpt22 $mysql = new my_mysql();
24 var_dump($mysql->p_test);
26 $mysql->errno;
31 $mysql->connect($host, $user, $passwd, $db, $port, $socket);
32 $mysql->select_db("nonexistingdb");
34 var_dump($mysql->errno > 0);
36 $mysql->close();
H A D066.phpt13 $mysql = new my_mysqli($host, $user, $passwd, $db, $port, $socket);
15 if (!mysqli_query($mysql, "SET sql_mode=''"))
16 printf("[002] Cannot set SQL-Mode, [%d] %s\n", mysqli_errno($mysql), mysqli_error($mysql));
18 $mysql->query("DROP TABLE IF EXISTS test_warnings");
20 $mysql->query("CREATE TABLE test_warnings (a int not null) ENGINE=myisam");
22 $mysql->query("INSERT INTO test_warnings VALUES (1),(2),(NULL)");
24 if (($warning = $mysql->get_warnings())) {
30 $mysql->close();
H A Dbug36802.phpt14 $mysql = mysqli_init();
17 if (method_exists($mysql, 'set_charset')) {
19 $mysql->set_charset('utf8');
28 $mysql->query("SELECT 'foo' FROM DUAL");
34 $x[1] = ($mysql->client_version > 0);
35 $x[2] = $mysql->errno;
37 $mysql->close();
H A Dbug35103.phpt17 $mysql = new my_mysqli($host, $user, $passwd, $db, $port, $socket);
18 $mysql->query("DROP TABLE IF EXISTS test_bint");
19 $mysql->query("CREATE TABLE test_bint (a bigint(20) default NULL) ENGINE=MYISAM");
20 …$mysql->query("INSERT INTO test_bint VALUES (9223372036854775807),(-9223372036854775808),(-2147483…
22 $mysql->query("DROP TABLE IF EXISTS test_buint");
23 $mysql->query("CREATE TABLE test_buint (a bigint(20) unsigned default NULL)");
24 …$mysql->query("INSERT INTO test_buint VALUES (18446744073709551615),(9223372036854775807),(9223372…
26 $stmt = $mysql->prepare("SELECT a FROM test_bint ORDER BY a");
39 $stmt = $mysql->prepare("SELECT a FROM test_buint ORDER BY a");
50 $mysql->multi_query($drop);
[all …]
H A D067.phpt21 function open_cursor($mysql, $query) {
22 if (!is_object($stmt = $mysql->prepare($query))) {
24 $query, $mysql->errno, $mysql->error);
32 $mysql = new my_mysqli($host, $user, $passwd, $db, $port, $socket);
34 if (mysqli_get_server_version($mysql) < 50009) {
42 $mysql->query("DROP TABLE IF EXISTS cursor$i");
43 $mysql->query("CREATE TABLE cursor$i (a int not null) ENGINE=" . $engine);
44 $mysql->query("INSERT INTO cursor$i VALUES (1),(2),(3),(4),(5),(6)");
45 $stmt[$i] = open_cursor($mysql, "SELECT a FROM cursor$i");
62 $mysql->close();
H A D072.phpt12 $mysql = new my_mysqli($host, $user, $passwd, $db, $port, $socket);
14 $mysql->query("DROP TABLE IF EXISTS not_exists");
16 var_dump($mysql->warning_count);
18 $w = $mysql->get_warnings();
24 $mysql->close();
H A Dbug39457.phpt12 $mysql = mysqli_init();
13 $mysql->connect($host, $user, $passwd, $db, $port, $socket);
15 $mysql->connect($host, $user, $passwd, $db, $port, $socket);
17 $mysql->close();
H A Dbug36745.phpt15 $mysql = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
17 $mysql->query("DROP TABLE IF EXISTS litest");
18 $mysql->query("CREATE TABLE litest (a VARCHAR(20))");
20 $mysql->query("LOAD DATA LOCAL INFILE 'filenotfound' INTO TABLE litest");
21 var_dump($mysql->error);
23 $mysql->close();
H A D062.phpt12 $mysql = new my_mysqli($host, $user, $passwd, $db, $port, $socket);
14 $mysql->real_query("SELECT 'foo' FROM DUAL");
16 $myresult = new mysqli_result($mysql);
20 $mysql->close();
H A D048.phpt13 $mysql = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
15 $mysql->select_db($db);
16 $mysql->query("DROP TABLE IF EXISTS test_fetch_null");
18 $mysql->query("CREATE TABLE test_fetch_null(col1 tinyint, col2 smallint,
26 …$mysql->query("INSERT INTO test_fetch_null(col1,col10, col11) VALUES(1,'foo1', 1000),(2,'foo2', 88…
28 …$stmt = $mysql->prepare("SELECT col1, col2, col3, col4, col5, col6, col7, col8, col9, col10, col11…
39 $mysql->query("DROP TABLE IF EXISTS test_fetch_null");
40 $mysql->close();
H A Dbug30967.phpt18 $mysql = new mysql2($host, $user, $passwd, $db, $port, $socket);
20 $mysql->query("THIS DOES NOT WORK");
21 printf("%d\n", $mysql->errno);
23 $mysql->close();
H A D049.phpt13 $mysql = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
15 $mysql->select_db($db);
16 $result = $mysql->query("SELECT DATABASE()");
24 $mysql->close();
/PHP-8.0/ext/pdo_mysql/tests/
H A Dpdo_mysql___construct_ini.phpt9 if (getenv('PDO_MYSQL_TEST_DSN') !== "mysql:dbname=phptest;unix_socket=/tmp/mysql.sock")
13 pdo.dsn.mysql="mysql:dbname=phptest;socket=/tmp/mysql.sock"
21 if ('pdo.dsn.mysql' == $name) {
22 printf("pdo.dsn.mysql=%s\n", $dsn);
28 $dsn = ini_get('pdo.dsn.mysql');
33 printf("pdo.dsn.mysql cannot be accessed through ini_get_all()/ini_get()\n");
41 $db = new PDO('mysql', $user, $pass);
55 pdo.dsn.mysql cannot be accessed through ini_get_all()/ini_get()

Completed in 40 milliseconds

12345