Skip Navigation

[Resolved] What Will happen if all the disable_functions in php ini been disabled

This thread is resolved. Here is a description of the problem and solution.

Problem:

What will happen if "system", "virtual", "passthru" or "ini_alter" function been disabled from the php.ini? Will it cause any problem to the plugin functionality.

Solution:

Toolset's requirements are here:

https://toolset.com/toolset-requirements/

If you disabled named functions as you wish, I am not sure what will happen, and it is not within the Support Coverage to help with such server settings - for what is above what we state in the Minimal Server Requirements above.

Relevant Documentation:

https://toolset.com/toolset-requirements/

This support ticket is created 6 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 3 replies, has 2 voices.

Last updated by hees 6 years, 6 months ago.

Assisted by: Luo Yang.

Author
Posts
#1069590
Tooset.png

I would like to ask about this file: "types\vendor\toolset\toolset-common\visual-editor\res\js\codemirror\mode\php\php.js"

On line 89, there is a variable 'phpBuiltin' with a list of function name. What will happen if "system", "virtual", "passthru" or "ini_alter" function been disabled from the php.ini? Will it cause any problem to the plugin functionality.

Due to security reason, the security team of my company suggest to disable this function in php.ini for all the web server that using PHP.

#1070017

That is from code mirror, an external library we use to create our editors where you can see the highlighted code for example.

It's not Toolset code, it's a public library:
hidden link

I honestly have no idea what happens if you disable those in your Server, but I assume it'll break CodeMirror, I do not know.

I'll see to ask someone with experience there.

#1070061

So, that line of code in code mirror is not related to what you activate or not in php.ini

Please do not alter any server or plugin files, settings or else, if you are not familiar with this.

Toolset's requirements are here:
https://toolset.com/toolset-requirements/

If you disabled named functions as you wish, I am not sure what will happen, and it is not within the Support Coverage to help with such server settings - for what is above what we state in the Minimal Server Requirements above.
https://toolset.com/toolset-support-policy/

In this case, I have to apologies that I cannot help with the exact forecast of what will happen, however, Codemirror is not in any way requiring any PHP at all actually, so, no, that will not affect Codemirror, but it may however break other things in your site, if you are disabling required functions of WordPress or Toolset.

#1070069

Hi,

Thank you for the advice. Noted it may somehow break other things if disabled those functions.