cvs: /php3/functions interbase.c

From: Date: Sun, 21 Nov 1999 15:23:16 +0000
Subject: cvs: /php3/functions interbase.c
Groups: php.dev 
Request: Send a blank email to php-dev+get-12859@lists.php.net to get a copy of this message
eschmid Sun Nov 21 10:23:16 1999 EDT Modified files: /php3/functions interbase.c Log: Youni, it looks funny with all the backslashes. Index: php3/functions/interbase.c diff -u php3/functions/interbase.c:1.20 php3/functions/interbase.c:1.21 --- php3/functions/interbase.c:1.20 Tue Oct 12 00:05:46 1999 +++ php3/functions/interbase.c Sun Nov 21 10:23:15 1999 @@ -1,34 +1,34 @@ /* +----------------------------------------------------------------------+ - | PHP HTML Embedded Scripting Language Version 3.0 | + | PHP HTML Embedded Scripting Language Version 3.0 | +----------------------------------------------------------------------+ | Copyright (c) 1997-1999 PHP Development Team (See Credits file) | +----------------------------------------------------------------------+ | This program is free software; you can redistribute it and/or modify | - | it under the terms of one of the following licenses: | - | | + | it under the terms of one of the following licenses: | + | | | A) the GNU General Public License as published by the Free Software | | Foundation; either version 2 of the License, or (at your option) | - | any later version. | - | | + | any later version. | + | | | B) the PHP License as published by the PHP Development Team and | - | included in the distribution in the file: LICENSE | - | | + | included in the distribution in the file: LICENSE | + | | | This program is distributed in the hope that it will be useful, | - | but WITHOUT ANY WARRANTY; without even the implied warranty of | - | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | - | GNU General Public License for more details. | - | | + | but WITHOUT ANY WARRANTY; without even the implied warranty of | + | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | + | GNU General Public License for more details. | + | | | You should have received a copy of both licenses referred to here. | | If you did not, or have any questions about PHP licensing, please | - | contact core@php.net. | + | contact core@php.net. | +----------------------------------------------------------------------+ - | Authors: Jouni Ahto <jah@mork.net> | - | Andrew Avdeev <andy@rsc.mv.ru> | + | Authors: Jouni Ahto <jah@mork.net> | + | Andrew Avdeev <andy@rsc.mv.ru> | +----------------------------------------------------------------------+ */ -/* $Id: interbase.c,v 1.20 1999/10/12 04:05:46 andrew Exp $ */ +/* $Id: interbase.c,v 1.21 1999/11/21 15:23:15 eschmid Exp $ */ /* TODO: Arrays, roles? A lot... */ @@ -255,8 +255,8 @@ /* error handling ---------------------------- */ -/* {{{ proto string ibase_errmsg() - Return error message */ +/* {{{ proto string ibase_errmsg(void) + Return error message */ void php3_ibase_errmsg(INTERNAL_FUNCTION_PARAMETERS) { char *errmsg = IBASE_GLOBAL(php3_ibase_module).errmsg; @@ -271,7 +271,7 @@ /* {{{ _php3_ibase_error() - print interbase error and save it for ibase_errmsg() */ + print interbase error and save it for ibase_errmsg() */ static void _php3_ibase_error(void) { char *s, *errmsg = IBASE_GLOBAL(php3_ibase_module).errmsg; @@ -534,7 +534,7 @@ php3_printf( "<table>" - "<tr><td>Revision:</td><td>$Revision: 1.20 $</td></tr>\n" + "<tr><td>Revision:</td><td>$Revision: 1.21 $</td></tr>\n" #ifdef COMPILE_DL "<tr><td>Dynamic module:</td><td>Yes</td></tr>\n" #endif @@ -800,7 +800,7 @@ /* {{{ proto int ibase_connect(string database [, string username] [, string password] [, string charset]) - Open a connection to an InterBase database */ + Open a connection to an InterBase database */ PHP_FUNCTION(ibase_connect) { _php3_ibase_connect(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0); @@ -808,8 +808,8 @@ /* }}} */ -/* {{{ proto int ibase_pconnect(string database [, string username] [, string password] [, string charset] ) - Open a persistent connection to an InterBase database */ +/* {{{ proto int ibase_pconnect(string database [, string username] [, string password] [, string charset]) + Open a persistent connection to an InterBase database */ PHP_FUNCTION(ibase_pconnect) { _php3_ibase_connect(INTERNAL_FUNCTION_PARAM_PASSTHRU, 1); @@ -818,7 +818,7 @@ /* {{{ proto int ibase_close([int link_identifier]) - Close an InterBase connection */ + Close an InterBase connection */ PHP_FUNCTION(ibase_close) { pval *link_arg; @@ -1424,8 +1424,8 @@ /* }}} */ -/* {{{ proto int ibase_commit([int link_identifier, ] int trans_number) - Commit transaction */ +/* {{{ proto int ibase_commit([int link_identifier,] int trans_number) + Commit transaction */ PHP_FUNCTION(ibase_commit) { _php3_ibase_trans_end(INTERNAL_FUNCTION_PARAM_PASSTHRU, COMMIT); @@ -1433,8 +1433,8 @@ /* }}} */ -/* {{{ proto int ibase_rollback([int link_identifier, ] int trans_number) - Roolback transaction */ +/* {{{ proto int ibase_rollback([int link_identifier,] int trans_number) + Roolback transaction */ PHP_FUNCTION(ibase_rollback) { _php3_ibase_trans_end(INTERNAL_FUNCTION_PARAM_PASSTHRU, ROLLBACK); @@ -1442,8 +1442,8 @@ /* }}} */ -/* {{{ proto int ibase_query([int link_identifier, ]string query[,bind args]) - Execute a query. */ +/* {{{ proto int ibase_query([int link_identifier,] string query [, int bind_args]) + Execute a query */ PHP_FUNCTION(ibase_query) { pval **args, **bind_args = NULL; @@ -1845,8 +1845,8 @@ /* }}} */ -/* {{{ proto array ibase_fetch_row(int result [,blob_flag]) - Fetch a row from the results of a query. */ +/* {{{ proto array ibase_fetch_row(int result [, int blob_flag]) + Fetch a row from the results of a query */ PHP_FUNCTION(ibase_fetch_row) { _php3_ibase_fetch_hash(INTERNAL_FUNCTION_PARAM_PASSTHRU, FETCH_ARRAY); @@ -1854,8 +1854,8 @@ /* }}} */ -/* {{{ proto object ibase_fetch_object(int result [,blob_flag]) - Fetch a object from the results of a query. */ +/* {{{ proto object ibase_fetch_object(int result [, int blob_flag]) + Fetch a object from the results of a query */ PHP_FUNCTION(ibase_fetch_object) { _php3_ibase_fetch_hash(INTERNAL_FUNCTION_PARAM_PASSTHRU, FETCH_OBJECT); @@ -1864,7 +1864,7 @@ /* {{{ proto int ibase_free_result(int result) - Free the memory used by a result. */ + Free the memory used by a result */ PHP_FUNCTION(ibase_free_result) { pval *result_arg; @@ -1890,8 +1890,8 @@ /* }}} */ -/* {{{ proto int ibase_prepare([int link_identifier, ]string query) - Prepare a query for later execution. */ +/* {{{ proto int ibase_prepare([int link_identifier,] string query) + Prepare a query for later execution */ PHP_FUNCTION(ibase_prepare) { pval *link_arg, *query_arg; @@ -1942,8 +1942,8 @@ /* }}} */ -/* {{{ proto int ibase_execute(int query [,bind_args ... ]) - Execute a previously prepared query. */ +/* {{{ proto int ibase_execute(int query [, int bind_args [, int ...]) + Execute a previously prepared query */ PHP_FUNCTION(ibase_execute) { pval **args, **bind_args = NULL; @@ -1987,7 +1987,7 @@ /* {{{ proto int ibase_free_query(int query) - Free memory used by a query */ + Free memory used by a query */ PHP_FUNCTION(ibase_free_query) { pval *query_arg; @@ -2012,7 +2012,7 @@ /* {{{ proto int ibase_timefmt(string format) - Sets the format of datetime columns returned from queries. Still nonfunctional. */ + Sets the format of datetime columns returned from queries. Still nonfunctional */ PHP_FUNCTION(ibase_timefmt) { pval *fmt; @@ -2041,7 +2041,7 @@ /* {{{ proto int ibase_num_fields(int result) - Get the number of fields in result */ + Get the number of fields in result */ PHP_FUNCTION(ibase_num_fields) { pval *result; @@ -2074,7 +2074,7 @@ /* {{{ proto array ibase_field_info(int result, int field_number) - Get information about a field */ + Get information about a field */ PHP_FUNCTION(ibase_field_info) { pval *ret_val, *result_arg, *field_arg; @@ -2206,7 +2206,7 @@ /* {{{ proto int ibase_blob_create([int link_identifier]) - Create blob for adding data */ + Create blob for adding data */ PHP_FUNCTION(ibase_blob_create) { pval *link_arg; @@ -2258,7 +2258,7 @@ /* {{{ proto int ibase_blob_open(string blob_id) - Open blob for retriving data parts */ + Open blob for retriving data parts */ PHP_FUNCTION(ibase_blob_open) { pval *blob_arg; @@ -2297,7 +2297,7 @@ /* {{{ proto int ibase_blob_add(int blob_id, string data) - Add data into created blob */ + Add data into created blob */ PHP_FUNCTION(ibase_blob_add) { pval *blob_arg,*string_arg; @@ -2325,7 +2325,7 @@ /* {{{ proto string ibase_blob_get(int blob_id, int len) - Get len bytes data from open blob */ + Get len bytes data from open blob */ PHP_FUNCTION(ibase_blob_get) { pval *blob_arg, *len_arg; @@ -2419,7 +2419,7 @@ /* {{{ proto int ibase_blob_close(int blob_id) - Close blob */ + Close blob */ PHP_FUNCTION(ibase_blob_close) { _php3_ibase_blob_end(INTERNAL_FUNCTION_PARAM_PASSTHRU,BLOB_CLOSE); @@ -2428,7 +2428,7 @@ /* {{{ proto int ibase_blob_cancel(int blob_id) - Cancel creating blob */ + Cancel creating blob */ PHP_FUNCTION(ibase_blob_cancel) { _php3_ibase_blob_end(INTERNAL_FUNCTION_PARAM_PASSTHRU,BLOB_CANCEL); @@ -2437,7 +2437,7 @@ /* {{{ proto object ibase_blob_info(string blob_id_str) - Return blob length and other useful info */ + Return blob length and other useful info */ PHP_FUNCTION(ibase_blob_info) { pval *blob_arg, *result_var; @@ -2502,7 +2502,7 @@ /* {{{ proto int ibase_blob_echo(string blob_id_str) - Output blob contents to browser */ + Output blob contents to browser */ PHP_FUNCTION(ibase_blob_echo) { pval *blob_arg; @@ -2562,8 +2562,8 @@ #endif -/* {{{ proto string ibase_blob_import([link_identifier, ] file_id) - Create blob, copy file in it, and close it*/ +/* {{{ proto string ibase_blob_import([link_identifier,] file_id) + Create blob, copy file in it, and close it */ PHP_FUNCTION(ibase_blob_import) { pval *link_arg, *file_arg;

« previous php.dev (#12859) next »