- fix regression bug24155.phpt and bug39366.phpt
Merge branch 'PHP-5.5'

* PHP-5.5:
  - fix regression bug24155.phpt and bug39366.phpt
- fix regression (imagerotate_overflow.phpt), fix for all cases
Merge branch 'PHP-5.5'

* PHP-5.5:
  - fix regression (imagerotate_overflow.phpt), fix for all cases