Lines Matching refs:descriptor
230 php_oci_descriptor *descriptor; in PHP_FUNCTION() local
241 PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor); in PHP_FUNCTION()
243 zend_list_close(descriptor->id); in PHP_FUNCTION()
252 php_oci_descriptor *descriptor; in PHP_FUNCTION() local
272 PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor); in PHP_FUNCTION()
274 if (php_oci_lob_write(descriptor, (ub4) offset, data, (ub4) data_len, &bytes_written)) { in PHP_FUNCTION()
285 php_oci_descriptor *descriptor; in PHP_FUNCTION() local
298 PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor); in PHP_FUNCTION()
300 if (php_oci_lob_import(descriptor, filename)) { in PHP_FUNCTION()
311 php_oci_descriptor *descriptor; in PHP_FUNCTION() local
324 PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor); in PHP_FUNCTION()
326 if (php_oci_lob_read(descriptor, -1, 0, &buffer, &buffer_len)) { in PHP_FUNCTION()
345 php_oci_descriptor *descriptor; in PHP_FUNCTION() local
364 PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor); in PHP_FUNCTION()
366 if (php_oci_lob_read(descriptor, length, descriptor->lob_current_position, &buffer, &buffer_len)) { in PHP_FUNCTION()
384 php_oci_descriptor *descriptor; in PHP_FUNCTION() local
396 PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor); in PHP_FUNCTION()
398 if (!php_oci_lob_get_length(descriptor, &lob_length)) { in PHP_FUNCTION()
399 if (lob_length == descriptor->lob_current_position) { in PHP_FUNCTION()
411 php_oci_descriptor *descriptor; in PHP_FUNCTION() local
422 PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor); in PHP_FUNCTION()
424 RETURN_LONG(descriptor->lob_current_position); in PHP_FUNCTION()
432 php_oci_descriptor *descriptor; in PHP_FUNCTION() local
443 PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor); in PHP_FUNCTION()
445 descriptor->lob_current_position = 0; in PHP_FUNCTION()
455 php_oci_descriptor *descriptor; in PHP_FUNCTION() local
468 PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor); in PHP_FUNCTION()
470 if (php_oci_lob_get_length(descriptor, &lob_length)) { in PHP_FUNCTION()
476 descriptor->lob_current_position += (ub4) offset; in PHP_FUNCTION()
479 if ((descriptor->lob_size + offset) >= 0) { in PHP_FUNCTION()
480 descriptor->lob_current_position = descriptor->lob_size + (ub4) offset; in PHP_FUNCTION()
483 descriptor->lob_current_position = 0; in PHP_FUNCTION()
488 descriptor->lob_current_position = (offset > 0) ? (ub4) offset : 0; in PHP_FUNCTION()
491 if (descriptor->lob_current_position > UB4MAXVAL) { in PHP_FUNCTION()
503 php_oci_descriptor *descriptor; in PHP_FUNCTION() local
515 PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor); in PHP_FUNCTION()
517 if (php_oci_lob_get_length(descriptor, &lob_length)) { in PHP_FUNCTION()
528 php_oci_descriptor *descriptor; in PHP_FUNCTION() local
548 PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor); in PHP_FUNCTION()
554 …if (php_oci_lob_write(descriptor, descriptor->lob_current_position, data, (ub4) data_len, &bytes_w… in PHP_FUNCTION()
596 php_oci_descriptor *descriptor; in PHP_FUNCTION() local
615 PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor); in PHP_FUNCTION()
617 if (php_oci_lob_truncate(descriptor, ub_trim_length)) { in PHP_FUNCTION()
628 php_oci_descriptor *descriptor; in PHP_FUNCTION() local
656 PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor); in PHP_FUNCTION()
658 if (php_oci_lob_erase(descriptor, offset, (ub4) length, &bytes_erased)) { in PHP_FUNCTION()
669 php_oci_descriptor *descriptor; in PHP_FUNCTION() local
681 PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor); in PHP_FUNCTION()
683 if (descriptor->buffering == PHP_OCI_LOB_BUFFER_DISABLED) { in PHP_FUNCTION()
688 if (php_oci_lob_flush(descriptor, flush_flag)) { in PHP_FUNCTION()
699 php_oci_descriptor *descriptor; in PHP_FUNCTION() local
711 PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor); in PHP_FUNCTION()
713 if (php_oci_lob_set_buffering(descriptor, flag)) { in PHP_FUNCTION()
724 php_oci_descriptor *descriptor; in PHP_FUNCTION() local
735 PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor); in PHP_FUNCTION()
737 if (descriptor->buffering != PHP_OCI_LOB_BUFFER_DISABLED) { in PHP_FUNCTION()
822 php_oci_descriptor *descriptor; in PHP_FUNCTION() local
854 PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor); in PHP_FUNCTION()
856 if (php_oci_lob_get_length(descriptor, &lob_length)) { in PHP_FUNCTION()
865 length = lob_length - descriptor->lob_current_position; in PHP_FUNCTION()
890 if (php_oci_lob_read(descriptor, block_length, start, &buffer, &tmp_bytes_read)) { in PHP_FUNCTION()
905 descriptor->lob_current_position += tmp_bytes_read; in PHP_FUNCTION()
922 php_oci_descriptor *descriptor; in PHP_METHOD() local
936 PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor); in PHP_METHOD()
938 if (php_oci_lob_write_tmp(descriptor, type, data, (int) data_len)) { in PHP_METHOD()
949 php_oci_descriptor *descriptor; in PHP_METHOD() local
960 PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor); in PHP_METHOD()
962 if (php_oci_lob_close(descriptor)) { in PHP_METHOD()
974 php_oci_descriptor *descriptor; in PHP_FUNCTION() local
984 descriptor = php_oci_lob_create(connection, type); in PHP_FUNCTION()
986 if (!descriptor) { in PHP_FUNCTION()
991 add_property_resource(return_value, "descriptor", descriptor->id); in PHP_FUNCTION()