mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.2'
This commit is contained in:
3
NEWS
3
NEWS
@@ -2,6 +2,9 @@ PHP NEWS
|
||||
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||
?? ??? ????, PHP 8.3.0beta3
|
||||
|
||||
- Core:
|
||||
. Fixed strerror_r detection at configuration time. (Kévin Dunglas)
|
||||
|
||||
- DOM:
|
||||
. adoptNode now respects the strict error checking property. (nielsdos)
|
||||
|
||||
|
||||
12
Zend/zend.c
12
Zend/zend.c
@@ -1646,9 +1646,15 @@ ZEND_API ZEND_COLD ZEND_NORETURN void zend_error_noreturn(int type, const char *
|
||||
|
||||
ZEND_API ZEND_COLD ZEND_NORETURN void zend_strerror_noreturn(int type, int errn, const char *message)
|
||||
{
|
||||
#ifdef HAVE_STR_ERROR_R
|
||||
char buf[1024];
|
||||
strerror_r(errn, buf, sizeof(buf));
|
||||
#ifdef HAVE_STRERROR_R
|
||||
char b[1024];
|
||||
|
||||
# ifdef STRERROR_R_CHAR_P
|
||||
char *buf = strerror_r(errn, b, sizeof(b));
|
||||
# else
|
||||
strerror_r(errn, b, sizeof(b));
|
||||
char *buf = b;
|
||||
# endif
|
||||
#else
|
||||
char *buf = strerror(errn);
|
||||
#endif
|
||||
|
||||
@@ -648,9 +648,11 @@ asprintf \
|
||||
nanosleep \
|
||||
memmem \
|
||||
memrchr \
|
||||
strerror_r \
|
||||
)
|
||||
|
||||
dnl Check for strerror_r, and if its a POSIX-compatible or a GNU specific version.
|
||||
AC_FUNC_STRERROR_R
|
||||
|
||||
AX_FUNC_WHICH_GETHOSTBYNAME_R
|
||||
|
||||
dnl Some systems (like OpenSolaris) do not have nanosleep in libc.
|
||||
|
||||
Reference in New Issue
Block a user