I think this should be require. Not require_once. In theory there's nothing to stop this file being loaded multiple times if newFromFile() is called multiple times.