Added PHP test code for #481