Skip to content

Commit 080eaaf

Browse files
committed
proto fixes
1 parent 18cc2a9 commit 080eaaf

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

ext/interbase/interbase.c

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -912,23 +912,23 @@ static void _php_ibase_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
912912
}
913913
/* }}} */
914914

915-
/* {{{ proto int ibase_connect(string database [, string username [, string password [, string charset [, int buffers [, int dialect [, string role]]]]]])
915+
/* {{{ proto resource ibase_connect(string database [, string username [, string password [, string charset [, int buffers [, int dialect [, string role]]]]]])
916916
Open a connection to an InterBase database */
917917
PHP_FUNCTION(ibase_connect)
918918
{
919919
_php_ibase_connect(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0);
920920
}
921921
/* }}} */
922922

923-
/* {{{ proto int ibase_pconnect(string database [, string username [, string password [, string charset [, int buffers [, int dialect [, string role]]]]]])
923+
/* {{{ proto resource ibase_pconnect(string database [, string username [, string password [, string charset [, int buffers [, int dialect [, string role]]]]]])
924924
Open a persistent connection to an InterBase database */
925925
PHP_FUNCTION(ibase_pconnect)
926926
{
927927
_php_ibase_connect(INTERNAL_FUNCTION_PARAM_PASSTHRU, 1);
928928
}
929929
/* }}} */
930930

931-
/* {{{ proto int ibase_close([int link_identifier])
931+
/* {{{ proto bool ibase_close([resource link_identifier])
932932
Close an InterBase connection */
933933
PHP_FUNCTION(ibase_close)
934934
{
@@ -1494,7 +1494,7 @@ static int _php_ibase_exec(ibase_result **ib_resultp, ibase_query *ib_query, int
14941494
}
14951495
/* }}} */
14961496

1497-
/* {{{ proto int ibase_trans([int trans_args [, int link_identifier]])
1497+
/* {{{ proto resource ibase_trans([int trans_args [, resource link_identifier]])
14981498
Start transaction */
14991499
PHP_FUNCTION(ibase_trans)
15001500
{
@@ -1663,23 +1663,23 @@ static void _php_ibase_trans_end(INTERNAL_FUNCTION_PARAMETERS, int commit)
16631663
}
16641664
/* }}} */
16651665

1666-
/* {{{ proto int ibase_commit([int link_identifier [, int trans_number]])
1666+
/* {{{ proto bool ibase_commit([resource link_identifier [, int trans_number]])
16671667
Commit transaction */
16681668
PHP_FUNCTION(ibase_commit)
16691669
{
16701670
_php_ibase_trans_end(INTERNAL_FUNCTION_PARAM_PASSTHRU, COMMIT);
16711671
}
16721672
/* }}} */
16731673

1674-
/* {{{ proto int ibase_rollback([int link_identifier [, int trans_number]])
1674+
/* {{{ proto bool ibase_rollback([resource link_identifier [, int trans_number]])
16751675
Roolback transaction */
16761676
PHP_FUNCTION(ibase_rollback)
16771677
{
16781678
_php_ibase_trans_end(INTERNAL_FUNCTION_PARAM_PASSTHRU, ROLLBACK);
16791679
}
16801680
/* }}} */
16811681

1682-
/* {{{ proto int ibase_query([int link_identifier [, string query [, int bind_args]]])
1682+
/* {{{ proto resource ibase_query([resource link_identifier [, string query [, int bind_args]]])
16831683
Execute a query */
16841684
PHP_FUNCTION(ibase_query)
16851685
{
@@ -2184,23 +2184,23 @@ static void _php_ibase_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, int fetch_type)
21842184
}
21852185
/* }}} */
21862186

2187-
/* {{{ proto array ibase_fetch_row(int result [, int blob_flag])
2187+
/* {{{ proto array ibase_fetch_row(resource result [, int blob_flag])
21882188
Fetch a row from the results of a query */
21892189
PHP_FUNCTION(ibase_fetch_row)
21902190
{
21912191
_php_ibase_fetch_hash(INTERNAL_FUNCTION_PARAM_PASSTHRU, FETCH_ROW);
21922192
}
21932193
/* }}} */
21942194

