Skip to content

string return on *affected-rows methods #1483

Closed
@staabm

Description

@staabm

https://www.php.net/manual/en/mysqli.affected-rows.php Mentions the following note:

If the number of affected rows is greater than the maximum int value (PHP_INT_MAX), the number of affected rows will be returned as a string.

Other similar functions don‘t contain the same note, e.g.

  • db2_num_rows
  • oci_num_rows
  • pdostatement::rowCount
  • sqlsrv_rows_affected

Does the same note apply to them and therefore they might also return string on big numbers?

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem right

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions