Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ PHP NEWS
. Using null as an array offset or when calling array_key_exists() is now
deprecated. (alexandre-daubois)
. Fixed bug GH-19681 (PHP_EXPAND_PATH broken with bash 5.3.0). (Remi)
. Marks the stack as non-executable on Haiku. (David Carlier)

- CLI:
. Fixed bug GH-19461 (Improve error message on listening error with IPv6
Expand Down
5 changes: 5 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,12 @@ dnl supports it. This can help reduce the binary size and startup time.
AX_CHECK_COMPILE_FLAG([-fvisibility=hidden],
[CFLAGS="$CFLAGS -fvisibility=hidden"])

dnl to disable executable stack on haiku due
dnl to missing elf .note.GNU-stack part
case $host_alias in
*haiku*)
LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
;;
*solaris*)
CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
;;
Expand Down
4 changes: 3 additions & 1 deletion ext/sockets/sockets.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ ZEND_DECLARE_MODULE_GLOBALS(sockets)
} \
} while (0)
#else
#define PHP_ETH_PROTO_CHECK(protocol, family) (0)
#define PHP_ETH_PROTO_CHECK(protocol, family) \
(void)protocol; \
(void)family
#endif

static PHP_GINIT_FUNCTION(sockets);
Expand Down
2 changes: 1 addition & 1 deletion sapi/litespeed/lsapi_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ static int sapi_lsapi_activate(void)
static sapi_module_struct lsapi_sapi_module =
{
"litespeed",
"LiteSpeed V8.2",
"LiteSpeed V8.3",

php_lsapi_startup, /* startup */
php_module_shutdown_wrapper, /* shutdown */
Expand Down
4 changes: 2 additions & 2 deletions sapi/litespeed/lsapilib.c
Original file line number Diff line number Diff line change
Expand Up @@ -635,8 +635,8 @@ static inline int isPipe( int fd )
{
char achPeer[128];
socklen_t len = 128;
if (( getpeername( fd, (struct sockaddr *)achPeer, &len ) != 0 )&&
( errno == ENOTCONN ))
if ((getpeername(fd, (struct sockaddr *)achPeer, &len) != 0 )
&& (errno == ENOTCONN || errno == ENOTSOCK))
return 0;
else
return 1;
Expand Down