Home
last modified time | relevance | path

Searched refs:mysqli (Results 26 – 50 of 197) sorted by relevance

12345678

/PHP-7.2/ext/mysqli/tests/
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);
51 printf("[007] Object seems wrong. [%d] %s\n", $mysqli->errno, $mysqli->error);
67 printf("[008] Object seems wrong. [%d] %s\n", $mysqli->errno, $mysqli->error);
84 printf("[009] Object seems wrong. [%d] %s\n", $mysqli->errno, $mysqli->error);
95 printf("[010] Object seems wrong. [%d] %s\n", $mysqli->errno, $mysqli->error);
104 printf("[011] Object seems wrong. [%d] %s\n", $mysqli->errno, $mysqli->error);
114 printf("[012] [%d] %s\n", $mysqli->errno, $mysqli->error);
[all …]
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_assoc_oo.phpt17 $mysqli = new mysqli();
18 $res = @new mysqli_result($mysqli);
23 if (!$mysqli = new my_mysqli($host, $user, $passwd, $db, $port, $socket))
30 if (!$res = $mysqli->query("SELECT id, label FROM test ORDER BY id LIMIT 1")) {
31 printf("[004] [%d] %s\n", $mysqli->errno, $mysqli->error);
42 if (!$res = $mysqli->query("SELECT 1 AS a, 2 AS a, 3 AS c, 4 AS C, NULL AS d, true AS e")) {
43 printf("[007] Cannot run query, [%d] %s\n", $mysqli->errno, $mysqli->error);
H A Dmysqli_fetch_field_oo.phpt17 $mysqli = new mysqli();
18 $res = @new mysqli_result($mysqli);
23 if (!$mysqli = new mysqli($host, $user, $passwd, $db, $port, $socket))
32 if (!$mysqli->set_charset('utf8'))
33 printf("[%d] %s\n", $mysqli->errno, $mysqli->errno);
35 $charsetInfo = $mysqli->get_charset();
37 if (!$res = $mysqli->query("SELECT id AS ID, label FROM test AS TEST ORDER BY id LIMIT 1")) {
38 printf("[004] [%d] %s\n", $mysqli->errno, $mysqli->error);
65 $mysqli->close();
H A Dmysqli_real_connect_pconn.phpt13 mysqli.allow_local_infile=1
14 mysqli.allow_persistent=1
15 mysqli.max_persistent=10
36 ini_set('mysqli.default_socket', $socket);
45 ini_set('mysqli.default_port', $port);
47 printf("[008] Usage of mysqli.default_port failed\n");
54 ini_set('mysqli.default_pw', $passwd);
56 printf("[010] Usage of mysqli.default_pw failed\n") ;
63 ini_set('mysqli.default_user', $user);
72 ini_set('mysqli.default_host', $host);
[all …]
H A Dmysqli_class_mysqli_warning.phpt21 $mysqli = new mysqli();
22 $warning = new mysqli_warning($mysqli);
24 $mysqli = new my_mysqli($host, $user, $passwd, $db, $port, $socket);
25 $stmt = new mysqli_stmt($mysqli);
28 $stmt = $mysqli->stmt_init();
35 $mysqli = new my_mysqli($host, $user, $passwd, $db, $port, $socket);
36 $res = $mysqli->query('INSERT INTO test(id, label) VALUES (1, "zz")');
37 $warning = mysqli_get_warnings($mysqli);
66 $variables = get_class_vars(get_class($mysqli));
72 $variables = get_object_vars($mysqli);
[all …]
H A Dbug66762.phpt2 Bug #66762 mysqli@libmysql segfault in mysqli_stmt::bind_result() when link closed
12 if (!$mysqli = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
16 $read_stmt = $mysqli->prepare("SELECT 1");
20 unset($mysqli);
H A Dbug54221.phpt2 Bug #54221 mysqli::get_warnings segfault when used in multi queries
9 mysqli.max_links = 1
10 mysqli.allow_persistent = Off
11 mysqli.max_persistent = 0
12 mysqli.reconnect = Off
H A Dmysqli_fetch_lengths_oo.phpt13 if (!$mysqli = new my_mysqli($host, $user, $passwd, $db, $port, $socket))
17 if (!$res = $mysqli->query("SELECT id, label FROM test ORDER BY id LIMIT 1")) {
18 printf("[002] [%d] %s\n", $mysqli->errno, $mysqli->error);
28 $mysqli->close();
H A Dmysqli_poll.phpt11 die("skip mysqlnd only feature, compile PHP using --with-mysqli=mysqlnd");
69 foreach ($links as $mysqli) {
71 $res = $mysqli->reap_async_query();
73 $res = mysqli_reap_async_query($mysqli);
77 } else if (mysqli_errno($mysqli) > 0) {
79 $offset, mysqli_errno($mysqli), mysqli_error($mysqli));
85 foreach ($errors as $mysqli)
87 $offset, mysqli_thread_id($mysqli), mysqli_errno($mysqli), mysqli_error($mysqli));
89 foreach ($reject as $mysqli)
91 $offset, mysqli_thread_id($mysqli), mysqli_errno($mysqli), mysqli_error($mysqli));
H A Dmysqli_prepare_no_object.phpt23 if (!$mysqli = new my_mysqli($host, $user, $passwd, $db, $port, $socket))
27 if (false !== ($tmp = $mysqli->prepare(false)))
29 printf("c) [%d] %s\n", $mysqli->errno, $mysqli->error);
31 if (false !== ($tmp = $mysqli->prepare('')))
33 printf("c) [%d] %s\n", $mysqli->errno, $mysqli->error);
H A Dbug54674.phpt9 mysqli.max_links = 1
10 mysqli.allow_persistent = Off
11 mysqli.max_persistent = 0
12 mysqli.reconnect = Off
H A Dmysqli_close_oo.phpt16 if (!$mysqli = new my_mysqli($host, $user, $passwd, $db, $port, $socket))
20 if (!is_null($tmp = @$mysqli->close($link)))
23 $tmp = $mysqli->close();
27 if (!is_null($tmp = @$mysqli->close()))
30 if (!is_null($tmp = @$mysqli->query("SELECT 1")))
H A Dmysqli_real_connect.phpt10 mysqli.allow_local_infile=1
58 ini_set('mysqli.default_socket', $socket);
67 ini_set('mysqli.default_port', $port);
69 printf("[008] Usage of mysqli.default_port failed\n");
76 ini_set('mysqli.default_pw', $passwd);
78 printf("[010] Usage of mysqli.default_pw failed\n") ;
85 ini_set('mysqli.default_user', $user);
94 ini_set('mysqli.default_host', $host);
144 ini_set('mysqli.default_host', 'p:' . $host);
161 ini_set('mysqli.default_host', 'p:');
[all …]
H A Dmysqli_poll_kill.phpt75 foreach ($reject as $mysqli)
101 foreach ($errors as $mysqli) {
103 mysqli_thread_id($mysqli),
104 mysqli_errno($mysqli),
105 mysqli_error($mysqli));
116 foreach ($reject as $mysqli) {
118 mysqli_thread_id($mysqli),
119 mysqli_errno($mysqli),
120 mysqli_error($mysqli));
125 foreach ($links as $mysqli) {
[all …]
H A Dmysqli_fetch_all_oo.phpt2 $mysqli->fetch_all() (introduced with mysqlnd)
19 $mysqli = new mysqli();
26 if (!$res = $mysqli->query("SELECT * FROM test ORDER BY id LIMIT 2")) {
27 printf("[004] [%d] %s\n", $mysqli->errno, $mysqli->error);
35 printf("[006] [%d] %s\n", $mysqli->errno, $mysqli->error);
43 printf("[008] [%d] %s\n", $mysqli->errno, $mysqli->error);
51 printf("[009] [%d] %s\n", $mysqli->errno, $mysqli->error);
62 printf("[012] [%d] %s\n", $mysqli->errno, $mysqli->error);
72 printf("[010] Cannot run query, [%d] %s\n", $mysqli->errno, $$mysqli->error);
80 $mysqli->errno, $$mysqli->error);
[all …]
H A Dbug51605.phpt9 mysqli.max_links = 1
10 mysqli.allow_persistent = Off
11 mysqli.max_persistent = 0
12 mysqli.reconnect = Off
H A Dbug63398.phpt27 Warning: mysqli_poll(): [1] Couldn't fetch mysqli in %sbug63398.php on line %d
29 Warning: mysqli_poll(): [1] Couldn't fetch mysqli in %sbug63398.php on line %d
33 Warning: mysqli_poll(): [1] Couldn't fetch mysqli in %sbug63398.php on line %d
35 Warning: mysqli_poll(): [1] Couldn't fetch mysqli in %sbug63398.php on line %d
H A Dbug69899.phpt25 $mysqli = new mysqli($host, $user, $passwd, $db, $port, $socket);
26 $stmt = $mysqli->prepare('SELECT 1');
29 $mysqli->close(),
H A Dskipif.inc2 if (!extension_loaded('mysqli')){
3 die('skip mysqli extension not available');
H A Dbug29311.phpt2 Bug #29311 (Cannot override mysqli constructor)
13 class mysql1 extends mysqli {
21 class mysql2 extends mysqli {
30 class mysql3 extends mysqli {
H A Dmysqli_get_warnings.phpt87 if (!$mysqli = new my_mysqli($host, $user, $passwd, $db, $port, $socket))
90 if (!$mysqli->query("DROP TABLE IF EXISTS t1"))
93 if (!$mysqli->query("CREATE TABLE t1 (a smallint)"))
96 if (!is_object($warning = new mysqli_warning($mysqli)))
102 if (!$mysqli->query("DROP TABLE t1"))
106 if (!$mysqli = new my_mysqli($host, $user, $passwd, $db, $port, $socket))
109 $warning = new mysqli_warning($mysqli);
116 if (!$mysqli = new my_mysqli($host, $user, $passwd, $db, $port, $socket))
119 if (!$mysqli->query("DROP TABLE IF EXISTS t1"))
122 if (!$mysqli->query("CREATE TABLE t1 (a smallint)"))
[all …]
H A Dbug36420.phpt12 $mysqli = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
14 $result = $mysqli->query('select 1');
19 $mysqli->close();
/PHP-7.2/ext/mysqli/
H A Dconfig.m43 dnl config.m4 for extension mysqli
32 PHP_ARG_WITH(mysqli, for MySQLi support,
33 [ --with-mysqli[=FILE] Include MySQLi support. FILE is the path
38 [ --enable-embedded-mysqli
119 mysqli_sources="mysqli.c mysqli_api.c mysqli_prop.c mysqli_nonapi.c \
122 PHP_NEW_EXTENSION(mysqli, $mysqli_sources, $ext_shared,, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
124 PHP_INSTALL_HEADERS([ext/mysqli/php_mysqli_structs.h])
127 PHP_ADD_EXTENSION_DEP(mysqli, mysqlnd)
129 PHP_INSTALL_HEADERS([ext/mysqli/mysqli_mysqlnd.h])
131 PHP_INSTALL_HEADERS([ext/mysqli/mysqli_libmysql.h])

Completed in 37 milliseconds

12345678