Skip to content
Open
Show file tree
Hide file tree
Changes from 4 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
Loading