Convert code to be php5.3 compatible

fixed code to be compatible with 12.04 LTS

Change-Id: I32b250649e715a90913f099035f96bba5bbfacf0
Implements: blueprint openid-oauth2-php53-complaint