Merge branch 'PHP-8.0' into PHP-8.1

* PHP-8.0:
  Fix GH-7978: sockets extension compilation errors
This commit is contained in:
Christoph M. Becker 2022-01-21 23:58:21 +01:00
commit 943d6f642a
No known key found for this signature in database
GPG key ID: D66C9593118BCCB6
2 changed files with 6 additions and 0 deletions

3
NEWS
View file

@ -26,6 +26,9 @@ PHP NEWS
- pcntl:
. Fixed pcntl_rfork build for DragonFlyBSD. (David Carlier)
- Sockets:
. Fixed bug GH-7978 (sockets extension compilation errors). (David Carlier)
- Standard:
. Fixed bug GH-7899 (Regression in unpack for negative int value). (Remi)
. Fixed bug GH-7875 (mails are sent even if failure to log throws exception).

View file

@ -67,6 +67,9 @@ if test "$PHP_SOCKETS" != "no"; then
AC_CACHE_CHECK([if ancillary credentials uses ucred],[ac_cv_ucred],
[
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <sys/socket.h>
]], [[struct ucred u = {.gid = 0};]])],
[ac_cv_ucred=yes], [ac_cv_ucred=no])