added handling of error for 32 bit version of php

#1778