Lines Matching refs:descriptor

268 	php_oci_descriptor *descriptor;  in PHP_FUNCTION()  local
281 PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor); in PHP_FUNCTION()
283 zend_list_close(descriptor->id); in PHP_FUNCTION()
293 php_oci_descriptor *descriptor; in PHP_FUNCTION() local
315 PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor); in PHP_FUNCTION()
322 if (php_oci_lob_write(descriptor, (ub4) offset, data, (ub4) data_len, &bytes_written)) { in PHP_FUNCTION()
334 php_oci_descriptor *descriptor; in PHP_FUNCTION() local
354 PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor); in PHP_FUNCTION()
356 if (php_oci_lob_import(descriptor, filename)) { in PHP_FUNCTION()
368 php_oci_descriptor *descriptor; in PHP_FUNCTION() local
383 PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor); in PHP_FUNCTION()
385 if (php_oci_lob_read(descriptor, -1, 0, &buffer, &buffer_len)) { in PHP_FUNCTION()
405 php_oci_descriptor *descriptor; in PHP_FUNCTION() local
426 PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor); in PHP_FUNCTION()
433 if (php_oci_lob_read(descriptor, length, descriptor->lob_current_position, &buffer, &buffer_len)) { in PHP_FUNCTION()
452 php_oci_descriptor *descriptor; in PHP_FUNCTION() local
466 PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor); in PHP_FUNCTION()
468 if (!php_oci_lob_get_length(descriptor, &lob_length)) { in PHP_FUNCTION()
469 if (lob_length == descriptor->lob_current_position) { in PHP_FUNCTION()
482 php_oci_descriptor *descriptor; in PHP_FUNCTION() local
495 PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor); in PHP_FUNCTION()
497 RETURN_LONG(descriptor->lob_current_position); in PHP_FUNCTION()
506 php_oci_descriptor *descriptor; in PHP_FUNCTION() local
519 PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor); in PHP_FUNCTION()
521 descriptor->lob_current_position = 0; in PHP_FUNCTION()
532 php_oci_descriptor *descriptor; in PHP_FUNCTION() local
552 PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor); in PHP_FUNCTION()
554 if (php_oci_lob_get_length(descriptor, &lob_length)) { in PHP_FUNCTION()
560 descriptor->lob_current_position += (ub4) offset; in PHP_FUNCTION()
563 if ((descriptor->lob_size + offset) >= 0) { in PHP_FUNCTION()
564 descriptor->lob_current_position = descriptor->lob_size + (ub4) offset; in PHP_FUNCTION()
567 descriptor->lob_current_position = 0; in PHP_FUNCTION()
572 descriptor->lob_current_position = (offset > 0) ? (ub4) offset : 0; in PHP_FUNCTION()
575 if (descriptor->lob_current_position > UB4MAXVAL) { in PHP_FUNCTION()
588 php_oci_descriptor *descriptor; in PHP_FUNCTION() local
602 PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor); in PHP_FUNCTION()
604 if (php_oci_lob_get_length(descriptor, &lob_length)) { in PHP_FUNCTION()
616 php_oci_descriptor *descriptor; in PHP_FUNCTION() local
646 PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor); in PHP_FUNCTION()
652 …if (php_oci_lob_write(descriptor, descriptor->lob_current_position, data, (ub4) data_len, &bytes_w… in PHP_FUNCTION()
703 php_oci_descriptor *descriptor; in PHP_FUNCTION() local
729 PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor); in PHP_FUNCTION()
731 if (php_oci_lob_truncate(descriptor, ub_trim_length)) { in PHP_FUNCTION()
743 php_oci_descriptor *descriptor; in PHP_FUNCTION() local
783 PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor); in PHP_FUNCTION()
785 if (php_oci_lob_erase(descriptor, offset, (ub4) length, &bytes_erased)) { in PHP_FUNCTION()
797 php_oci_descriptor *descriptor; in PHP_FUNCTION() local
816 PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor); in PHP_FUNCTION()
818 if (descriptor->buffering == PHP_OCI_LOB_BUFFER_DISABLED) { in PHP_FUNCTION()
823 if (php_oci_lob_flush(descriptor, flush_flag)) { in PHP_FUNCTION()
835 php_oci_descriptor *descriptor; in PHP_FUNCTION() local
854 PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor); in PHP_FUNCTION()
856 if (php_oci_lob_set_buffering(descriptor, flag)) { in PHP_FUNCTION()
868 php_oci_descriptor *descriptor; in PHP_FUNCTION() local
881 PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor); in PHP_FUNCTION()
883 if (descriptor->buffering != PHP_OCI_LOB_BUFFER_DISABLED) { in PHP_FUNCTION()
973 php_oci_descriptor *descriptor; in PHP_FUNCTION() local
1015 PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor); in PHP_FUNCTION()
1017 if (php_oci_lob_get_length(descriptor, &lob_length)) { in PHP_FUNCTION()
1026 length = lob_length - descriptor->lob_current_position; in PHP_FUNCTION()
1051 if (php_oci_lob_read(descriptor, block_length, start, &buffer, &tmp_bytes_read)) { in PHP_FUNCTION()
1066 descriptor->lob_current_position += tmp_bytes_read; in PHP_FUNCTION()
1084 php_oci_descriptor *descriptor; in PHP_FUNCTION() local
1105 PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor); in PHP_FUNCTION()
1107 if (php_oci_lob_write_tmp(descriptor, type, data, (int) data_len)) { in PHP_FUNCTION()
1119 php_oci_descriptor *descriptor; in PHP_FUNCTION() local
1132 PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor); in PHP_FUNCTION()
1134 if (php_oci_lob_close(descriptor)) { in PHP_FUNCTION()
1147 php_oci_descriptor *descriptor; in PHP_FUNCTION() local
1157 descriptor = php_oci_lob_create(connection, type); in PHP_FUNCTION()
1159 if (!descriptor) { in PHP_FUNCTION()
1164 add_property_resource(return_value, "descriptor", descriptor->id); in PHP_FUNCTION()