bson_to_zval() should throw exceptions instead of warnings

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • 1.0.0-alpha1
    • Affects Version/s: 0.6.3
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We currently trigger warnings for the following:

      • "Could not read document from reader"
      • "Could not initialize BSON iterator"
      • "Reading document did not exhaust input buffer"

      Aside from src/contrib/php-ssl.c, these are the only errors/warnings emitted by the extension. We should change these to exceptions.

      Additionally, this would resolve some test output differences with HHVM (see: PR #66).

              Assignee:
              Jeremy Mikola
              Reporter:
              Jeremy Mikola
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: