/PHP-7.4/ext/oci8/ |
H A D | oci8_collection.c | 53 collection->connection = connection; in php_oci_collection_create() 236 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_collection_create() 246 php_oci_connection *connection = collection->connection; in php_oci_collection_size() local 253 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_collection_size() 265 php_oci_connection *connection = collection->connection; in php_oci_collection_max() local 278 php_oci_connection *connection = collection->connection; in php_oci_collection_trim() local 285 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_collection_trim() 306 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_collection_append_null() 329 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_collection_append_date() 345 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_collection_append_date() [all …]
|
H A D | oci8_lob.c | 69 descriptor->connection = connection; in php_oci_lob_create() 119 php_oci_connection *connection = descriptor->connection; in php_oci_lob_get_length() local 132 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_get_length() 141 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_get_length() 152 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_get_length() 210 php_oci_connection *connection = descriptor->connection; in php_oci_lob_calculate_buffer() local 223 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_calculate_buffer() 241 php_oci_connection *connection = descriptor->connection; in php_oci_lob_read() local 292 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_read() 366 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_read() [all …]
|
H A D | oci8_failover.c | 55 if (Z_ISUNDEF(connection->taf_callback) || Z_ISNULL(connection->taf_callback)) { in callback_fn() 60 ZVAL_RES(¶ms[0], connection->id); in callback_fn() 108 if (Z_ISUNDEF(connection->taf_callback) || Z_ISNULL(connection->taf_callback)) { in php_oci_register_taf_callback() 113 zval_ptr_dtor(&connection->taf_callback); in php_oci_register_taf_callback() 114 ZVAL_NULL(&connection->taf_callback); in php_oci_register_taf_callback() 116 if (!Z_ISUNDEF(connection->taf_callback)) { in php_oci_register_taf_callback() 120 ZVAL_NULL(&connection->taf_callback); in php_oci_register_taf_callback() 134 failover.fo_ctx = connection; in php_oci_register_taf_callback() 143 zval_ptr_dtor(&connection->taf_callback); in php_oci_register_taf_callback() 144 ZVAL_UNDEF(&connection->taf_callback); in php_oci_register_taf_callback() [all …]
|
H A D | oci8_dtrace.d | 20 …probe oci8__check__connection(void *connection, char *client_id, int is_open, long errcode, unsign… 22 probe oci8__connect__return(void *connection); 23 probe oci8__connection__close(void *connection); 25 probe oci8__execute__mode(void *connection, char *client_id, void *statement, unsigned int mode); 26 probe oci8__sqltext(void *connection, char *client_id, void *statement, char *sql); 28 probe oci8__connect__p__dtor__close(void *connection); 29 probe oci8__connect__p__dtor__release(void *connection); 30 probe oci8__connect__lookup(void *connection, int is_stub); 31 probe oci8__connect__expiry(void *connection, int is_stub, long idle_expiry, long timestamp); 32 …probe oci8__connect__type(int persistent, int exclusive, void *connection, long num_persistent, lo…
|
H A D | oci8.c | 1828 DTRACE_OCI8_CONNECT_LOOKUP(connection, connection && connection->is_stub ? 1 : 0); in php_oci_do_connect_ex() 1839 if (connection && connection->is_persistent && connection->is_stub) { in php_oci_do_connect_ex() 1924 if (connection == connection->id->ptr) { in php_oci_do_connect_ex() 2169 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_connection_rollback() 2190 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_connection_commit() 2218 if (!connection->using_spool && connection->svc) { in php_oci_connection_close() 2219 PHP_OCI_CALL(OCISessionEnd, (connection->svc, connection->err, connection->session, (ub4) 0)); in php_oci_connection_close() 2281 pefree(connection, connection->is_persistent); in php_oci_connection_close() 2361 …connection->is_attached = connection->is_open = connection->rb_on_disconnect = connection->used_th… in php_oci_connection_release() 2396 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_password_change() [all …]
|
H A D | oci8_interface.c | 50 php_oci_connection *connection; in PHP_FUNCTION() local 1740 if (connection) { in PHP_FUNCTION() 1741 errh = connection->err; in PHP_FUNCTION() 1747 if (connection) { in PHP_FUNCTION() 1748 errh = connection->err; in PHP_FUNCTION() 1872 connection->errcode = php_oci_error(connection->err, errstatus); in PHP_FUNCTION() 1887 pefree(connection->client_id, connection->is_persistent); in PHP_FUNCTION() 1957 connection->errcode = php_oci_error(connection->err, errstatus); in PHP_FUNCTION() 1990 connection->errcode = php_oci_error(connection->err, errstatus); in PHP_FUNCTION() 2023 connection->errcode = php_oci_error(connection->err, errstatus); in PHP_FUNCTION() [all …]
|
H A D | php_oci8_int.h | 176 php_oci_connection *connection; /* parent connection handle */ member 200 php_oci_connection *connection; /* parent connection handle */ member 225 php_oci_connection *connection; /* parent connection handle */ member 322 #define PHP_OCI_HANDLE_ERROR(connection, errcode) \ argument 352 (connection)->is_open = 0; \ 359 (connection)->is_open = 0; \ 372 #define PHP_OCI_ZVAL_TO_CONNECTION(zval, connection) \ argument 400 #define PHP_OCI_ZVAL_TO_CONNECTION_EX(zval, connection) \ argument 428 int php_oci_connection_rollback(php_oci_connection *connection); 429 int php_oci_connection_commit(php_oci_connection *connection); [all …]
|
H A D | oci8_statement.c | 69 connection->svc, in php_oci_statement_create() 71 connection->err, in php_oci_statement_create() 82 DTRACE_OCI8_SQLTEXT(connection, connection->client_id, statement, query); in php_oci_statement_create() 87 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_statement_create() 91 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_statement_create() 107 statement->connection = connection; in php_oci_statement_create() 161 statement2->connection = statement->connection; in php_oci_get_implicit_resultset() 1054 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_bind_post_exec() 1065 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_bind_post_exec() 1950 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_bind_array_helper_date() [all …]
|
/PHP-7.4/ext/oci8/tests/ |
H A D | error_parse.phpt | 15 // Test parse error for normal connection 26 echo "Normal connection: Parse error\n"; 31 // Test parse error for new connection 42 echo "New connection: Parse error\n"; 47 // Test parse error for persistent connection 58 echo "Persistent connection: Parse error\n"; 66 echo "No connection: error: "; 102 Normal connection: Parse error 113 New connection: Parse error 124 Persistent connection: Parse error [all …]
|
H A D | drcp_connect1.phpt | 38 echo " Select with connection 2\n"; 46 echo " Select with connection 3\n"; 66 echo " Select with persistent connection 2\n"; 75 resource(%d) of type (oci8 connection) 82 resource(%d) of type (oci8 connection) 83 Select with connection 2 87 resource(%d) of type (oci8 connection) 88 Select with connection 3 92 resource(%d) of type (oci8 persistent connection) 96 resource(%d) of type (oci8 persistent connection) [all …]
|
H A D | persistent.phpt | 20 resource(%d) of type (oci8 persistent connection) 21 resource(%d) of type (oci8 persistent connection) 22 resource(%d) of type (oci8 persistent connection) 23 resource(%d) of type (oci8 connection) 24 resource(%d) of type (oci8 connection) 25 resource(%d) of type (oci8 connection)
|
H A D | drcp_conn_close2.phpt | 13 // Test will open a connection 14 // Close the connection 15 // Open another connection 16 // With oci_close() the connection is released to the pool and hence the 26 // Open another connection 43 resource(%d) of type (oci8 connection) 44 resource(%d) of type (oci8 connection)
|
H A D | drcp_pconn_close2.phpt | 13 // Test will open a persistent connection 14 // Close the connection 15 // Open another connection 16 // With oci_close() the connection is released to the pool and hence the 17 // the second connection will be different 43 resource(%d) of type (oci8 persistent connection) 44 resource(%d) of type (oci8 persistent connection)
|
H A D | bug42134.phpt | 13 // Test collection creation error for normal connection 24 echo "Normal connection: New Collection error\n"; 29 // Test collection creation error for new connection 40 echo "New connection: New Collection error\n"; 45 // Test collection creation error for persistent connection 56 echo "Persistent connection: New Collection error\n"; 66 Normal connection: New Collection error 79 New connection: New Collection error 92 Persistent connection: New Collection error
|
H A D | connect_with_charset_001.phpt | 25 resource(%d) of type (oci8 connection) 26 resource(%d) of type (oci8 connection) 29 resource(%d) of type (oci8 connection) 32 resource(%d) of type (oci8 connection) 34 resource(%d) of type (oci8 connection) 35 resource(%d) of type (oci8 connection)
|
H A D | drcp_conn_close1.phpt | 13 // Test will open a connection 14 // Close the connection 15 // Open another connection 24 // Open another connection 42 resource(%d) of type (oci8 connection) 43 resource(%d) of type (oci8 connection)
|
H A D | drcp_pconn_close1.phpt | 13 // Test will open a persistent connection 14 // Close the connection 15 // Open another connection 23 // Open another connection 41 resource(%d) of type (oci8 persistent connection) 42 resource(%d) of type (oci8 persistent connection)
|
H A D | conn_attr_2.phpt | 2 Set and get of connection attributes across persistent connections and sysdba connection. 53 // Re-open a persistent connection and check for the attr values. 61 // Test with SYSDBA connection. 62 echo "\n**Test with SYSDBA connection**\n"; 83 resource(%d) of type (oci8 persistent connection) 90 resource(%d) of type (oci8 persistent connection) 97 resource(%d) of type (oci8 persistent connection) 104 resource(%d) of type (oci8 persistent connection) 110 **Test with SYSDBA connection**
|
/PHP-7.4/ext/standard/tests/http/ |
H A D | bug65634.phpt | 11 function do_test($version, $connection) { 18 if ($connection) { 19 $options['http']['header'] = "Connection: $connection"; 37 echo "HTTP/1.0, connection: close:\n"; 40 echo "HTTP/1.0, connection: keep-alive:\n"; 46 echo "HTTP/1.1, connection: close:\n"; 49 echo "HTTP/1.1, connection: keep-alive:\n"; 58 HTTP/1.0, connection: close: 63 HTTP/1.0, connection: keep-alive: 73 HTTP/1.1, connection: close: [all …]
|
/PHP-7.4/ext/mysqli/tests/ |
H A D | bug67983.phpt | 16 $connection = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket); 18 mysqli_options($connection, MYSQLI_OPT_INT_AND_FLOAT_NATIVE, true); 20 mysqli_set_charset($connection, 'utf8'); 21 mysqli_query($connection, 'DROP TABLE IF EXISTS test'); 22 mysqli_query($connection, 'CREATE TABLE test (id BIT(8))'); 23 mysqli_query($connection, 'INSERT INTO test VALUES (0), (1), (42)'); 25 $res = mysqli_query($connection, 'SELECT * FROM test');
|
H A D | bug79375.phpt | 147 Running query on first connection 148 Got %d for first connection 149 Running query on second connection 152 Running query on first connection 153 Got %d for first connection 157 Running query on first connection 158 Got %d for first connection 162 Running query on first connection 163 Got %d for first connection 167 Running query on first connection [all …]
|
H A D | mysqli_pconn_limits.phpt | 17 // opens a regular connection 26 printf("Regular connection 1 - '%s'\n", $row['_desc']); 38 printf("Regular connection 2 - '%s'\n", $row['_desc']); 52 printf("Persistent connection 1 - '%s'\n", $row['_desc']); 65 printf("Persistent connection 2 - '%s'\n", $row['_desc']); 79 printf("Persistent connection 3 - '%s'\n", $row['_desc']); 93 Regular connection 1 - 'works..' 94 Regular connection 2 - 'works...' 95 Persistent connection 1 - 'works...' 96 Persistent connection 2 - 'works...' [all …]
|
/PHP-7.4/ext/pdo_mysql/tests/ |
H A D | bug79375.phpt | 71 testNormalQuery($db, 'first connection'); 87 testUnbuffered($db, 'first connection'); 100 Running query on first connection 101 Got 1 for first connection 102 Running query on second connection 105 Running query on first connection 106 Got 1 for first connection 107 Running query on second connection 110 Running query on first connection 111 Got 1 for first connection [all …]
|
/PHP-7.4/ext/pdo_sqlite/tests/ |
H A D | bug78192.phpt | 9 $connection = new \PDO('sqlite::memory:'); 10 $connection->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION); 11 $connection->query('CREATE TABLE user (id INTEGER PRIMARY KEY NOT NULL, name VARCHAR(255) NOT NULL)… 13 $stmt = $connection->prepare('INSERT INTO user (id, name) VALUES(:id, :name)'); 19 $stmt = $connection->prepare('SELECT * FROM user WHERE id = :id'); 23 $connection->query('ALTER TABLE user ADD new_col VARCHAR(255)');
|
/PHP-7.4/ext/pdo_oci/tests/ |
H A D | pdo_oci_attr_autocommit_3.phpt | 2 PDO_OCI: Attribute: closing a connection in non-autocommit mode commits data 14 // Check connection can be created with AUTOCOMMIT off 32 $dbh = null; // close first connection 34 echo "Second connection should be able to see committed data\n"; 50 Second connection should be able to see committed data
|