Comparing PHP Resources and Objects