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.

Martijn
  • 6,806
  • 17
  • 36
Lokomotywa
  • 171
  • 1
  • 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 – Lokomotywa Jan 12 '15 at 11:27
  • As @Martijn suggests, the only way to truly "disable" the extension is at compile time (also --disable-dom - http://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 Answers1

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.

Stephen Ostermiller
  • 98,758
  • 18
  • 137
  • 361