PHP Unused-variables Resources