-
Type: Build Failure
-
Resolution: Unresolved
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: Tests
We occasionally encounter test failures (example) due to newline or non-printable characters appearing in binary data (e.g. logical session IDs). For example:
========DIFF======== [2021/10/11 18:31:51.252] 007+ string(16) "��إbIF���JT [2021/10/11 18:31:51.252] 008+ J" [2021/10/11 18:31:51.252] 007- string(16) "%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c" [2021/10/11 18:31:51.252] ========DONE======== [2021/10/11 18:31:51.252] FAIL MongoDB\Driver\Session debug output (before an operation) [tests/session/session-debug-001.phpt]
While we could likely work around this in tests by using "%A" to permit whitespace, it may make more sense to report MongoDB\BSON\Binary's "data" field as hex bytes in debug output.
- related to
-
PHPC-2313 Improve working with Binary UUIDs
- Closed