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

Revise fragile session ID assertions

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.6.0alpha2, 1.6.0
    • Affects Version/s: None
    • Component/s: None
    • None

      This task appears to have failed due to an unexpected newline character in a session ID's raw bytes. Rather than dumping the raw bytes, we should consider converting to hex or making some other assertion that might prevent such a failure.

      TEST 1665/1750 [tests/session/session-getLogicalSessionId-001.phpt]
       [2019/03/03 05:28:19.970] ========DIFF========
       [2019/03/03 05:28:19.970] 005+     string(16) ":�HџN������
       [2019/03/03 05:28:19.970] 006+ 0"
       [2019/03/03 05:28:19.970] 005-     string(16) "%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c"
       [2019/03/03 05:28:19.970] ========DONE========
       [2019/03/03 05:28:19.970] FAIL MongoDB\Driver\Session::getLogicalSessionId() [tests/session/session-getLogicalSessionId-001.phpt]
      

            Assignee:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: