Lines Matching refs:connection

48 php_oci_descriptor *php_oci_lob_create (php_oci_connection *connection, zend_long type)  in php_oci_lob_create()  argument
67 descriptor->connection = connection; in php_oci_lob_create()
68 GC_ADDREF(descriptor->connection->id); in php_oci_lob_create()
70 …PHP_OCI_CALL_RETURN(errstatus, OCIDescriptorAlloc, (connection->env, (dvoid*)&(descriptor->descrip… in php_oci_lob_create()
74 PHP_OCI_HANDLE_ERROR(connection, OCI_G(errcode)); in php_oci_lob_create()
87 descriptor->charset_id = connection->charset; in php_oci_lob_create()
93 if (!connection->descriptors) { in php_oci_lob_create()
94 ALLOC_HASHTABLE(connection->descriptors); in php_oci_lob_create()
95 zend_hash_init(connection->descriptors, 0, NULL, php_oci_descriptor_flush_hash_dtor, 0); in php_oci_lob_create()
96 connection->descriptor_count = 0; in php_oci_lob_create()
99 descriptor->index = (connection->descriptor_count)++; in php_oci_lob_create()
100 if (connection->descriptor_count == LONG_MAX) { in php_oci_lob_create()
102 php_oci_connection_descriptors_free(connection); in php_oci_lob_create()
106 zend_hash_index_update_ptr(connection->descriptors, descriptor->index, descriptor); in php_oci_lob_create()
117 php_oci_connection *connection = descriptor->connection; in php_oci_lob_get_length() local
127 …PHP_OCI_CALL_RETURN(errstatus, OCILobFileOpen, (connection->svc, connection->err, descriptor->desc… in php_oci_lob_get_length()
129 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_lob_get_length()
130 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_get_length()
135 …PHP_OCI_CALL_RETURN(errstatus, OCILobGetLength, (connection->svc, connection->err, descriptor->des… in php_oci_lob_get_length()
138 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_lob_get_length()
139 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_get_length()
146 …PHP_OCI_CALL_RETURN(errstatus, OCILobFileClose, (connection->svc, connection->err, descriptor->des… in php_oci_lob_get_length()
149 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_lob_get_length()
150 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_get_length()
155 connection->errcode = 0; /* retain backwards compat with OCI8 1.4 */ in php_oci_lob_get_length()
208 php_oci_connection *connection = descriptor->connection; in php_oci_lob_calculate_buffer() local
217 …PHP_OCI_CALL_RETURN(errstatus, OCILobGetChunkSize, (connection->svc, connection->err, descriptor->… in php_oci_lob_calculate_buffer()
220 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_lob_calculate_buffer()
221 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_calculate_buffer()
225 connection->errcode = 0; /* retain backwards compat with OCI8 1.4 */ in php_oci_lob_calculate_buffer()
239 php_oci_connection *connection = descriptor->connection; in php_oci_lob_read() local
286 …PHP_OCI_CALL_RETURN(errstatus, OCILobFileOpen, (connection->svc, connection->err, descriptor->desc… in php_oci_lob_read()
289 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_lob_read()
290 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_read()
296 …PHP_OCI_CALL_RETURN(errstatus, OCILobCharSetId, (connection->env, connection->err, descriptor->des… in php_oci_lob_read()
299 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_lob_read()
300 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_read()
310 …PHP_OCI_CALL_RETURN(errstatus, OCINlsNumericInfoGet, (connection->env, connection->err, &bytes_per… in php_oci_lob_read()
313 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_lob_read()
314 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_read()
338 connection->svc, in php_oci_lob_read()
339 connection->err, in php_oci_lob_read()
363 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_lob_read()
364 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_read()
376 …PHP_OCI_CALL_RETURN(errstatus, OCILobFileClose, (connection->svc, connection->err, descriptor->des… in php_oci_lob_read()
379 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_lob_read()
380 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_read()
390 connection->errcode = 0; /* retain backwards compat with OCI8 1.4 */ in php_oci_lob_read()
400 php_oci_connection *connection = (php_oci_connection *) descriptor->connection; in php_oci_lob_write() local
419 connection->svc, in php_oci_lob_write()
420 connection->err, in php_oci_lob_write()
435 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_lob_write()
436 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_write()
452 connection->errcode = 0; /* retain backwards compat with OCI8 1.4 */ in php_oci_lob_write()
461 php_oci_connection *connection = descriptor->connection; in php_oci_lob_set_buffering() local
475 …PHP_OCI_CALL_RETURN(errstatus, OCILobEnableBuffering, (connection->svc, connection->err, descripto… in php_oci_lob_set_buffering()
477 …PHP_OCI_CALL_RETURN(errstatus, OCILobDisableBuffering, (connection->svc, connection->err, descript… in php_oci_lob_set_buffering()
481 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_lob_set_buffering()
482 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_set_buffering()
486 connection->errcode = 0; /* retain backwards compat with OCI8 1.4 */ in php_oci_lob_set_buffering()
507 php_oci_connection *connection = descriptor_dest->connection; in php_oci_lob_copy() local
532 connection->svc, in php_oci_lob_copy()
533 connection->err, in php_oci_lob_copy()
543 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_lob_copy()
544 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_copy()
548 connection->errcode = 0; /* retain backwards compat with OCI8 1.4 */ in php_oci_lob_copy()
557 php_oci_connection *connection = descriptor->connection; in php_oci_lob_close() local
561 …PHP_OCI_CALL_RETURN(errstatus, OCILobClose, (connection->svc, connection->err, descriptor->descrip… in php_oci_lob_close()
564 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_lob_close()
565 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_close()
568 connection->errcode = 0; /* retain backwards compat with OCI8 1.4 */ in php_oci_lob_close()
583 php_oci_connection *connection = descriptor->connection; in php_oci_temp_lob_close() local
587 …PHP_OCI_CALL_RETURN(errstatus, OCILobIsTemporary, (connection->env,connection->err, descriptor->de… in php_oci_temp_lob_close()
590 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_temp_lob_close()
591 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_temp_lob_close()
596 …PHP_OCI_CALL_RETURN(errstatus, OCILobFreeTemporary, (connection->svc, connection->err, descriptor-… in php_oci_temp_lob_close()
599 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_temp_lob_close()
600 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_temp_lob_close()
604 connection->errcode = 0; /* retain backwards compat with OCI8 1.4 */ in php_oci_temp_lob_close()
614 php_oci_connection *connection = descriptor->connection; in php_oci_lob_flush() local
639 …PHP_OCI_CALL_RETURN(errstatus, OCILobFlushBuffer, (connection->svc, connection->err, lob, (ub4) fl… in php_oci_lob_flush()
642 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_lob_flush()
643 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_flush()
649 connection->errcode = 0; /* retain backwards compat with OCI8 1.4 */ in php_oci_lob_flush()
658 if (!descriptor || !descriptor->connection) { in php_oci_lob_free()
662 if (descriptor->connection->descriptors) { in php_oci_lob_free()
663 if (zend_hash_num_elements(descriptor->connection->descriptors) == 0) { in php_oci_lob_free()
664 descriptor->connection->descriptor_count = 0; in php_oci_lob_free()
667 zend_hash_index_del(descriptor->connection->descriptors, descriptor->index); in php_oci_lob_free()
668 if (descriptor->index + 1 == descriptor->connection->descriptor_count) { in php_oci_lob_free()
680 descriptor->connection->descriptor_count--; in php_oci_lob_free()
696 zend_list_delete(descriptor->connection->id); in php_oci_lob_free()
708 php_oci_connection *connection = descriptor->connection; in php_oci_lob_import() local
726 connection->svc, in php_oci_lob_import()
727 connection->err, in php_oci_lob_import()
742 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_lob_import()
743 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_import()
747 connection->errcode = 0; /* retain backwards compat with OCI8 1.4 */ in php_oci_lob_import()
761 php_oci_connection *connection = descriptor_dest->connection; in php_oci_lob_append() local
779 …PHP_OCI_CALL_RETURN(errstatus, OCILobAppend, (connection->svc, connection->err, lob_dest, lob_from… in php_oci_lob_append()
782 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_lob_append()
783 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_append()
786 connection->errcode = 0; /* retain backwards compat with OCI8 1.4 */ in php_oci_lob_append()
795 php_oci_connection *connection = descriptor->connection; in php_oci_lob_truncate() local
818 …PHP_OCI_CALL_RETURN(errstatus, OCILobTrim, (connection->svc, connection->err, lob, (ub4) new_lob_l… in php_oci_lob_truncate()
821 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_lob_truncate()
822 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_truncate()
827 connection->errcode = 0; /* retain backwards compat with OCI8 1.4 */ in php_oci_lob_truncate()
837 php_oci_connection *connection = descriptor->connection; in php_oci_lob_erase() local
856 …PHP_OCI_CALL_RETURN(errstatus, OCILobErase, (connection->svc, connection->err, lob, (ub4 *)&length… in php_oci_lob_erase()
859 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_lob_erase()
860 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_erase()
865 connection->errcode = 0; /* retain backwards compat with OCI8 1.4 */ in php_oci_lob_erase()
874 php_oci_connection *connection = descriptor_first->connection; in php_oci_lob_is_equal() local
879 PHP_OCI_CALL_RETURN(errstatus, OCILobIsEqual, (connection->env, first_lob, second_lob, result)); in php_oci_lob_is_equal()
882 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_lob_is_equal()
883 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_is_equal()
886 connection->errcode = 0; /* retain backwards compat with OCI8 1.4 */ in php_oci_lob_is_equal()
895 php_oci_connection *connection = descriptor->connection; in php_oci_lob_write_tmp() local
917 connection->svc, in php_oci_lob_write_tmp()
918 connection->err, in php_oci_lob_write_tmp()
929 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_lob_write_tmp()
930 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_write_tmp()
934 …PHP_OCI_CALL_RETURN(errstatus, OCILobOpen, (connection->svc, connection->err, lob, OCI_LOB_READWRI… in php_oci_lob_write_tmp()
937 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_lob_write_tmp()
938 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_write_tmp()
943 connection->errcode = 0; /* retain backwards compat with OCI8 1.4 */ in php_oci_lob_write_tmp()