Php: Swapped variables

Signed-off-by: Frca <killerfrca@gmail.com>
Php: Fix setting to proper reference

Signed-off-by: Frca <killerfrca@gmail.com>