Alternative approach.

Referencing the parent is broken, so let's look it up.
... Still need to create a ticket in the PHP bug tracker...
Merge pull request #36 from adam-vessey/7.x-UCLAPS-8

Work around PHP bug in new PHPs.