Fix PHP 5.3 build error in Travis build 29.1

"Fatal error: Cannot access self:: when no class scope is active..."