3

Can I disable the PHP Dom Extension temporarily (for debug reasons), without having to reinstall / recompile PHP?

I want to install the module and I'm looking for a way to temporarily turn it off, so that I can turn it back on at another time.

  • 1
    --enable-dom=false during install might be what you're looking for – Martijn Jan 12 '15 at 10:41
  • ok, but I mean temporarily, after installation – Ferenjito Jan 12 '15 at 11:27
  • As @Martijn suggests, the only way to truly "disable" the extension is at compile time (also --disable-dom - php.net/manual/en/dom.installation.php). If this is for "debugging", can you not simulate (unit test) this? – MrWhite Jan 12 '15 at 12:34
1

Your extension has no runtime configuration options. If it cannot be controlled from php.ini, then your only option would be to un-install it and re-install it later.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.