Move the ini_set call into the function