fix PHP Extension auto detect reinstalls
Merge commit '0328e023356b3ecc8aadeb09ca15bb32fcb9b3d3' into 123.07stable

* commit '0328e023356b3ecc8aadeb09ca15bb32fcb9b3d3':
  fix PHP Extension auto detect reinstalls