Fixed bug #66356 (Heap Overflow Vulnerability in imagecrop())

And also fixed the bug: arguments are altered after some calls
Merge branch 'PHP-5.5' into PHP-5.6

Conflicts:
	main/php_version.h
Merge branch 'PHP-5.6'
Revert accidented committed php_version.h
Merge branch 'PHP-5.5' into PHP-5.6

Conflicts:
	main/php_version.h
Merge branch 'PHP-5.6'
Fixed bug #66358 (fpm starts segfault)
Merge branch 'PHP-5.6'
Merge remote-tracking branch 'origin/master' into str_size_and_int64

Conflicts:
	ext/gd/gd.c
fix macros conflicts when included intsafe.h
update version output
Merge branch 'PHP-5.6'

* PHP-5.6:
  update version output
revamp the hash api once more
fix bit shift 64 vs 32 bit vars
Merge remote-tracking branch 'origin/master' into str_size_and_int64
other place with 64 bit << and hash size
Fixed bug #66356 (Heap Overflow Vulnerability in imagecrop())

Initial fix was PHP stuff
This one is libgd fix.

- filter invalid crop size
- dont try to copy on invalid position
- fix crop size when out of src image
- fix possible NULL deref
- fix possible integer overfloow
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  Fixed bug #66356 (Heap Overflow Vulnerability in imagecrop())
Merge branch 'PHP-5.6'

* PHP-5.6:
  Fixed bug #66356 (Heap Overflow Vulnerability in imagecrop())
minor fix on previous