Lines Matching refs:connection

54 php_oci_descriptor *php_oci_lob_create (php_oci_connection *connection, long type TSRMLS_DC)  in php_oci_lob_create()  argument
72 descriptor->connection = connection; in php_oci_lob_create()
73 zend_list_addref(descriptor->connection->rsrc_id); in php_oci_lob_create()
75 …PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIDescriptorAlloc, (connection->env, (dvoid*)&(descriptor->de… in php_oci_lob_create()
79 PHP_OCI_HANDLE_ERROR(connection, OCI_G(errcode)); in php_oci_lob_create()
90 descriptor->charset_id = connection->charset; in php_oci_lob_create()
95 if (!connection->descriptors) { in php_oci_lob_create()
96 ALLOC_HASHTABLE(connection->descriptors); in php_oci_lob_create()
97 zend_hash_init(connection->descriptors, 0, NULL, php_oci_descriptor_flush_hash_dtor, 0); in php_oci_lob_create()
98 connection->descriptor_count = 0; in php_oci_lob_create()
101 descriptor->index = (connection->descriptor_count)++; in php_oci_lob_create()
102 if (connection->descriptor_count == LONG_MAX) { in php_oci_lob_create()
104 php_oci_connection_descriptors_free(connection TSRMLS_CC); in php_oci_lob_create()
108 …zend_hash_index_update(connection->descriptors,descriptor->index,&descriptor,sizeof(php_oci_descri… in php_oci_lob_create()
118 php_oci_connection *connection = descriptor->connection; in php_oci_lob_get_length() local
127 …PHP_OCI_CALL_RETURN(connection->errcode, OCILobFileOpen, (connection->svc, connection->err, descri… in php_oci_lob_get_length()
128 if (connection->errcode != OCI_SUCCESS) { in php_oci_lob_get_length()
129 connection->errcode = php_oci_error(connection->err, connection->errcode TSRMLS_CC); 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(connection->errcode, OCILobGetLength, (connection->svc, connection->err, descr… in php_oci_lob_get_length()
137 if (connection->errcode != OCI_SUCCESS) { in php_oci_lob_get_length()
138 connection->errcode = php_oci_error(connection->err, connection->errcode TSRMLS_CC); 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(connection->errcode, OCILobFileClose, (connection->svc, connection->err, descr… in php_oci_lob_get_length()
148 if (connection->errcode != OCI_SUCCESS) { in php_oci_lob_get_length()
149 connection->errcode = php_oci_error(connection->err, connection->errcode TSRMLS_CC); in php_oci_lob_get_length()
150 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_get_length()
209 php_oci_connection *connection = descriptor->connection; in php_oci_lob_calculate_buffer() local
217 …PHP_OCI_CALL_RETURN(connection->errcode, OCILobGetChunkSize, (connection->svc, connection->err, de… in php_oci_lob_calculate_buffer()
219 if (connection->errcode != OCI_SUCCESS) { in php_oci_lob_calculate_buffer()
220 connection->errcode = php_oci_error(connection->err, connection->errcode TSRMLS_CC); in php_oci_lob_calculate_buffer()
221 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_calculate_buffer()
238 php_oci_connection *connection = descriptor->connection; in php_oci_lob_read() local
289 …PHP_OCI_CALL_RETURN(connection->errcode, OCILobFileOpen, (connection->svc, connection->err, descri… in php_oci_lob_read()
291 if (connection->errcode != OCI_SUCCESS) { in php_oci_lob_read()
292 connection->errcode = php_oci_error(connection->err, connection->errcode TSRMLS_CC); in php_oci_lob_read()
293 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_read()
299 …PHP_OCI_CALL_RETURN(connection->errcode, OCILobCharSetId, (connection->env, connection->err, descr… in php_oci_lob_read()
301 if (connection->errcode != OCI_SUCCESS) { in php_oci_lob_read()
302 connection->errcode = php_oci_error(connection->err, connection->errcode TSRMLS_CC); in php_oci_lob_read()
303 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_read()
313 …PHP_OCI_CALL_RETURN(connection->errcode, OCINlsNumericInfoGet, (connection->env, connection->err, … in php_oci_lob_read()
315 if (connection->errcode != OCI_SUCCESS) { in php_oci_lob_read()
316 connection->errcode = php_oci_error(connection->err, connection->errcode TSRMLS_CC); in php_oci_lob_read()
317 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_read()
340 PHP_OCI_CALL_RETURN(connection->errcode, OCILobRead2, in php_oci_lob_read()
342 connection->svc, in php_oci_lob_read()
343 connection->err, in php_oci_lob_read()
373 PHP_OCI_CALL_RETURN(connection->errcode, OCILobRead, in php_oci_lob_read()
375 connection->svc, in php_oci_lob_read()
376 connection->err, in php_oci_lob_read()
394 if (connection->errcode != OCI_SUCCESS) { in php_oci_lob_read()
395 connection->errcode = php_oci_error(connection->err, connection->errcode TSRMLS_CC); in php_oci_lob_read()
396 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_read()
408 …PHP_OCI_CALL_RETURN(connection->errcode, OCILobFileClose, (connection->svc, connection->err, descr… in php_oci_lob_read()
410 if (connection->errcode != OCI_SUCCESS) { in php_oci_lob_read()
411 connection->errcode = php_oci_error(connection->err, connection->errcode TSRMLS_CC); in php_oci_lob_read()
412 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_read()
430 php_oci_connection *connection = (php_oci_connection *) descriptor->connection; in php_oci_lob_write() local
450 PHP_OCI_CALL_RETURN(connection->errcode, OCILobWrite, in php_oci_lob_write()
452 connection->svc, in php_oci_lob_write()
453 connection->err, in php_oci_lob_write()
467 if (connection->errcode) { in php_oci_lob_write()
468 connection->errcode = php_oci_error(connection->err, connection->errcode TSRMLS_CC); in php_oci_lob_write()
469 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_write()
492 php_oci_connection *connection = descriptor->connection; in php_oci_lob_set_buffering() local
505 …PHP_OCI_CALL_RETURN(connection->errcode, OCILobEnableBuffering, (connection->svc, connection->err,… in php_oci_lob_set_buffering()
507 …PHP_OCI_CALL_RETURN(connection->errcode, OCILobDisableBuffering, (connection->svc, connection->err… in php_oci_lob_set_buffering()
510 if (connection->errcode != OCI_SUCCESS) { in php_oci_lob_set_buffering()
511 connection->errcode = php_oci_error(connection->err, connection->errcode TSRMLS_CC); in php_oci_lob_set_buffering()
512 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_set_buffering()
534 php_oci_connection *connection = descriptor_dest->connection; in php_oci_lob_copy() local
556 PHP_OCI_CALL_RETURN(connection->errcode, OCILobCopy, in php_oci_lob_copy()
558 connection->svc, in php_oci_lob_copy()
559 connection->err, in php_oci_lob_copy()
568 if (connection->errcode != OCI_SUCCESS) { in php_oci_lob_copy()
569 connection->errcode = php_oci_error(connection->err, connection->errcode TSRMLS_CC); in php_oci_lob_copy()
570 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_copy()
581 php_oci_connection *connection = descriptor->connection; in php_oci_lob_close() local
584 …PHP_OCI_CALL_RETURN(connection->errcode, OCILobClose, (connection->svc, connection->err, descripto… in php_oci_lob_close()
587 if (connection->errcode != OCI_SUCCESS) { in php_oci_lob_close()
588 connection->errcode = php_oci_error(connection->err, connection->errcode TSRMLS_CC); in php_oci_lob_close()
589 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_close()
604 php_oci_connection *connection = descriptor->connection; in php_oci_temp_lob_close() local
607 …PHP_OCI_CALL_RETURN(connection->errcode, OCILobIsTemporary, (connection->env,connection->err, desc… in php_oci_temp_lob_close()
609 if (connection->errcode != OCI_SUCCESS) { in php_oci_temp_lob_close()
610 connection->errcode = php_oci_error(connection->err, connection->errcode TSRMLS_CC); in php_oci_temp_lob_close()
611 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_temp_lob_close()
616 …PHP_OCI_CALL_RETURN(connection->errcode, OCILobFreeTemporary, (connection->svc, connection->err, d… in php_oci_temp_lob_close()
618 if (connection->errcode != OCI_SUCCESS) { in php_oci_temp_lob_close()
619 connection->errcode = php_oci_error(connection->err, connection->errcode TSRMLS_CC); in php_oci_temp_lob_close()
620 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_temp_lob_close()
633 php_oci_connection *connection = descriptor->connection; in php_oci_lob_flush() local
657 …PHP_OCI_CALL_RETURN(connection->errcode, OCILobFlushBuffer, (connection->svc, connection->err, lob… in php_oci_lob_flush()
659 if (connection->errcode != OCI_SUCCESS) { in php_oci_lob_flush()
660 connection->errcode = php_oci_error(connection->err, connection->errcode TSRMLS_CC); in php_oci_lob_flush()
661 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_flush()
674 if (!descriptor || !descriptor->connection) { in php_oci_lob_free()
678 if (descriptor->connection->descriptors) { in php_oci_lob_free()
680 zend_hash_index_del(descriptor->connection->descriptors, descriptor->index); in php_oci_lob_free()
681 if (zend_hash_num_elements(descriptor->connection->descriptors) == 0) { in php_oci_lob_free()
682 descriptor->connection->descriptor_count = 0; in php_oci_lob_free()
684 if (descriptor->index + 1 == descriptor->connection->descriptor_count) { in php_oci_lob_free()
696 descriptor->connection->descriptor_count--; in php_oci_lob_free()
712 zend_list_delete(descriptor->connection->rsrc_id); in php_oci_lob_free()
723 php_oci_connection *connection = descriptor->connection; local
742 PHP_OCI_CALL_RETURN(connection->errcode,
745 connection->svc,
746 connection->err,
760 if (connection->errcode != OCI_SUCCESS) {
761 connection->errcode = php_oci_error(connection->err, connection->errcode TSRMLS_CC);
762 PHP_OCI_HANDLE_ERROR(connection, connection->errcode);
777 php_oci_connection *connection = descriptor_dest->connection; local
794 …PHP_OCI_CALL_RETURN(connection->errcode, OCILobAppend, (connection->svc, connection->err, lob_dest…
796 if (connection->errcode != OCI_SUCCESS) {
797 connection->errcode = php_oci_error(connection->err, connection->errcode TSRMLS_CC);
798 PHP_OCI_HANDLE_ERROR(connection, connection->errcode);
808 php_oci_connection *connection = descriptor->connection; local
830 …PHP_OCI_CALL_RETURN(connection->errcode, OCILobTrim, (connection->svc, connection->err, lob, new_l…
832 if (connection->errcode != OCI_SUCCESS) {
833 connection->errcode = php_oci_error(connection->err, connection->errcode TSRMLS_CC);
834 PHP_OCI_HANDLE_ERROR(connection, connection->errcode);
846 php_oci_connection *connection = descriptor->connection; local
864 …PHP_OCI_CALL_RETURN(connection->errcode, OCILobErase, (connection->svc, connection->err, lob, (ub4…
866 if (connection->errcode != OCI_SUCCESS) {
867 connection->errcode = php_oci_error(connection->err, connection->errcode TSRMLS_CC);
868 PHP_OCI_HANDLE_ERROR(connection, connection->errcode);
880 php_oci_connection *connection = descriptor_first->connection; local
884 …PHP_OCI_CALL_RETURN(connection->errcode, OCILobIsEqual, (connection->env, first_lob, second_lob, r…
886 if (connection->errcode) {
887 connection->errcode = php_oci_error(connection->err, connection->errcode TSRMLS_CC);
888 PHP_OCI_HANDLE_ERROR(connection, connection->errcode);
898 php_oci_connection *connection = descriptor->connection; local
917 PHP_OCI_CALL_RETURN(connection->errcode, OCILobCreateTemporary,
919 connection->svc,
920 connection->err,
930 if (connection->errcode) {
931 connection->errcode = php_oci_error(connection->err, connection->errcode TSRMLS_CC);
932 PHP_OCI_HANDLE_ERROR(connection, connection->errcode);
936 …PHP_OCI_CALL_RETURN(connection->errcode, OCILobOpen, (connection->svc, connection->err, lob, OCI_L…
938 if (connection->errcode) {
939 connection->errcode = php_oci_error(connection->err, connection->errcode TSRMLS_CC);
940 PHP_OCI_HANDLE_ERROR(connection, connection->errcode);