Added php prototypes