diff --git a/NEWS b/NEWS index ba1a13bf18f..011ca7dc9a3 100644 --- a/NEWS +++ b/NEWS @@ -20,6 +20,10 @@ PHP NEWS . Implemented FR #70438 (Add IV parameter for openssl_seal and openssl_open) (Jakub Zelenka) +- Phpdbg: + . Fixed bug #70449 (PHP won't compile on 10.4 and 10.5 because of missing + constants). (Bob) + - Streams: . Fixed bug #70361 (HTTP stream wrapper doesn't close keep-alive connections). (Niklas Keller) diff --git a/sapi/phpdbg/phpdbg_io.h b/sapi/phpdbg/phpdbg_io.h index 3e25fc5eeb3..fdd579d5481 100644 --- a/sapi/phpdbg/phpdbg_io.h +++ b/sapi/phpdbg/phpdbg_io.h @@ -21,6 +21,11 @@ #include "phpdbg.h" +/* Older versions of glibc <= 2.3.0 and <= OS X 10.5 do not have this constant defined */ +#ifndef AI_NUMERICSERV +#define AI_NUMERICSERV 0 +#endif + PHPDBG_API int phpdbg_consume_stdin_line(char *buf); PHPDBG_API int phpdbg_consume_bytes(int sock, char *ptr, int len, int tmo);