[Bug 1056822] Support PHP7 packagers with new packaging macros