-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
scott.lhommedieu shared an example of client metadata logs, which make it impossible to determine the PHP version:
cfg=0x156b8e9 posix=200809 stdc=201112 CC=GCC 5.4.0 20160609 CFLAGS='-g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wall -ped...
Ideally, the output would include the PHP version at the end:
cfg=0x30c9 posix=200809 CC=GCC 4.8.5 20150623 (Red Hat 4.8.5-11) CFLAGS='-g -O2' LDFLAGS='' / PHP 7.1.6
The PHP version string appended during MINIT (via mongoc_handshake_data_append) is cut off during construction of the handshake document (_mongoc_handshake_build_doc_with_application and _append_platform_field). This is likely caused by libmongoc first appending user-set CFLAGS and LDFLAGS in set_platform_string. Those arguably have less value than the PHP version, so we should consider leaving those constants unset in config.m4 or propose that libmongoc swap the order of appended platform fields so that data from the wrapping driver (e.g. ext-mongodb) is included before CFLAGS/LDFLAGS.
- related to
-
CDRIVER-3134 Append wrapping driver platform data before CFLAGS and LDFLAGS
- Closed