Adds fallback to php::input to fix #261.

#261