Which PHP functions are necessary for TYPO3 6?

纵饮孤独 提交于 2019-12-12 13:49:15

问题


I just did a fresh install of TYPO3 6.1. The system environment check tells me, that some PHP functions are disabled on my server. I'm using Froxlor on my server to administrate domains and alike. Thus, I have complete control over this machine but I'm not sure which functions are really necessary. Some functions seem to be pretty dangerous to me, so I don't want to enable every function which are disabled on my box.

TYPO3 lists the following functions as disabled:

disable_functions=parse_ini_file passthru popen proc_close proc_get_status proc_nice proc_open proc_terminate shell_exec show_source system

Which should be definitely enabled for TYPO3 and which can stay disabled? Thanks for your help.


回答1:


There's the function's use in the TYPO3 core and its system extensions. For the functions that are used it's up to you to decide whether you disable them or not. Some functionality will break if you disable them but it might be functionality that your installation doesn't need.

Beware though that any of those methods might be used by any of the non-system extensions that you install!

Functions used

  • passthru - used when generating thumbnails in the backend.
  • proc_close - used, probably by a mailer class.
  • proc_open - used, probably by a mailer class.
  • shell_exec - used by the scheduler and by the RTE for spellchecking using Aspell.

Functions NOT used

  • parse_ini_file
  • popen
  • proc_get_status
  • proc_nice
  • proc_terminate
  • show_source
  • system



回答2:


you should be able to edit a custom php.ini in froxlor; there you can re-enable functions. Try this page for instructions



来源:https://stackoverflow.com/questions/16356236/which-php-functions-are-necessary-for-typo3-6

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!