Ini_set, putenv and other functions of the scope of action, the overall situation is limited to this site
Source: Internet
Author: User
What is the scope of functions such as Ini_set and putenv, or is it limited to this site?
On the official website The description of these two functions is that the modifications are valid when the script executes.
But it does not say whether this modification is valid for the site or for the global. If it is globally valid, it is not possible to modify the default global PHP security settings through these functions, resulting in security issues.
Does anyone know the scope of its function, or can it be tested in such a way that it is scoped?
Also there is no need to disable them in the disable_functions, normal Web applications to use their situation is many?
------Solution--------------------
Ini_set end of script run when current script runs
Putenv survived at the end of the current session request
------Solution--------------------
Valid only for the second run, like the constant you set
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.