backport the fix for bug #67739
Merge branch 'PHP-5.4' into PHP-5.5

* PHP-5.4:
  backport the fix for bug #67739
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  backport the fix for bug #67739
Fixed Bug #66901 php-gd 'c_color' NULL pointer dereference

Upstream https://bitbucket.org/libgd/gd-libgd/commits/463c3bd09bfe8e924e19acad7a2a6af16953a704

Notice: this fix don't manage monochrome/monovisual values
but just fix the security issue CVE-2014-2497
failing when trying to load such an image
NEWS
Merge branch 'PHP-5.4' into PHP-5.5

* PHP-5.4:
  NEWS
  Fixed Bug #66901 php-gd 'c_color' NULL pointer dereference
NEWS
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  NEWS
  NEWS
  Fixed Bug #66901 php-gd 'c_color' NULL pointer dereference
NEWS
typo
Merge branch 'PHP-5.4' into PHP-5.5

* PHP-5.4:
  typo
typo
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  typo
  typo
typo
Fixed Bug #67724

(chained zlib filters silently fail with large amounts of data)

Use the same buffer size zlib uses internally to avoid
Z_DATA_ERROR on massively compressed data
Merge branch 'PHP-5.4' into PHP-5.5

* PHP-5.4:
  Fixed Bug #67724
BFN
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  BFN
  Fixed Bug #67724
BFN
Add SO_REUSEPORT + SO_BROADCAST support via socket stream context option