Skip to content

ini-file: development defines disable_functions #573

Answered by shivammathur
mfn asked this question in Q&A / Help
Discussion options

You must be logged in to vote

This is from ondrej's builds. It comes with 3 ini files.

  • php.ini-development: Used for all SAPI, has disabled_functions set.
  • php.ini-production: Used for all SAPI expect cli, this also has disabled_functions set.
  • php.ini-production.cli: Used for cli, does not have disabled_functions set.

So the differentiation you mentioned between cli and fpm is in the case of production php.ini.

For 7.4, these will be in /usr/lib/php/7.4, and are used when a SAPI is configured.

Source: https://salsa.debian.org/php-team/php/-/blob/debian/main/7.4/debian/rules#L504

As you mentioned, the workaround is trivial, so I would not like to change this.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@susnux
Comment options

Answer selected by mfn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants