Skip to content

Inconsistent arguments for ibase_query() and ibase_prepare() #90

@mlazdans

Description

@mlazdans

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, ...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions