/PHP-8.2/ext/mysqlnd/ |
H A D | mysqlnd_commands.c | 46 conn); in MYSQLND_METHOD() 49 conn->error_info, conn->upsert_status, &conn->last_message); in MYSQLND_METHOD() 75 conn->error_info, conn->upsert_status, &conn->last_message); in MYSQLND_METHOD() 102 conn->error_info, conn->upsert_status, &conn->last_message); in MYSQLND_METHOD() 138 conn->error_info, conn->upsert_status, &conn->last_message); in MYSQLND_METHOD() 206 conn->error_info, conn->upsert_status, &conn->last_message); in MYSQLND_METHOD() 217 conn->m->send_close(conn); in MYSQLND_METHOD() 246 conn->error_info, conn->upsert_status, &conn->last_message); in MYSQLND_METHOD() 275 conn->error_info, conn->upsert_status, &conn->last_message); in MYSQLND_METHOD() 461 conn->error_info, conn->upsert_status, &conn->last_message); in MYSQLND_METHOD() [all …]
|
H A D | mysqlnd_connection.c | 319 conn->m->free_contents(conn); in MYSQLND_METHOD_PRIVATE() 320 conn->m->free_options(conn); in MYSQLND_METHOD_PRIVATE() 333 mysqlnd_vio_free(conn->vio, conn->stats, conn->error_info); in MYSQLND_METHOD_PRIVATE() 506 …if (PASS == conn->vio->data->m.connect(conn->vio, *scheme, conn->persistent, conn->stats, conn->er… in MYSQLND_METHOD() 580 conn? conn->persistent:0, conn? (int)GET_CONNECTION_STATE(&conn->state):-1); 588 conn->m->send_close(conn); 591 conn->m->free_contents(conn); 742 conn->m->free_contents(conn); 1149 conn->m->dtor(conn); 1332 conn->m->send_close(conn); [all …]
|
H A D | mysqlnd.h | 70 #define mysqlnd_end_psession(conn) ((conn)->data)->m->end_psession((conn)->data) argument 108 #define mysqlnd_close(conn,is_forced) (conn)->m->close((conn), (is_forced)) argument 115 #define mysqlnd_use_result(conn) ((conn)->data)->m->use_result((conn)->data) argument 116 #define mysqlnd_store_result(conn) ((conn)->data)->m->store_result((conn)->data) argument 117 #define mysqlnd_next_result(conn) ((conn)->data)->m->next_result((conn)->data) argument 123 #define mysqlnd_errno(conn) ((conn)->data)->m->get_error_no((conn)->data) argument 124 #define mysqlnd_error(conn) ((conn)->data)->m->get_error_str((conn)->data) argument 125 #define mysqlnd_sqlstate(conn) ((conn)->data)->m->get_sqlstate((conn)->data) argument 135 #define mysqlnd_info(conn) ((conn)->data)->m->get_last_message((conn)->data) argument 140 #define mysqlnd_thread_id(conn) ((conn)->data)->m->get_thread_id((conn)->data) argument [all …]
|
H A D | mysqlnd_loaddata.c | 151 MYSQLND_VIO * vio = conn->vio; in mysqlnd_handle_local_infile() 198 ret = net->data->m.send(net, vio, empty_packet, 0, conn->stats, conn->error_info); in mysqlnd_handle_local_infile() 203 infile = conn->infile; in mysqlnd_handle_local_infile() 218 ret = net->data->m.send(net, vio, empty_packet, 0, conn->stats, conn->error_info); in mysqlnd_handle_local_infile() 224 if ((ret = net->data->m.send(net, vio, buf, bufsize, conn->stats, conn->error_info)) == 0) { in mysqlnd_handle_local_infile() 232 if ((ret = net->data->m.send(net, vio, empty_packet, 0, conn->stats, conn->error_info)) == 0) { in mysqlnd_handle_local_infile() 253 conn->payload_decoder_factory, in mysqlnd_handle_local_infile() 255 conn->error_info, in mysqlnd_handle_local_infile() 256 conn->upsert_status, in mysqlnd_handle_local_infile() 257 &conn->last_message)) { in mysqlnd_handle_local_infile() [all …]
|
H A D | mysqlnd_auth.c | 104 …conn->authentication_plugin_data.s = mnd_pemalloc(conn->authentication_plugin_data.l, conn->persis… in mysqlnd_run_authentication() 160 conn->m->set_client_option(conn, MYSQLND_OPT_AUTH_PROTOCOL, requested_protocol); in mysqlnd_run_authentication() 428 if (conn->m->get_server_version(conn) >= 50123) { in mysqlnd_auth_change_user() 480 if (conn->m->get_server_version(conn) > 50113L &&conn->m->get_server_version(conn) < 50118L) { in mysqlnd_auth_change_user() 490 ZEND_ASSERT(conn->username.s != user && conn->password.s != passwd); in mysqlnd_auth_change_user() 491 mysqlnd_set_persistent_string(&conn->username, user, user_len, conn->persistent); in mysqlnd_auth_change_user() 492 mysqlnd_set_persistent_string(&conn->password, passwd, passwd_len, conn->persistent); in mysqlnd_auth_change_user() 497 if (conn->m->get_server_version(conn) < 50123) { in mysqlnd_auth_change_user() 498 ret = conn->m->set_charset(conn, old_cs->name); in mysqlnd_auth_change_user() 912 if (conn->vio->data->ssl) { in mysqlnd_sha256_auth_get_auth_data() [all …]
|
H A D | mysqlnd_result.c | 116 if (result->conn) { in MYSQLND_METHOD() 117 result->conn->m->free_reference(result->conn); in MYSQLND_METHOD() 118 result->conn = NULL; in MYSQLND_METHOD() 305 conn->current_result->m.free_result(conn->current_result, TRUE); in mysqlnd_query_read_result_set_header() 419 MYSQLND_CONN_DATA * const conn = result->conn; in MYSQLND_METHOD() local 516 MYSQLND_CONN_DATA * const conn = result->conn; in MYSQLND_METHOD() local 565 MYSQLND_CONN_DATA * const conn = result->conn; in MYSQLND_METHOD() local 758 result->conn = conn->m->get_reference(conn); in MYSQLND_METHOD() 800 MYSQLND_CONN_DATA * const conn = result->conn; in MYSQLND_METHOD() local 977 MYSQLND_CONN_DATA *conn = result->conn; in MYSQLND_METHOD() local [all …]
|
H A D | mysqlnd_ps.c | 43 MYSQLND_CONN_DATA *conn = stmt->conn; in mysqlnd_stmt_send_cursor_fetch_command() local 59 const MYSQLND_CONN_DATA *conn = stmt->conn; in mysqlnd_stmt_check_state() local 76 MYSQLND_CONN_DATA * conn = stmt? stmt->conn : NULL; in MYSQLND_METHOD() local 146 MYSQLND_CONN_DATA * conn = stmt? stmt->conn : NULL; in MYSQLND_METHOD() local 214 MYSQLND_CONN_DATA * conn = stmt? stmt->conn : NULL; in MYSQLND_METHOD() local 227 MYSQLND_CONN_DATA * conn = stmt? stmt->conn : NULL; in MYSQLND_METHOD() local 452 result->conn = conn->m->get_reference(conn); in MYSQLND_METHOD() 525 stmt->result->conn = conn->m->get_reference(conn); in mysqlnd_stmt_execute_parse_response() 761 MYSQLND_CONN_DATA * conn = stmt->conn; in mysqlnd_fetch_stmt_row_cursor() local 918 MYSQLND_CONN_DATA * conn = stmt->conn; in MYSQLND_METHOD() local [all …]
|
H A D | mysqlnd_structs.h | 310 typedef enum_func_status (*func_mysqlnd_execute_com_ping)(MYSQLND_CONN_DATA * const conn); 479 typedef void (*func_mysqlnd_conn_data__dtor)(MYSQLND_CONN_DATA * conn); /* private */ 489 typedef void (*func_mysqlnd_conn_data__restart_psession)(MYSQLND_CONN_DATA * conn); 490 typedef void (*func_mysqlnd_conn_data__end_psession)(MYSQLND_CONN_DATA * conn); 498 typedef enum_func_status (*func_mysqlnd_conn_data__tx_commit)(MYSQLND_CONN_DATA * conn); 610 typedef MYSQLND * (*func_mysqlnd_conn__clone_object)(MYSQLND * const conn); 611 typedef void (*func_mysqlnd_conn__dtor)(MYSQLND * conn); 1069 MYSQLND_CONN_DATA * conn; member 1218 MYSQLND_CONN_DATA *conn; member 1254 MYSQLND_CONN_DATA *conn; member [all …]
|
/PHP-8.2/ext/pgsql/tests/ |
H A D | pg_delete_001.phpt | 12 $conn = pg_connect($conn_str); 14 pg_query($conn, 'CREATE SCHEMA phptests'); 16 pg_query($conn, 'CREATE TABLE foo (id INT, id2 INT)'); 19 pg_insert($conn, 'foo', array('id' => 1, 'id2' => 1)); 20 pg_insert($conn, 'foo', array('id' => 1, 'id2' => 2)); 21 pg_insert($conn, 'foo', array('id' => 1, 'id2' => 2)); 22 pg_insert($conn, 'foo', array('id' => 3, 'id2' => 3)); 29 pg_delete($conn, 'foo', array('id' => 1, 'id2' => 0)); 44 pg_query($conn, 'DROP TABLE foo'); 45 pg_query($conn, 'DROP TABLE phptests.foo'); [all …]
|
H A D | pg_select_001.phpt | 12 $conn = pg_connect($conn_str); 14 pg_query($conn, 'CREATE SCHEMA phptests'); 16 pg_query($conn, 'CREATE TABLE phptests.foo (id INT, id2 INT)'); 17 pg_query($conn, 'INSERT INTO phptests.foo VALUES (1,2)'); 18 pg_query($conn, 'INSERT INTO phptests.foo VALUES (2,3)'); 21 pg_query($conn, 'INSERT INTO phptests.bar VALUES (4,5)'); 22 pg_query($conn, 'INSERT INTO phptests.bar VALUES (6,7)'); 25 var_dump(pg_select($conn, 'foo', array('id' => 1))); 39 pg_query($conn, 'DROP TABLE phptests.foo'); 40 pg_query($conn, 'DROP TABLE phptests.bar'); [all …]
|
H A D | pg_update_001.phpt | 12 $conn = pg_connect($conn_str); 14 pg_query($conn, 'CREATE SCHEMA phptests'); 16 pg_query($conn, 'CREATE TABLE foo (id INT, id2 INT)'); 17 pg_query($conn, 'CREATE TABLE phptests.foo (id INT, id2 INT)'); 20 pg_insert($conn, 'foo', array('id' => 1, 'id2' => 1)); 21 pg_insert($conn, 'phptests.foo', array('id' => 1, 'id2' => 2)); 23 pg_update($conn, 'foo', array('id' => 10), array('id' => 1)); 26 pg_update($conn, 'phptests.foo', array('id' => 100), array('id2' => 2)); 34 pg_query($conn, 'DROP TABLE foo'); 35 pg_query($conn, 'DROP TABLE phptests.foo'); [all …]
|
H A D | bug68638.phpt | 12 $conn = pg_connect($conn_str); 16 pg_query($conn, "CREATE TABLE $table (id INT, value FLOAT)"); 18 pg_insert($conn,$table, array('id' => 1, 'value' => 1.2)); 19 pg_insert($conn,$table, array('id' => 2, 'value' => 10)); 20 pg_insert($conn,$table, array('id' => 3, 'value' => 15)); 22 var_dump(pg_update($conn,$table, array('value' => 'inf'), array('id' => 1), PGSQL_DML_STRING)); 24 pg_update($conn,$table, array('value' => 'inf'), array('id' => 1)); 25 pg_update($conn,$table, array('value' => '-inf'), array('id' => 2)); 26 pg_update($conn,$table, array('value' => '+inf'), array('id' => 3)); 28 $rs = pg_query($conn, "SELECT * FROM $table"); [all …]
|
H A D | pg_insert_001.phpt | 12 $conn = pg_connect($conn_str); 14 pg_query($conn, 'CREATE SCHEMA phptests'); 15 pg_query($conn, 'CREATE TABLE phptests.foo (id INT, id2 INT)'); 18 pg_insert($conn, 'foo', array('id' => 1, 'id2' => 1)); 20 pg_insert($conn, 'phptests.foo', array('id' => 1, 'id2' => 2)); 22 var_dump(pg_insert($conn, 'phptests.foo', array('id' => 1, 'id2' => 2), PGSQL_DML_STRING)); 24 var_dump(pg_select($conn, 'phptests.foo', array('id' => 1))); 26 pg_query($conn, 'DROP TABLE phptests.foo'); 27 pg_query($conn, 'DROP SCHEMA phptests');
|
H A D | lcmess.inc | 3 function _skip_lc_messages($conn, $lc_messages = 'C') 5 if (!_set_lc_messages($conn, $lc_messages)) { 10 function _set_lc_messages($conn, $lc_messages = 'C') 12 if (pg_fetch_result(pg_query($conn, "SHOW LC_MESSAGES"), 0, 0) != $lc_messages) { 13 if (!@pg_exec($conn, "SET LC_MESSAGES='{$lc_messages}'")) {
|
/PHP-8.2/ext/pdo_oci/tests/ |
H A D | oci_success_with_info.phpt | 24 $conn->exec(<<<'SQL' 38 $conn->exec(<<<'SQL' 52 $conn->exec(<<<'SQL' 64 $conn = connectAsAdmin(); 66 dropUser($conn); 67 dropProfile($conn); 79 var_dump($conn->errorInfo()); 81 $conn = connectAsAdmin(); 82 dropUser($conn); 83 dropProfile($conn); [all …]
|
/PHP-8.2/ext/odbc/tests/ |
H A D | bug71171.phpt | 12 $conn = odbc_connect($dsn, $user, $pass); 14 @odbc_exec($conn, 'CREATE DATABASE odbcTEST'); 16 odbc_exec($conn, 'CREATE TABLE FOO (ID INT, VARCHAR_COL NVARCHAR(40))'); 18 odbc_exec($conn, "INSERT INTO FOO(ID, VARCHAR_COL) VALUES (1, '" . chr(0x81) . "')"); 20 $res = odbc_exec($conn,"SELECT ID FROM FOO WHERE VARCHAR_COL = '" . chr(0x81) . "'"); 25 odbc_close($conn); 36 $conn = odbc_connect($dsn, $user, $pass); 38 odbc_exec($conn, 'DROP TABLE FOO'); 39 odbc_exec($conn, 'DROP DATABASE odbcTEST'); 41 odbc_close($conn);
|
H A D | odbc_exec_002.phpt | 12 $conn = odbc_connect($dsn, $user, $pass); 14 odbc_exec($conn, 'CREATE DATABASE odbcTEST'); 16 odbc_exec($conn, 'CREATE TABLE FOO (TEST INT)'); 18 odbc_exec($conn, 'INSERT INTO FOO VALUES (1)'); 19 odbc_exec($conn, 'INSERT INTO FOO VALUES (2)'); 21 $res = odbc_exec($conn, 'SELECT * FROM FOO'); 30 $conn = odbc_connect($dsn, $user, $pass); 31 odbc_exec($conn, 'DROP TABLE FOO'); 32 odbc_exec($conn, 'DROP DATABASE odbcTEST');
|
H A D | odbc_persistent_close.phpt | 12 $conn = odbc_connect($dsn, $user, $pass); 13 $result = @odbc_exec($conn, "SELECT @@Version"); 28 function set_context_info($conn, $string) { 33 function fetch_context_info($conn) { 48 $conn = odbc_pconnect($dsn, $user, $pass); 50 var_dump(fetch_context_info($conn)); 53 $conn = odbc_pconnect($dsn, $user, $pass); 54 var_dump(fetch_context_info($conn)); 57 odbc_close($conn); 58 $conn = odbc_pconnect($dsn, $user, $pass); [all …]
|
H A D | bug69975.phpt | 11 $conn = odbc_connect($dsn, $user, $pass); 12 @odbc_exec($conn, 'CREATE DATABASE odbcTEST'); 13 odbc_exec($conn, 'CREATE TABLE FOO (ID INT, VARCHAR_COL NVARCHAR(MAX))'); 14 odbc_exec($conn, "INSERT INTO FOO VALUES (1, 'foo')"); 16 $result = odbc_exec($conn, "SELECT VARCHAR_COL FROM FOO"); 31 $conn = odbc_connect($dsn, $user, $pass); 32 odbc_exec($conn, 'DROP TABLE FOO'); 33 odbc_exec($conn, 'DROP DATABASE odbcTEST');
|
H A D | odbc_free_result_001.phpt | 12 $conn = odbc_connect($dsn, $user, $pass); 14 odbc_exec($conn, 'CREATE DATABASE odbcTEST'); 16 odbc_exec($conn, 'CREATE TABLE FOO (TEST INT NOT NULL)'); 17 odbc_exec($conn, 'ALTER TABLE FOO ADD PRIMARY KEY (TEST)'); 19 odbc_exec($conn, 'INSERT INTO FOO VALUES (1)'); 20 odbc_exec($conn, 'INSERT INTO FOO VALUES (2)'); 22 $res = odbc_exec($conn, 'SELECT * FROM FOO'); 28 var_dump(odbc_free_result($conn)); 46 $conn = odbc_connect($dsn, $user, $pass); 47 odbc_exec($conn, 'DROP TABLE FOO'); [all …]
|
H A D | bug69354.phpt | 12 $conn = odbc_connect($dsn, $user, $pass); 14 @odbc_exec($conn, 'CREATE DATABASE odbcTEST'); 16 odbc_exec($conn, 'CREATE TABLE FOO (ID INT, VARCHAR_COL VARCHAR(100))'); 18 odbc_exec($conn, "INSERT INTO FOO(ID, VARCHAR_COL) VALUES (1, '" . str_repeat("a", 100) . "')"); 20 $res = odbc_exec($conn,"select VARCHAR_COL from FOO"); 38 $conn = odbc_connect($dsn, $user, $pass); 40 odbc_exec($conn, 'DROP TABLE FOO'); 41 odbc_exec($conn, 'DROP DATABASE odbcTEST');
|
H A D | bug73725.phpt | 12 $conn = odbc_connect($dsn, $user, $pass); 14 odbc_do($conn, "CREATE TABLE bug73725(i int, txt varchar(max), k int)"); 16 odbc_do($conn, "INSERT INTO bug73725 VALUES(101,'Any text', 33)"); 17 odbc_do($conn, "INSERT INTO bug73725 VALUES(102,'Müsliriegel', 34)"); 19 $rc = odbc_do($conn, "SELECT i, txt, k FROM bug73725"); 49 $conn = odbc_connect($dsn, $user, $pass); 51 odbc_exec($conn, 'DROP TABLE bug73725'); 53 odbc_close($conn);
|
H A D | bug68087.phpt | 15 $conn = odbc_connect($dsn, $user, $pass); 17 @odbc_exec($conn, 'CREATE DATABASE odbcTEST'); 19 odbc_exec($conn, 'CREATE TABLE FOO (ID INT, VARCHAR_COL VARCHAR(100), DATE_COL DATE)'); 21 odbc_exec($conn, "INSERT INTO FOO(ID, VARCHAR_COL, DATE_COL) VALUES (1, 'hello', '$id_1_date')"); 22 odbc_exec($conn, "INSERT INTO FOO(ID, VARCHAR_COL, DATE_COL) VALUES (2, 'helloagain', '$id_2_date')… 24 $res = odbc_exec($conn, 'SELECT * FROM FOO ORDER BY ID ASC'); 54 $conn = odbc_connect($dsn, $user, $pass); 56 odbc_exec($conn, 'DROP TABLE FOO'); 57 odbc_exec($conn, 'DROP DATABASE odbcTEST');
|
H A D | odbc_exec_001.phpt | 17 $conn = odbc_connect($dsn, $user, $pass); 19 odbc_exec($conn, 'foo', 'bar'); 20 odbc_exec($conn, 'foo'); 22 odbc_exec($conn, '', ''); 23 odbc_exec($conn, ''); 25 odbc_exec($conn, 1, 1); 26 odbc_exec($conn, 1); 28 odbc_exec($conn, NULL, NULL); 29 odbc_exec($conn, NULL);
|
/PHP-8.2/ext/mysqli/tests/ |
H A D | fake_server.inc | 526 private $conn; 651 $conn->read(); 653 $conn->read(); 668 $conn->read(); 670 $conn->read(); 682 $conn->read(); 684 $conn->read(); 695 $conn->read(); 697 $conn->read(); 699 $conn->read(); [all …]
|