Skip to content
Closed
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
3 changes: 0 additions & 3 deletions frankenphp.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#ifndef ZEND_WIN32
#include <unistd.h>
#endif
#if defined(__linux__)
#include <sys/prctl.h>
#elif defined(__FreeBSD__) || defined(__OpenBSD__)
Expand Down
1 change: 0 additions & 1 deletion internal/phpheaders/phpheaders.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package phpheaders

import "C"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not having import "C" in modules makes test ./... fail sometimes.

It's a weird bug with cgo gcc linking.

import (
"context"
"strings"
Expand Down
1 change: 0 additions & 1 deletion internal/state/state.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package state

import "C"
import (
"slices"
"sync"
Expand Down
2 changes: 0 additions & 2 deletions worker.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package frankenphp

// #include "frankenphp.h"
import "C"
import (
"fmt"
"os"
Expand Down Expand Up @@ -220,7 +218,7 @@
for _, thread := range drainedThreads {
if !thread.state.Is(state.Yielding) {
thread.forceKillMu.RLock()
C.frankenphp_force_kill_thread(thread.forceKill)

Check failure on line 221 in worker.go

View workflow job for this annotation

GitHub Actions / Tests (Linux, PHP 8.3)

undefined: C

Check failure on line 221 in worker.go

View workflow job for this annotation

GitHub Actions / Tests (Linux, PHP 8.4)

undefined: C

Check failure on line 221 in worker.go

View workflow job for this annotation

GitHub Actions / Tests (Linux, PHP 8.2)

undefined: C

Check failure on line 221 in worker.go

View workflow job for this annotation

GitHub Actions / Tests (Linux, PHP 8.5)

undefined: C

Check failure on line 221 in worker.go

View workflow job for this annotation

GitHub Actions / Tests (macOS, PHP 8.5)

undefined: C

Check failure on line 221 in worker.go

View workflow job for this annotation

GitHub Actions / Integration Tests (Linux, PHP 8.5)

undefined: C

Check failure on line 221 in worker.go

View workflow job for this annotation

GitHub Actions / Integration Tests (Linux, PHP 8.5)

undefined: C

Check failure on line 221 in worker.go

View workflow job for this annotation

GitHub Actions / Integration Tests (Linux, PHP 8.5)

undefined: C

Check failure on line 221 in worker.go

View workflow job for this annotation

GitHub Actions / Integration Tests (Linux, PHP 8.5)

undefined: C

Check failure on line 221 in worker.go

View workflow job for this annotation

GitHub Actions / Integration Tests (Linux, PHP 8.5)

undefined: C

Check failure on line 221 in worker.go

View workflow job for this annotation

GitHub Actions / Integration Tests (Linux, PHP 8.5)

undefined: C

Check failure on line 221 in worker.go

View workflow job for this annotation

GitHub Actions / Integration Tests (Linux, PHP 8.5)

undefined: C

Check failure on line 221 in worker.go

View workflow job for this annotation

GitHub Actions / Integration Tests (Linux, PHP 8.5)

undefined: C

Check failure on line 221 in worker.go

View workflow job for this annotation

GitHub Actions / Integration Tests (Linux, PHP 8.5)

undefined: C

Check failure on line 221 in worker.go

View workflow job for this annotation

GitHub Actions / Integration Tests (Linux, PHP 8.5)

undefined: C

Check failure on line 221 in worker.go

View workflow job for this annotation

GitHub Actions / Integration Tests (Linux, PHP 8.4)

undefined: C

Check failure on line 221 in worker.go

View workflow job for this annotation

GitHub Actions / Integration Tests (Linux, PHP 8.4)

undefined: C

Check failure on line 221 in worker.go

View workflow job for this annotation

GitHub Actions / Integration Tests (Linux, PHP 8.4)

undefined: C

Check failure on line 221 in worker.go

View workflow job for this annotation

GitHub Actions / Integration Tests (Linux, PHP 8.4)

undefined: C

Check failure on line 221 in worker.go

View workflow job for this annotation

GitHub Actions / Integration Tests (Linux, PHP 8.4)

undefined: C

Check failure on line 221 in worker.go

View workflow job for this annotation

GitHub Actions / Integration Tests (Linux, PHP 8.4)

undefined: C

Check failure on line 221 in worker.go

View workflow job for this annotation

GitHub Actions / Integration Tests (Linux, PHP 8.4)

undefined: C

Check failure on line 221 in worker.go

View workflow job for this annotation

GitHub Actions / Integration Tests (Linux, PHP 8.4)

undefined: C

Check failure on line 221 in worker.go

View workflow job for this annotation

GitHub Actions / Integration Tests (Linux, PHP 8.4)

undefined: C

Check failure on line 221 in worker.go

View workflow job for this annotation

GitHub Actions / Integration Tests (Linux, PHP 8.4)

undefined: C

Check failure on line 221 in worker.go

View workflow job for this annotation

GitHub Actions / Integration Tests (Linux, PHP 8.3)

undefined: C

Check failure on line 221 in worker.go

View workflow job for this annotation

GitHub Actions / Integration Tests (Linux, PHP 8.3)

undefined: C

Check failure on line 221 in worker.go

View workflow job for this annotation

GitHub Actions / Integration Tests (Linux, PHP 8.3)

undefined: C

Check failure on line 221 in worker.go

View workflow job for this annotation

GitHub Actions / Integration Tests (Linux, PHP 8.3)

undefined: C

Check failure on line 221 in worker.go

View workflow job for this annotation

GitHub Actions / Integration Tests (Linux, PHP 8.3)

undefined: C

Check failure on line 221 in worker.go

View workflow job for this annotation

GitHub Actions / Integration Tests (Linux, PHP 8.3)

undefined: C

Check failure on line 221 in worker.go

View workflow job for this annotation

GitHub Actions / Integration Tests (Linux, PHP 8.3)

undefined: C

Check failure on line 221 in worker.go

View workflow job for this annotation

GitHub Actions / Integration Tests (Linux, PHP 8.3)

undefined: C

Check failure on line 221 in worker.go

View workflow job for this annotation

GitHub Actions / Integration Tests (Linux, PHP 8.3)

undefined: C

Check failure on line 221 in worker.go

View workflow job for this annotation

GitHub Actions / Integration Tests (Linux, PHP 8.3)

undefined: C

Check failure on line 221 in worker.go

View workflow job for this annotation

GitHub Actions / asan

undefined: C

Check failure on line 221 in worker.go

View workflow job for this annotation

GitHub Actions / msan

undefined: C
thread.forceKillMu.RUnlock()
}
}
Expand Down
Loading