Skip to content

Native division does not throw ArithemticError #136

Closed
@ndench

Description

@ndench

In #77 checks for ArithmeticError were added, however I don't think that native division (eg. $x / $y) can actually throw this. #77 (comment) mentions only two ways to get the error:

  1. intdiv(PHP_INT_MIN, -1);
  2. 1 << -3;

And the PHP docs for ArithmeticError don't mention anything about native division.

If it's not possible for it to be thrown here, maybe we shouldn't be reporting it as an issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions