ini_set() scope of effect?
问题 I've had index.php and several files which cascading include,something like this. index.php -> controller.php -> model.php -> view.php In model.php I have a function using ini_set('memory_limit', '-1'); When will the ini_set() change of the setting expire? After executed index.php ? Or view.php ? Or the function in model.php ? 回答1: ini_set() is global for everything that happens in the script (not just the current file: the whole thread of execution that is occurring), for this entire one