Apply workaround for bug in versions of PHP < 5.3.9.

This change is needed to address a bug in older versions of PHP 5.3
affecting inheritance (see https://bugs.php.net/bug.php?id=66818).