1.4.6

Changed code to be compatible with all versions of php