diff options
Diffstat (limited to 'ext/oci8/php_oci8_int.h')
-rw-r--r-- | ext/oci8/php_oci8_int.h | 130 |
1 files changed, 65 insertions, 65 deletions
diff --git a/ext/oci8/php_oci8_int.h b/ext/oci8/php_oci8_int.h index 852fe986f3..e5ba737715 100644 --- a/ext/oci8/php_oci8_int.h +++ b/ext/oci8/php_oci8_int.h @@ -374,7 +374,7 @@ typedef struct { #define PHP_OCI_FETCH_RESOURCE_EX(zval, var, type, name, resource_type) \ do { \ - var = (type) zend_fetch_resource(zval TSRMLS_CC, -1, name, NULL, 1, resource_type); \ + var = (type) zend_fetch_resource(zval, -1, name, NULL, 1, resource_type); \ if (!var) { \ return 1; \ } \ @@ -402,93 +402,93 @@ void php_oci_column_hash_dtor(void *data); void php_oci_define_hash_dtor(void *data); void php_oci_bind_hash_dtor(void *data); void php_oci_descriptor_flush_hash_dtor(void *data); -void php_oci_connection_descriptors_free(php_oci_connection *connection TSRMLS_DC); -sb4 php_oci_error(OCIError *err_p, sword status TSRMLS_DC); -sb4 php_oci_fetch_errmsg(OCIError *error_handle, text **error_buf TSRMLS_DC); -int php_oci_fetch_sqltext_offset(php_oci_statement *statement, text **sqltext, ub2 *error_offset TSRMLS_DC); +void php_oci_connection_descriptors_free(php_oci_connection *connection); +sb4 php_oci_error(OCIError *err_p, sword status); +sb4 php_oci_fetch_errmsg(OCIError *error_handle, text **error_buf); +int php_oci_fetch_sqltext_offset(php_oci_statement *statement, text **sqltext, ub2 *error_offset); void php_oci_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent, int exclusive); -php_oci_connection *php_oci_do_connect_ex(char *username, int username_len, char *password, int password_len, char *new_password, int new_password_len, char *dbname, int dbname_len, char *charset, zend_long session_mode, int persistent, int exclusive TSRMLS_DC); -int php_oci_connection_rollback(php_oci_connection *connection TSRMLS_DC); -int php_oci_connection_commit(php_oci_connection *connection TSRMLS_DC); -int php_oci_connection_release(php_oci_connection *connection TSRMLS_DC); -int php_oci_password_change(php_oci_connection *connection, char *user, int user_len, char *pass_old, int pass_old_len, char *pass_new, int pass_new_len TSRMLS_DC); -void php_oci_client_get_version(char **version TSRMLS_DC); -int php_oci_server_get_version(php_oci_connection *connection, char **version TSRMLS_DC); +php_oci_connection *php_oci_do_connect_ex(char *username, int username_len, char *password, int password_len, char *new_password, int new_password_len, char *dbname, int dbname_len, char *charset, zend_long session_mode, int persistent, int exclusive); +int php_oci_connection_rollback(php_oci_connection *connection); +int php_oci_connection_commit(php_oci_connection *connection); +int php_oci_connection_release(php_oci_connection *connection); +int php_oci_password_change(php_oci_connection *connection, char *user, int user_len, char *pass_old, int pass_old_len, char *pass_new, int pass_new_len); +void php_oci_client_get_version(char **version); +int php_oci_server_get_version(php_oci_connection *connection, char **version); void php_oci_fetch_row(INTERNAL_FUNCTION_PARAMETERS, int mode, int expected_args); -int php_oci_column_to_zval(php_oci_out_column *column, zval *value, int mode TSRMLS_DC); +int php_oci_column_to_zval(php_oci_out_column *column, zval *value, int mode); void php_oci_dtrace_check_connection(php_oci_connection *connection, sb4 errcode, ub4 serverStatus); /* }}} */ /* {{{ lob related prototypes */ -php_oci_descriptor *php_oci_lob_create(php_oci_connection *connection, zend_long type TSRMLS_DC); -int php_oci_lob_get_length(php_oci_descriptor *descriptor, ub4 *length TSRMLS_DC); -int php_oci_lob_read(php_oci_descriptor *descriptor, zend_long read_length, zend_long inital_offset, char **data, ub4 *data_len TSRMLS_DC); -int php_oci_lob_write(php_oci_descriptor *descriptor, ub4 offset, char *data, int data_len, ub4 *bytes_written TSRMLS_DC); -int php_oci_lob_flush(php_oci_descriptor *descriptor, zend_long flush_flag TSRMLS_DC); -int php_oci_lob_set_buffering(php_oci_descriptor *descriptor, int on_off TSRMLS_DC); +php_oci_descriptor *php_oci_lob_create(php_oci_connection *connection, zend_long type); +int php_oci_lob_get_length(php_oci_descriptor *descriptor, ub4 *length); +int php_oci_lob_read(php_oci_descriptor *descriptor, zend_long read_length, zend_long inital_offset, char **data, ub4 *data_len); +int php_oci_lob_write(php_oci_descriptor *descriptor, ub4 offset, char *data, int data_len, ub4 *bytes_written); +int php_oci_lob_flush(php_oci_descriptor *descriptor, zend_long flush_flag); +int php_oci_lob_set_buffering(php_oci_descriptor *descriptor, int on_off); int php_oci_lob_get_buffering(php_oci_descriptor *descriptor); -int php_oci_lob_copy(php_oci_descriptor *descriptor, php_oci_descriptor *descriptor_from, zend_long length TSRMLS_DC); -int php_oci_lob_close(php_oci_descriptor *descriptor TSRMLS_DC); -int php_oci_temp_lob_close(php_oci_descriptor *descriptor TSRMLS_DC); -int php_oci_lob_write_tmp(php_oci_descriptor *descriptor, zend_long type, char *data, int data_len TSRMLS_DC); -void php_oci_lob_free(php_oci_descriptor *descriptor TSRMLS_DC); -int php_oci_lob_import(php_oci_descriptor *descriptor, char *filename TSRMLS_DC); -int php_oci_lob_append(php_oci_descriptor *descriptor_dest, php_oci_descriptor *descriptor_from TSRMLS_DC); -int php_oci_lob_truncate(php_oci_descriptor *descriptor, zend_long new_lob_length TSRMLS_DC); -int php_oci_lob_erase(php_oci_descriptor *descriptor, zend_long offset, ub4 length, ub4 *bytes_erased TSRMLS_DC); -int php_oci_lob_is_equal(php_oci_descriptor *descriptor_first, php_oci_descriptor *descriptor_second, boolean *result TSRMLS_DC); +int php_oci_lob_copy(php_oci_descriptor *descriptor, php_oci_descriptor *descriptor_from, zend_long length); +int php_oci_lob_close(php_oci_descriptor *descriptor); +int php_oci_temp_lob_close(php_oci_descriptor *descriptor); +int php_oci_lob_write_tmp(php_oci_descriptor *descriptor, zend_long type, char *data, int data_len); +void php_oci_lob_free(php_oci_descriptor *descriptor); +int php_oci_lob_import(php_oci_descriptor *descriptor, char *filename); +int php_oci_lob_append(php_oci_descriptor *descriptor_dest, php_oci_descriptor *descriptor_from); +int php_oci_lob_truncate(php_oci_descriptor *descriptor, zend_long new_lob_length); +int php_oci_lob_erase(php_oci_descriptor *descriptor, zend_long offset, ub4 length, ub4 *bytes_erased); +int php_oci_lob_is_equal(php_oci_descriptor *descriptor_first, php_oci_descriptor *descriptor_second, boolean *result); sb4 php_oci_lob_callback(dvoid *ctxp, CONST dvoid *bufxp, oraub8 len, ub1 piece, dvoid **changed_bufpp, oraub8 *changed_lenp); /* }}} */ /* {{{ collection related prototypes */ -php_oci_collection *php_oci_collection_create(php_oci_connection *connection, char *tdo, int tdo_len, char *schema, int schema_len TSRMLS_DC); -int php_oci_collection_size(php_oci_collection *collection, sb4 *size TSRMLS_DC); -int php_oci_collection_max(php_oci_collection *collection, zend_long *max TSRMLS_DC); -int php_oci_collection_trim(php_oci_collection *collection, zend_long trim_size TSRMLS_DC); -int php_oci_collection_append(php_oci_collection *collection, char *element, int element_len TSRMLS_DC); -int php_oci_collection_element_get(php_oci_collection *collection, zend_long index, zval *result_element TSRMLS_DC); -int php_oci_collection_element_set(php_oci_collection *collection, zend_long index, char *value, int value_len TSRMLS_DC); -int php_oci_collection_element_set_null(php_oci_collection *collection, zend_long index TSRMLS_DC); -int php_oci_collection_element_set_date(php_oci_collection *collection, zend_long index, char *date, int date_len TSRMLS_DC); -int php_oci_collection_element_set_number(php_oci_collection *collection, zend_long index, char *number, int number_len TSRMLS_DC); -int php_oci_collection_element_set_string(php_oci_collection *collection, zend_long index, char *element, int element_len TSRMLS_DC); -int php_oci_collection_assign(php_oci_collection *collection_dest, php_oci_collection *collection_from TSRMLS_DC); -void php_oci_collection_close(php_oci_collection *collection TSRMLS_DC); -int php_oci_collection_append_null(php_oci_collection *collection TSRMLS_DC); -int php_oci_collection_append_date(php_oci_collection *collection, char *date, int date_len TSRMLS_DC); -int php_oci_collection_append_number(php_oci_collection *collection, char *number, int number_len TSRMLS_DC); -int php_oci_collection_append_string(php_oci_collection *collection, char *element, int element_len TSRMLS_DC); +php_oci_collection *php_oci_collection_create(php_oci_connection *connection, char *tdo, int tdo_len, char *schema, int schema_len); +int php_oci_collection_size(php_oci_collection *collection, sb4 *size); +int php_oci_collection_max(php_oci_collection *collection, zend_long *max); +int php_oci_collection_trim(php_oci_collection *collection, zend_long trim_size); +int php_oci_collection_append(php_oci_collection *collection, char *element, int element_len); +int php_oci_collection_element_get(php_oci_collection *collection, zend_long index, zval *result_element); +int php_oci_collection_element_set(php_oci_collection *collection, zend_long index, char *value, int value_len); +int php_oci_collection_element_set_null(php_oci_collection *collection, zend_long index); +int php_oci_collection_element_set_date(php_oci_collection *collection, zend_long index, char *date, int date_len); +int php_oci_collection_element_set_number(php_oci_collection *collection, zend_long index, char *number, int number_len); +int php_oci_collection_element_set_string(php_oci_collection *collection, zend_long index, char *element, int element_len); +int php_oci_collection_assign(php_oci_collection *collection_dest, php_oci_collection *collection_from); +void php_oci_collection_close(php_oci_collection *collection); +int php_oci_collection_append_null(php_oci_collection *collection); +int php_oci_collection_append_date(php_oci_collection *collection, char *date, int date_len); +int php_oci_collection_append_number(php_oci_collection *collection, char *number, int number_len); +int php_oci_collection_append_string(php_oci_collection *collection, char *element, int element_len); /* }}} */ /* {{{ statement related prototypes */ -php_oci_statement *php_oci_statement_create(php_oci_connection *connection, char *query, int query_len TSRMLS_DC); -php_oci_statement *php_oci_get_implicit_resultset(php_oci_statement *statement TSRMLS_DC); -int php_oci_statement_set_prefetch(php_oci_statement *statement, ub4 prefetch TSRMLS_DC); -int php_oci_statement_fetch(php_oci_statement *statement, ub4 nrows TSRMLS_DC); -php_oci_out_column *php_oci_statement_get_column(php_oci_statement *statement, zend_long column_index, char *column_name, int column_name_len TSRMLS_DC); -int php_oci_statement_execute(php_oci_statement *statement, ub4 mode TSRMLS_DC); -int php_oci_statement_cancel(php_oci_statement *statement TSRMLS_DC); -void php_oci_statement_free(php_oci_statement *statement TSRMLS_DC); -int php_oci_bind_pre_exec(void *data, void *result TSRMLS_DC); -int php_oci_bind_post_exec(void *data TSRMLS_DC); -int php_oci_bind_by_name(php_oci_statement *statement, char *name, int name_len, zval *var, zend_long maxlength, ub2 type TSRMLS_DC); +php_oci_statement *php_oci_statement_create(php_oci_connection *connection, char *query, int query_len); +php_oci_statement *php_oci_get_implicit_resultset(php_oci_statement *statement); +int php_oci_statement_set_prefetch(php_oci_statement *statement, ub4 prefetch); +int php_oci_statement_fetch(php_oci_statement *statement, ub4 nrows); +php_oci_out_column *php_oci_statement_get_column(php_oci_statement *statement, zend_long column_index, char *column_name, int column_name_len); +int php_oci_statement_execute(php_oci_statement *statement, ub4 mode); +int php_oci_statement_cancel(php_oci_statement *statement); +void php_oci_statement_free(php_oci_statement *statement); +int php_oci_bind_pre_exec(void *data, void *result); +int php_oci_bind_post_exec(void *data); +int php_oci_bind_by_name(php_oci_statement *statement, char *name, int name_len, zval *var, zend_long maxlength, ub2 type); sb4 php_oci_bind_in_callback(dvoid *ictxp, OCIBind *bindp, ub4 iter, ub4 index, dvoid **bufpp, ub4 *alenp, ub1 *piecep, dvoid **indpp); sb4 php_oci_bind_out_callback(dvoid *octxp, OCIBind *bindp, ub4 iter, ub4 index, dvoid **bufpp, ub4 **alenpp, ub1 *piecep, dvoid **indpp, ub2 **rcodepp); php_oci_out_column *php_oci_statement_get_column_helper(INTERNAL_FUNCTION_PARAMETERS, int need_data); -int php_oci_cleanup_pre_fetch(void *data TSRMLS_DC); -int php_oci_statement_get_type(php_oci_statement *statement, ub2 *type TSRMLS_DC); -int php_oci_statement_get_numrows(php_oci_statement *statement, ub4 *numrows TSRMLS_DC); -int php_oci_bind_array_by_name(php_oci_statement *statement, char *name, int name_len, zval *var, zend_long max_table_length, zend_long maxlength, zend_long type TSRMLS_DC); -php_oci_bind *php_oci_bind_array_helper_number(zval *var, zend_long max_table_length TSRMLS_DC); -php_oci_bind *php_oci_bind_array_helper_double(zval *var, zend_long max_table_length TSRMLS_DC); -php_oci_bind *php_oci_bind_array_helper_string(zval *var, zend_long max_table_length, zend_long maxlength TSRMLS_DC); -php_oci_bind *php_oci_bind_array_helper_date(zval *var, zend_long max_table_length, php_oci_connection *connection TSRMLS_DC); +int php_oci_cleanup_pre_fetch(void *data); +int php_oci_statement_get_type(php_oci_statement *statement, ub2 *type); +int php_oci_statement_get_numrows(php_oci_statement *statement, ub4 *numrows); +int php_oci_bind_array_by_name(php_oci_statement *statement, char *name, int name_len, zval *var, zend_long max_table_length, zend_long maxlength, zend_long type); +php_oci_bind *php_oci_bind_array_helper_number(zval *var, zend_long max_table_length); +php_oci_bind *php_oci_bind_array_helper_double(zval *var, zend_long max_table_length); +php_oci_bind *php_oci_bind_array_helper_string(zval *var, zend_long max_table_length, zend_long maxlength); +php_oci_bind *php_oci_bind_array_helper_date(zval *var, zend_long max_table_length, php_oci_connection *connection); /* }}} */ |