Unbreak the build on php 5.3. Fix calling 'array' callbacks

Probably related to: https://bugs.php.net/bug.php?id=47160

Revert if 5.3 is EOL. ;)