Home
last modified time | relevance | path

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

12345678910

/PHP-5.5/ext/mysqli/tests/
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_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 Dmysqli_real_connect_pconn.phpt13 mysqli.allow_persistent=1
14 mysqli.max_persistent=10
35 ini_set('mysqli.default_socket', $socket);
37 printf("[006] Usage of mysqli.default_socket failed\n");
44 ini_set('mysqli.default_port', $port);
46 printf("[008] Usage of mysqli.default_port failed\n");
53 ini_set('mysqli.default_pw', $passwd);
55 printf("[010] Usage of mysqli.default_pw failed\n") ;
62 ini_set('mysqli.default_user', $user);
71 ini_set('mysqli.default_host', $host);
[all …]
H A Dmysqli_poll.phpt11 die("skip mysqlnd only feature, compile PHP using --with-mysqli=mysqlnd");
62 foreach ($links as $mysqli) {
64 $res = $mysqli->reap_async_query();
66 $res = mysqli_reap_async_query($mysqli);
70 } else if (mysqli_errno($mysqli) > 0) {
72 $offset, mysqli_errno($mysqli), mysqli_error($mysqli));
78 foreach ($errors as $mysqli)
80 $offset, mysqli_thread_id($mysqli), mysqli_errno($mysqli), mysqli_error($mysqli));
82 foreach ($reject as $mysqli)
84 $offset, mysqli_thread_id($mysqli), mysqli_errno($mysqli), mysqli_error($mysqli));
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_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 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_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_poll_kill.phpt75 foreach ($reject as $mysqli)
100 foreach ($errors as $mysqli) {
102 mysqli_thread_id($mysqli),
103 mysqli_errno($mysqli),
104 mysqli_error($mysqli));
110 foreach ($reject as $mysqli) {
112 mysqli_thread_id($mysqli),
113 mysqli_errno($mysqli),
114 mysqli_error($mysqli));
119 foreach ($links as $mysqli) {
[all …]
H A Dmysqli_real_connect.phpt56 ini_set('mysqli.default_socket', $socket);
65 ini_set('mysqli.default_port', $port);
67 printf("[008] Usage of mysqli.default_port failed\n");
74 ini_set('mysqli.default_pw', $passwd);
76 printf("[010] Usage of mysqli.default_pw failed\n") ;
83 ini_set('mysqli.default_user', $user);
85 printf("[012] Usage of mysqli.default_user failed\n") ;
92 ini_set('mysqli.default_host', $host);
142 ini_set('mysqli.default_host', 'p:' . $host);
159 ini_set('mysqli.default_host', 'p:');
[all …]
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 Dbug51605.phpt9 mysqli.max_links = 1
10 mysqli.allow_persistent = Off
11 mysqli.max_persistent = 0
12 mysqli.reconnect = Off
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 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 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 Dskipif.inc2 if (!extension_loaded('mysqli')){
3 die('skip mysqli extension not available');
H A Dbug36420.phpt12 $mysqli = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
14 $result = $mysqli->query('select 1');
19 $mysqli->close();
H A Dbug50772.phpt2 Bug #50772 (mysqli constructor without parameters does not return a working mysqli object)
11 $db1 = new mysqli();
H A Dbug33491.phpt2 Bug #33491 (extended mysqli class crashes when result is not object)
13 class DB extends mysqli
23 // Segfault when using the DB class which extends mysqli
H A Dmysqli_fetch_field_direct_oo.phpt16 $mysqli = new mysqli();
17 $res = @new mysqli_result($mysqli);
23 if (!$mysqli = new my_mysqli($host, $user, $passwd, $db, $port, $socket))
27 if (!$res = $mysqli->query("SELECT id AS ID, label FROM test AS TEST ORDER BY id LIMIT 1")) {
49 $mysqli->close();
/PHP-5.5/ext/mysqli/
H A Dconfig.m43 dnl config.m4 for extension mysqli
5 PHP_ARG_WITH(mysqli, for MySQLi support,
6 [ --with-mysqli[=FILE] Include MySQLi support. FILE is the path
11 [ --enable-embedded-mysqli
75 mysqli_sources="mysqli.c mysqli_api.c mysqli_prop.c mysqli_nonapi.c \
78 PHP_NEW_EXTENSION(mysqli, $mysqli_sources, $ext_shared)
80 PHP_INSTALL_HEADERS([ext/mysqli/php_mysqli_structs.h])
83 PHP_ADD_EXTENSION_DEP(mysqli, mysqlnd)
85 PHP_INSTALL_HEADERS([ext/mysqli/mysqli_mysqlnd.h])
87 PHP_INSTALL_HEADERS([ext/mysqli/mysqli_libmysql.h])
H A Dmysqli.dsp1 # Microsoft Developer Studio Project File - Name="mysqli" - Package Owner=<4>
7 CFG=mysqli - Win32 Debug_TS
11 !MESSAGE NMAKE /f "mysqli.mak".
16 !MESSAGE NMAKE /f "mysqli.mak" CFG="mysqli - Win32 Debug_TS"
20 !MESSAGE "mysqli - Win32 Release_TS" (based on "Win32 (x86) Dynamic-Link Library")
21 !MESSAGE "mysqli - Win32 Debug_TS" (based on "Win32 (x86) Dynamic-Link Library")
32 !IF "$(CFG)" == "mysqli - Win32 Release_TS"
59 !ELSEIF "$(CFG)" == "mysqli - Win32 Debug_TS"
89 # Name "mysqli - Win32 Release_TS"
90 # Name "mysqli - Win32 Debug_TS"
[all …]
/PHP-5.5/ext/mysql/tests/
H A Dmysql_connect.phpt107 …The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in …
109 …The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in …
111 …The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in …
115 …The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in …
117 …The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in …
119 …The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in …
121 …The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in …
123 …The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in …
125 …The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in …
127 …The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in …

Completed in 70 milliseconds

12345678910