bug #4560 PHP error on master branch

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>