1

I would like to know if there is any way I can remove the gettext extension without re-compiling php?

Dennis Williamson
  • 62,149
  • 16
  • 116
  • 151
mnml
  • 337
  • 1
  • 7
  • 21

1 Answers1

2

Only when the gettext was installed as a loadable PHP extension. Check your PHP configuration (php.ini) for extension lines. If you want users to be unable to use gettext you can use the PHP disable_functions configuration directive to disable the gettext functions, from the PHP manual:

disable_functions string
This directive allows you to disable certain functions for security reasons. It takes on a comma-delimited list of function names. disable_functions is not affected by Safe Mode. This directive must be set in php.ini For example, you cannot set this in httpd.conf.

PowerSp00n
  • 1,506
  • 1
  • 8
  • 8