php-firebird icon indicating copy to clipboard operation
php-firebird copied to clipboard

Inconsistent arguments for ibase_query() and ibase_prepare()

Open mlazdans opened this issue 3 months ago • 0 comments

From PHP manual:

Image Image
  1. Arguments for ibase_query() is not documented properly. They should be like this:
ibase_query(string $query [, mixed ...$bind_args]): resource
ibase_query(resource $link_identifier, string $query [, mixed ...$bind_args]): resource
ibase_query(resource $trans_identifier, string $query [, mixed ...$bind_args]): resource
ibase_query(resource $link_identifier, resource $trans_identifier, string $query [, mixed ...$bind_args]): resource
  1. There is a typo in ibase_prepare(): string $trans should read resource $trans_identifier
  2. To be more consistent I think arguments for ibase_prepare() should match ibase_query() but w/o bind args. E.g. for now you can do ibase_query($trans_id, ...) but can't do ibase_prepare($trans_id, ...)

mlazdans avatar Oct 29 '25 22:10 mlazdans