Skip to content

Commit

Permalink
Merge branch 'PHP-8.0' into PHP-8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bukka committed Nov 22, 2022
2 parents 6fbf81c + 72da2b0 commit 31b20f1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions NEWS
Expand Up @@ -45,6 +45,8 @@ PHP NEWS
- FPM:
. Fixed bug GH-9754 (SaltStack (using Python subprocess) hangs when running
php-fpm 8.1.11). (Jakub Zelenka)
. Fixed bug GH-9959 (Solaris port event mechanism is still broken after bug
#66694). (Petr Sumbera)

- mysqli:
. Fixed bug GH-9841 (mysqli_query throws warning despite using
Expand Down
8 changes: 7 additions & 1 deletion sapi/fpm/fpm/events/port.c
Expand Up @@ -144,14 +144,20 @@ static int fpm_event_port_wait(struct fpm_event_queue_s *queue, unsigned long in
}

for (i = 0; i < nget; i++) {
struct fpm_event_s *ev;

/* do we have a ptr to the event ? */
if (!events[i].portev_user) {
continue;
}

ev = (struct fpm_event_s *)events[i].portev_user;

/* re-associate for next event */
fpm_event_port_add(ev);

/* fire the event */
fpm_event_fire((struct fpm_event_s *)events[i].portev_user);
fpm_event_fire(ev);

/* sanity check */
if (fpm_globals.parent_pid != getpid()) {
Expand Down

0 comments on commit 31b20f1

Please sign in to comment.