added handling of error for 32 bit version of php
Merge pull request #6709 from openscholar/1778

added handling of error for 32 bit version of php