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
10 changes: 8 additions & 2 deletions config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ ARG_ENABLE("swoole-coro-time", "calculate coroutine execution time", "no");
ARG_ENABLE("swoole-sqlite", "enable sqlite support", "no");
ARG_ENABLE("swoole-odbc", "enable odbc support", "no");
ARG_WITH("swoole-oracle", "enable oracle support", "no");
ARG_WITH("nghttp2-dir", "dir of nghttp2", "no");

if (PHP_SWOOLE != "no") {
// Calculate PHP version ID (e.g., PHP 8.4 -> 84, PHP 8.5 -> 85)
Expand Down Expand Up @@ -219,8 +220,13 @@ if (PHP_SWOOLE != "no") {
CHECK_LIB("libcrypto.lib;libeay32.lib", "swoole", null);
CHECK_LIB("zlib_a.lib;zlib.lib", "swoole", null);

CHECK_HEADER_ADD_INCLUDE("nghttp2/nghttp2.h", "CFLAGS_SWOOLE", null);
CHECK_LIB("nghttp2.lib", "swoole", null);
if (PHP_NGHTTP2_DIR != "no") {
CHECK_HEADER_ADD_INCLUDE("nghttp2/nghttp2.h", "CFLAGS_SWOOLE", PHP_NGHTTP2_DIR + "\\include")
CHECK_LIB("nghttp2.lib", "swoole", PHP_NGHTTP2_DIR + "\\lib")
} else {
CHECK_HEADER_ADD_INCLUDE("nghttp2/nghttp2.h", "CFLAGS_SWOOLE", null);
CHECK_LIB("nghttp2.lib", "swoole", null);
}

// Check for c-ares
if (PHP_CARES == "yes") {
Expand Down
3 changes: 2 additions & 1 deletion php_swoole.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,12 @@ extern "C" {
#include "config.h"
#endif

extern zend_module_entry swoole_module_entry;

#ifdef __cplusplus
}
#endif

extern zend_module_entry swoole_module_entry;
#define phpext_swoole_ptr &swoole_module_entry

PHP_MINIT_FUNCTION(swoole);
Expand Down
Loading