2195-
/* {{{ proto array ibase_fetch_assoc(int result [, int blob_flag])
2195+
/* {{{ proto array ibase_fetch_assoc(resource result [, int blob_flag])
21962196
Fetch a row from the results of a query */
21972197
PHP_FUNCTION(ibase_fetch_assoc)
21982198
{
21992199
_php_ibase_fetch_hash(INTERNAL_FUNCTION_PARAM_PASSTHRU, FETCH_ARRAY);
22002200
}
22012201
/* }}} */
22022202

2203-
/* {{{ proto object ibase_fetch_object(int result [, int blob_flag])
2203+
/* {{{ proto object ibase_fetch_object(resource result [, int blob_flag])
22042204
Fetch a object from the results of a query */
22052205
PHP_FUNCTION(ibase_fetch_object)
22062206
{
@@ -2212,7 +2212,7 @@ PHP_FUNCTION(ibase_fetch_object)
22122212
}
22132213
/* }}} */
22142214

2215-
/* {{{ proto int ibase_free_result(int result)
2215+
/* {{{ proto bool ibase_free_result(resource result)
22162216
Free the memory used by a result */
22172217
PHP_FUNCTION(ibase_free_result)
22182218
{
@@ -2231,7 +2231,7 @@ PHP_FUNCTION(ibase_free_result)
22312231
}
22322232
/* }}} */
22332233

2234-
/* {{{ proto int ibase_prepare([int link_identifier, ] string query)
2234+
/* {{{ proto resource ibase_prepare([resource link_identifier, ] string query)
22352235
Prepare a query for later execution */
22362236
PHP_FUNCTION(ibase_prepare)
22372237
{
@@ -2281,7 +2281,7 @@ PHP_FUNCTION(ibase_prepare)
22812281
}
22822282
/* }}} */
22832283

2284-
/* {{{ proto int ibase_execute(int query [, int bind_args [, int ...]])
2284+
/* {{{ proto resource ibase_execute(resource query [, int bind_args [, int ...]])
22852285
Execute a previously prepared query */
22862286
PHP_FUNCTION(ibase_execute)
22872287
{
@@ -2333,7 +2333,7 @@ PHP_FUNCTION(ibase_execute)
23332333
}
23342334
/* }}} */
23352335

