File tree Expand file tree Collapse file tree 4 files changed +23
-3
lines changed Expand file tree Collapse file tree 4 files changed +23
-3
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ PHP NEWS
141
141
. Added pcntl_getaffinity/pcntl_setaffinity. (David Carlier)
142
142
. Updated pcntl_get_signal_handler signal id upper limit to be
143
143
more in line with platforms limits. (David Carlier)
144
- . Added pcntl_getcpu for Linux/FreeBSD. (David Carlier)
144
+ . Added pcntl_getcpu for Linux/FreeBSD/Solaris/Illumos . (David Carlier)
145
145
. Added pcntl_getqos_class/pcntl_setqos_class for macOs. (David Carlier)
146
146
. Added SIGCKPT/SIGCKPTEXIT constants for DragonFlyBSD. (David Carlier)
147
147
Original file line number Diff line number Diff line change @@ -694,7 +694,7 @@ static bool zend_call_stack_get_solaris_proc_maps(zend_call_stack *stack)
694
694
struct rlimit rlim ;
695
695
char path [PATH_MAX ];
696
696
size_t size ;
697
- ssize_t len ;
697
+ ssize_t len = -1 ;
698
698
pid_t pid ;
699
699
int error , fd ;
700
700
Original file line number Diff line number Diff line change @@ -7,7 +7,21 @@ if test "$PHP_PCNTL" != "no"; then
7
7
AC_CHECK_FUNCS ( [ fork] , [ ] , [ AC_MSG_ERROR ( [ pcntl: fork() not supported by this platform] ) ] )
8
8
AC_CHECK_FUNCS ( [ waitpid] , [ ] , [ AC_MSG_ERROR ( [ pcntl: waitpid() not supported by this platform] ) ] )
9
9
AC_CHECK_FUNCS ( [ sigaction] , [ ] , [ AC_MSG_ERROR ( [ pcntl: sigaction() not supported by this platform] ) ] )
10
- AC_CHECK_FUNCS ( [ getpriority setpriority wait3 wait4 sigwaitinfo sigtimedwait unshare rfork forkx pidfd_open sched_setaffinity pthread_set_qos_class_self_np] )
10
+ AC_CHECK_FUNCS ( m4_normalize ( [
11
+ forkx
12
+ getcpuid
13
+ getpriority
14
+ pidfd_open
15
+ pthread_set_qos_class_self_np
16
+ rfork
17
+ sched_setaffinity
18
+ setpriority
19
+ sigwaitinfo
20
+ sigtimedwait
21
+ unshare
22
+ wait3
23
+ wait4
24
+ ] ) )
11
25
12
26
dnl if unsupported, -1 means automatically ENOSYS in this context
13
27
AC_MSG_CHECKING ( [ if sched_getcpu is supported] )
Original file line number Diff line number Diff line change @@ -78,6 +78,12 @@ typedef cpuset_t *cpu_set_t;
78
78
#define HAVE_SCHED_SETAFFINITY 1
79
79
#endif
80
80
81
+ #if defined(HAVE_GETCPUID )
82
+ #include <sys/processor.h>
83
+ #define sched_getcpu getcpuid
84
+ #define HAVE_SCHED_GETCPU 1
85
+ #endif
86
+
81
87
#if defined(HAVE_PTHREAD_SET_QOS_CLASS_SELF_NP )
82
88
#include <pthread/qos.h>
83
89
static zend_class_entry * QosClass_ce ;
You can’t perform that action at this time.
0 commit comments