add php5.4 support

Signed-off-by: David Guillemin <david.guillemin@gmail.com>