PHP: Avoid unintended duplicate rebuilds.
Merge branch 'refs/heads/master' into 2.2.x-legacy