Fix to support PHP prototypes (fixes #276)

See issue #276