Lines Matching refs:connection

50 php_oci_descriptor *php_oci_lob_create (php_oci_connection *connection, zend_long type)  in php_oci_lob_create()  argument
69 descriptor->connection = connection; in php_oci_lob_create()
70 GC_ADDREF(descriptor->connection->id); in php_oci_lob_create()
72 …PHP_OCI_CALL_RETURN(errstatus, OCIDescriptorAlloc, (connection->env, (dvoid*)&(descriptor->descrip… in php_oci_lob_create()
76 PHP_OCI_HANDLE_ERROR(connection, OCI_G(errcode)); in php_oci_lob_create()
89 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); in php_oci_lob_create()
108 zend_hash_index_update_ptr(connection->descriptors, descriptor->index, descriptor); in php_oci_lob_create()
119 php_oci_connection *connection = descriptor->connection; in php_oci_lob_get_length() local
129 …PHP_OCI_CALL_RETURN(errstatus, OCILobFileOpen, (connection->svc, connection->err, descriptor->desc… in php_oci_lob_get_length()
131 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_lob_get_length()
132 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_get_length()
137 …PHP_OCI_CALL_RETURN(errstatus, OCILobGetLength, (connection->svc, connection->err, descriptor->des… in php_oci_lob_get_length()
140 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_lob_get_length()
141 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_get_length()
148 …PHP_OCI_CALL_RETURN(errstatus, OCILobFileClose, (connection->svc, connection->err, descriptor->des… in php_oci_lob_get_length()
151 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_lob_get_length()
152 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_get_length()
157 connection->errcode = 0; /* retain backwards compat with OCI8 1.4 */ in php_oci_lob_get_length()
210 php_oci_connection *connection = descriptor->connection; in php_oci_lob_calculate_buffer() local
219 …PHP_OCI_CALL_RETURN(errstatus, OCILobGetChunkSize, (connection->svc, connection->err, descriptor->… in php_oci_lob_calculate_buffer()
222 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_lob_calculate_buffer()
223 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_calculate_buffer()
227 connection->errcode = 0; /* retain backwards compat with OCI8 1.4 */ in php_oci_lob_calculate_buffer()
241 php_oci_connection *connection = descriptor->connection; in php_oci_lob_read() local
288 …PHP_OCI_CALL_RETURN(errstatus, OCILobFileOpen, (connection->svc, connection->err, descriptor->desc… in php_oci_lob_read()
291 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_lob_read()
292 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_read()
298 …PHP_OCI_CALL_RETURN(errstatus, OCILobCharSetId, (connection->env, connection->err, descriptor->des… in php_oci_lob_read()
301 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_lob_read()
302 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_read()
312 …PHP_OCI_CALL_RETURN(errstatus, OCINlsNumericInfoGet, (connection->env, connection->err, &bytes_per… in php_oci_lob_read()
315 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_lob_read()
316 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_read()
340 connection->svc, in php_oci_lob_read()
341 connection->err, in php_oci_lob_read()
365 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_lob_read()
366 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_read()
378 …PHP_OCI_CALL_RETURN(errstatus, OCILobFileClose, (connection->svc, connection->err, descriptor->des… in php_oci_lob_read()
381 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_lob_read()
382 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_read()
392 connection->errcode = 0; /* retain backwards compat with OCI8 1.4 */ in php_oci_lob_read()
402 php_oci_connection *connection = (php_oci_connection *) descriptor->connection; in php_oci_lob_write() local
421 connection->svc, in php_oci_lob_write()
422 connection->err, in php_oci_lob_write()
437 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_lob_write()
438 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_write()
454 connection->errcode = 0; /* retain backwards compat with OCI8 1.4 */ in php_oci_lob_write()
463 php_oci_connection *connection = descriptor->connection; in php_oci_lob_set_buffering() local
477 …PHP_OCI_CALL_RETURN(errstatus, OCILobEnableBuffering, (connection->svc, connection->err, descripto… in php_oci_lob_set_buffering()
479 …PHP_OCI_CALL_RETURN(errstatus, OCILobDisableBuffering, (connection->svc, connection->err, descript… in php_oci_lob_set_buffering()
483 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_lob_set_buffering()
484 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_set_buffering()
488 connection->errcode = 0; /* retain backwards compat with OCI8 1.4 */ in php_oci_lob_set_buffering()
509 php_oci_connection *connection = descriptor_dest->connection; in php_oci_lob_copy() local
534 connection->svc, in php_oci_lob_copy()
535 connection->err, in php_oci_lob_copy()
545 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_lob_copy()
546 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_copy()
550 connection->errcode = 0; /* retain backwards compat with OCI8 1.4 */ in php_oci_lob_copy()
559 php_oci_connection *connection = descriptor->connection; in php_oci_lob_close() local
563 …PHP_OCI_CALL_RETURN(errstatus, OCILobClose, (connection->svc, connection->err, descriptor->descrip… in php_oci_lob_close()
566 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_lob_close()
567 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_close()
570 connection->errcode = 0; /* retain backwards compat with OCI8 1.4 */ in php_oci_lob_close()
585 php_oci_connection *connection = descriptor->connection; in php_oci_temp_lob_close() local
589 …PHP_OCI_CALL_RETURN(errstatus, OCILobIsTemporary, (connection->env,connection->err, descriptor->de… in php_oci_temp_lob_close()
592 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_temp_lob_close()
593 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_temp_lob_close()
598 …PHP_OCI_CALL_RETURN(errstatus, OCILobFreeTemporary, (connection->svc, connection->err, descriptor-… in php_oci_temp_lob_close()
601 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_temp_lob_close()
602 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_temp_lob_close()
606 connection->errcode = 0; /* retain backwards compat with OCI8 1.4 */ in php_oci_temp_lob_close()
616 php_oci_connection *connection = descriptor->connection; in php_oci_lob_flush() local
641 …PHP_OCI_CALL_RETURN(errstatus, OCILobFlushBuffer, (connection->svc, connection->err, lob, (ub4) fl… in php_oci_lob_flush()
644 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_lob_flush()
645 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_flush()
651 connection->errcode = 0; /* retain backwards compat with OCI8 1.4 */ in php_oci_lob_flush()
660 if (!descriptor || !descriptor->connection) { in php_oci_lob_free()
664 if (descriptor->connection->descriptors) { in php_oci_lob_free()
665 if (zend_hash_num_elements(descriptor->connection->descriptors) == 0) { in php_oci_lob_free()
666 descriptor->connection->descriptor_count = 0; in php_oci_lob_free()
669 zend_hash_index_del(descriptor->connection->descriptors, descriptor->index); in php_oci_lob_free()
670 if (descriptor->index + 1 == descriptor->connection->descriptor_count) { in php_oci_lob_free()
682 descriptor->connection->descriptor_count--; in php_oci_lob_free()
698 zend_list_delete(descriptor->connection->id); in php_oci_lob_free()
710 php_oci_connection *connection = descriptor->connection; in php_oci_lob_import() local
728 connection->svc, in php_oci_lob_import()
729 connection->err, in php_oci_lob_import()
744 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_lob_import()
745 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_import()
749 connection->errcode = 0; /* retain backwards compat with OCI8 1.4 */ in php_oci_lob_import()
763 php_oci_connection *connection = descriptor_dest->connection; in php_oci_lob_append() local
781 …PHP_OCI_CALL_RETURN(errstatus, OCILobAppend, (connection->svc, connection->err, lob_dest, lob_from… in php_oci_lob_append()
784 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_lob_append()
785 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_append()
788 connection->errcode = 0; /* retain backwards compat with OCI8 1.4 */ in php_oci_lob_append()
797 php_oci_connection *connection = descriptor->connection; in php_oci_lob_truncate() local
820 …PHP_OCI_CALL_RETURN(errstatus, OCILobTrim, (connection->svc, connection->err, lob, (ub4) new_lob_l… in php_oci_lob_truncate()
823 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_lob_truncate()
824 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_truncate()
829 connection->errcode = 0; /* retain backwards compat with OCI8 1.4 */ in php_oci_lob_truncate()
839 php_oci_connection *connection = descriptor->connection; in php_oci_lob_erase() local
858 …PHP_OCI_CALL_RETURN(errstatus, OCILobErase, (connection->svc, connection->err, lob, (ub4 *)&length… in php_oci_lob_erase()
861 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_lob_erase()
862 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_erase()
867 connection->errcode = 0; /* retain backwards compat with OCI8 1.4 */ in php_oci_lob_erase()
876 php_oci_connection *connection = descriptor_first->connection; in php_oci_lob_is_equal() local
881 PHP_OCI_CALL_RETURN(errstatus, OCILobIsEqual, (connection->env, first_lob, second_lob, result)); in php_oci_lob_is_equal()
884 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_lob_is_equal()
885 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_is_equal()
888 connection->errcode = 0; /* retain backwards compat with OCI8 1.4 */ in php_oci_lob_is_equal()
897 php_oci_connection *connection = descriptor->connection; in php_oci_lob_write_tmp() local
919 connection->svc, in php_oci_lob_write_tmp()
920 connection->err, in php_oci_lob_write_tmp()
931 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_lob_write_tmp()
932 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_write_tmp()
936 …PHP_OCI_CALL_RETURN(errstatus, OCILobOpen, (connection->svc, connection->err, lob, OCI_LOB_READWRI… in php_oci_lob_write_tmp()
939 connection->errcode = php_oci_error(connection->err, errstatus); in php_oci_lob_write_tmp()
940 PHP_OCI_HANDLE_ERROR(connection, connection->errcode); in php_oci_lob_write_tmp()
945 connection->errcode = 0; /* retain backwards compat with OCI8 1.4 */ in php_oci_lob_write_tmp()