conditional compile flags for php target
needed for when macros are used in other parts of the project
Merge commit 'ecad433'