Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-129

HIPPO can't throw InvalidArgumentException on argument errors

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 0.1.5
    • Affects Version/s: None
    • Component/s: None
    • None

      Current vast amounts of methods change the default PHP error handling that throws a warning to throwing exceptions. This should not be done because:

      • PHP's general error handling for nearly any function or method, albeit in core or in an extension doesn't do this
      • It is incompatible with HHVM's error handling. In HHVM, the parameter parsing happens before the (native) C-function is entered. This makes it impossible to convert warnings to exceptions, even if we wanted to.

            Assignee:
            bjori Hannes Magnusson
            Reporter:
            derick Derick Rethans
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: