PHP library cleanup - fixed strict standards warnings, updated float
NaN test so comparison works