socket: fix bug #65260 (SCM_RIGHTS)

The data for messages of type SOL_SOCKET/SCM_RIGHTS was not being
passed correctly. There were actually two bugs: (1) the number of file
descriptors being passed was being read incorrectly (the length of the
cmsg array was being read instead of that of its 'data' element), as a
result it was generally being reported as always three elements
('level', 'type' and 'data') and (2) the allocated block for writing
the file descriptors was being acessed incorrectly because a 1-based
counter was being used as if it was 0-based.

Any of these two bugs would probably be enough to cause heap
corruption.
socket: support unix paths in the abstract namespace

Those starting with '\0'.
NEWS for 710150c and e2744f1
Merge branch 'PHP-5.5'

* PHP-5.5:
  NEWS for 710150c and e2744f1
  socket: support unix paths in the abstract namespace
  socket: fix bug #65260 (SCM_RIGHTS)
Fixed typo ensuring header str is \0 terminated

This was obviously intended to send an empty header if
php_gmtime_r() fails. Currently it could send garbage.
Merge branch 'PHP-5.4' into PHP-5.5

* PHP-5.4:
  Fixed typo ensuring header str is \0 terminated
Merge branch 'PHP-5.5'

* PHP-5.5:
  Fixed typo ensuring header str is \0 terminated
Make zval2myslqnd implementations aware of inheritance
Merge branch 'PHP-5.4' into PHP-5.5
Merge branch 'PHP-5.5'
added sapi check for dl() test
Merge branch 'PHP-5.4' into PHP-5.5

* PHP-5.4:
  added sapi check for dl() test
Merge branch 'PHP-5.5'

* PHP-5.5:
  added sapi check for dl() test
fix TS build
Merge branch 'PHP-5.4' into PHP-5.5

* PHP-5.4:
  fix TS build
Merge branch 'PHP-5.5'

* PHP-5.5:
  fix TS build