2336-
/* {{{ proto int ibase_free_query(int query)
2336+
/* {{{ proto bool ibase_free_query(resource query)
23372337
Free memory used by a query */
23382338
PHP_FUNCTION(ibase_free_query)
23392339
{
@@ -2409,7 +2409,7 @@ PHP_FUNCTION(ibase_timefmt)
24092409
/* }}} */
24102410
#endif
24112411

2412-
/* {{{ proto int ibase_num_fields(int result)
2412+
/* {{{ proto int ibase_num_fields(resource result)
24132413
Get the number of fields in result */
24142414
PHP_FUNCTION(ibase_num_fields)
24152415
{
@@ -2433,7 +2433,7 @@ PHP_FUNCTION(ibase_num_fields)
24332433
}
24342434
/* }}} */
24352435

2436-
/* {{{ proto array ibase_field_info(int result, int field_number)
2436+
/* {{{ proto array ibase_field_info(resource result, int field_number)
24372437
Get information about a field */
24382438
PHP_FUNCTION(ibase_field_info)
24392439
{
@@ -2567,7 +2567,7 @@ static int _php_ibase_blob_info(isc_blob_handle bl_handle, IBASE_BLOBINFO *bl_in
25672567
}
25682568
/* }}} */
25692569

2570-
/* {{{ proto int ibase_blob_create([int link_identifier])
2570+
/* {{{ proto int ibase_blob_create([resource link_identifier])
25712571
Create blob for adding data */
25722572
PHP_FUNCTION(ibase_blob_create)
25732573
{
@@ -2650,7 +2650,7 @@ PHP_FUNCTION(ibase_blob_open)
26502650
}
26512651
/* }}} */
26522652

2653-
/* {{{ proto int ibase_blob_add(int blob_id, string data)
2653+
/* {{{ proto bool ibase_blob_add(int blob_id, string data)
26542654
Add data into created blob */
26552655
PHP_FUNCTION(ibase_blob_add)
26562656
{
@@ -2763,15 +2763,15 @@ static void _php_ibase_blob_end(INTERNAL_FUNCTION_PARAMETERS, int bl_end)
27632763
}
27642764
/* }}} */
27652765

2766-
/* {{{ proto int ibase_blob_close(int blob_id)
2766+
/* {{{ proto bool ibase_blob_close(int blob_id)
27672767
Close blob */
27682768
PHP_FUNCTION(ibase_blob_close)
27692769
{
27702770
_php_ibase_blob_end(INTERNAL_FUNCTION_PARAM_PASSTHRU, BLOB_CLOSE);
27712771
}
27722772
/* }}} */
27732773

2774-
/* {{{ proto int ibase_blob_cancel(int blob_id)
2774+
/* {{{ proto bool ibase_blob_cancel(int blob_id)
27752775
Cancel creating blob */
27762776
PHP_FUNCTION(ibase_blob_cancel)
27772777
{
@@ -2846,7 +2846,7 @@ PHP_FUNCTION(ibase_blob_info)
28462846
}
28472847
/* }}} */
28482848

2849-
/* {{{ proto int ibase_blob_echo(string blob_id_str)
2849+
/* {{{ proto bool ibase_blob_echo(string blob_id_str)
28502850
Output blob contents to browser */
28512851
PHP_FUNCTION(ibase_blob_echo)
28522852
{
@@ -2890,7 +2890,7 @@ PHP_FUNCTION(ibase_blob_echo)
28902890
}
28912891
/* }}} */
28922892

2893-
/* {{{ proto string ibase_blob_import([link_identifier, ] int file_id)
2893+
/* {{{ proto string ibase_blob_import([resource link_identifier, ] int file_id)
28942894
Create blob, copy file in it, and close it */
28952895
PHP_FUNCTION(ibase_blob_import)
28962896
{
@@ -3111,23 +3111,23 @@ static void _php_ibase_user(INTERNAL_FUNCTION_PARAMETERS, int operation)
31113111
}
31123112
/* }}} */
31133113

3114-
/* {{{ proto int ibase_add_user(string server, string dba_user_name, string dba_password, string user_name, string password [, string first_name [, string middle_name [, string last_name]]])
3114+
/* {{{ proto bool ibase_add_user(string server, string dba_user_name, string dba_password, string user_name, string password [, string first_name [, string middle_name [, string last_name]]])
31153115
Add an user to security database (only for IB6 or later) */
31163116
PHP_FUNCTION(ibase_add_user)
31173117
{
31183118
_php_ibase_user(INTERNAL_FUNCTION_PARAM_PASSTHRU, isc_action_svc_add_user);
31193119
}
31203120
/* }}} */
31213121

3122-
/* {{{ proto int ibase_modify_user(string server, string dba_user_name, string dba_password, string user_name, string password [, string first_name [, string middle_name [, string last_name]]])
3122+
/* {{{ proto bool ibase_modify_user(string server, string dba_user_name, string dba_password, string user_name, string password [, string first_name [, string middle_name [, string last_name]]])
31233123
Modify an user in security database (only for IB6 or later) */
31243124
PHP_FUNCTION(ibase_modify_user)
31253125
{
31263126
_php_ibase_user(INTERNAL_FUNCTION_PARAM_PASSTHRU, isc_action_svc_modify_user);
31273127
}
31283128
/* }}} */
31293129

3130-
/* {{{ proto int ibase_delete_user(string server, string dba_user_name, string dba_password, string username)
3130+
/* {{{ proto bool ibase_delete_user(string server, string dba_user_name, string dba_password, string username)
31313131
Delete an user from security database (only for IB6 or later) */
31323132
PHP_FUNCTION(ibase_delete_user)
31333133
{

0 commit comments

Comments
 (0)