php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #24097 ibase_rollback warning message
Submitted: 2003-06-09 10:44 UTC Modified: 2004-09-18 10:16 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: benji at autec dot es Assigned: daniela (profile)
Status: Closed Package: Documentation problem
PHP Version: 4.3.2 OS: Windows XP Professional
Private report: No CVE-ID: None
 [2003-06-09 10:44 UTC] benji at autec dot es
When you do a:
ibase_rollback( $connection, $trans);

both parameters being correct.

This function returns a warning message claiming wrong parameter count. but works fine anyway.

Also if you call:
ibase_rollback( $trans); 

Function does not give any error message.

The documentation says:
int ibase_rollback ( [int link_identifier, int trans_number] )

May be it is an error of the documetation...


Thank you php team,

Ben

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-09 22:37 UTC] sniper@php.net
Both ibase_commit() and ibase_rollback() are affected. 
The protos for them say the link parameter is optional, but 
you should still be able to give it both parameters.
(to be able to handle multiple db connections in same script)

_php_ibase_trans_end() has missing 'case 2:' in the 
switch(), so you can not give it both the connection link 
and transaction as parameters, just either or.

Daniela, can you take a look? 

 [2003-06-15 17:00 UTC] sniper@php.net
reclassified

 [2004-09-18 10:16 UTC] vrana@php.net
Already fixed.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Sep 21 23:00:01 2025 UTC