This has been running on my system for a while now (bar the 22/24 -> 2.2/2.4 fix in bsd.ports.mk) during active porting of mod_h2-devel and mod_md-devel.
Just rebuilt all my Apache and PHP ports, these were all OK
https://brnrd.eu/poudriere/build.html?mastername=111libre-default&build=2017-09-17_20h41m39s