4 Star 3 Fork 3

Gitee 极速下载 / ngx_php7

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/rryqszq4/ngx_php7/
克隆/下载
config 4.03 KB
一键复制 编辑 原始数据 按行查看 历史
Joanhey 提交于 2024-02-17 16:44 . Fix php 8 major version
#!/bin/bash
ngx_addon_name=ngx_http_php7_module
NGX_PHP_SRCS="$ngx_addon_dir/src/ngx_http_php_module.c \
$ngx_addon_dir/src/ngx_http_php_core.c \
$ngx_addon_dir/src/ngx_http_php_directive.c \
$ngx_addon_dir/src/ngx_http_php_handler.c \
$ngx_addon_dir/src/ngx_http_php_request.c \
$ngx_addon_dir/src/ngx_http_php7_zend_uthread.c \
$ngx_addon_dir/src/ngx_http_php8_zend_uthread.c \
$ngx_addon_dir/src/ngx_http_php_zend_uthread.c \
$ngx_addon_dir/src/ngx_http_php_sleep.c \
$ngx_addon_dir/src/ngx_http_php_socket.c \
$ngx_addon_dir/src/ngx_http_php_util.c \
$ngx_addon_dir/src/ngx_http_php_variable.c \
$ngx_addon_dir/src/ngx_http_php_header.c \
$ngx_addon_dir/src/ngx_http_php_keepalive.c \
$ngx_addon_dir/src/ngx_php_debug.c \
$ngx_addon_dir/src/ngx_php_conf_file.c \
$ngx_addon_dir/src/php/impl/php_ngx.c \
$ngx_addon_dir/src/php/impl/php_ngx_core.c \
$ngx_addon_dir/src/php/impl/php_ngx_log.c \
$ngx_addon_dir/src/php/impl/php_ngx_request.c \
$ngx_addon_dir/src/php/impl/php_ngx_socket.c \
$ngx_addon_dir/src/php/impl/php_ngx_var.c \
$ngx_addon_dir/src/php/impl/php_ngx_sockets.c \
$ngx_addon_dir/src/php/impl/php_ngx_header.c \
$ngx_addon_dir/src/php/impl/php_ngx_cookie.c \
"
NGX_PHP_DEPS="$ngx_addon_dir/src/ngx_http_php_version.h \
$ngx_addon_dir/src/ngx_http_php_module.h \
$ngx_addon_dir/src/ngx_http_php_core.h \
$ngx_addon_dir/src/ngx_http_php_directive.h \
$ngx_addon_dir/src/ngx_http_php_handler.h \
$ngx_addon_dir/src/ngx_http_php_request.h \
$ngx_addon_dir/src/ngx_http_php7_zend_uthread.h \
$ngx_addon_dir/src/ngx_http_php8_zend_uthread.h \
$ngx_addon_dir/src/ngx_http_php_zend_uthread.h \
$ngx_addon_dir/src/ngx_http_php_sleep.h \
$ngx_addon_dir/src/ngx_http_php_socket.h \
$ngx_addon_dir/src/ngx_http_php_util.h \
$ngx_addon_dir/src/ngx_http_php_variable.h \
$ngx_addon_dir/src/ngx_http_php_header.h \
$ngx_addon_dir/src/ngx_http_php_keepalive.h \
$ngx_addon_dir/src/ngx_php_debug.h \
$ngx_addon_dir/src/ngx_php_conf_file.h \
$ngx_addon_dir/src/php/impl/php_ngx.h \
$ngx_addon_dir/src/php/impl/php_ngx_core.h \
$ngx_addon_dir/src/php/impl/php_ngx_log.h \
$ngx_addon_dir/src/php/impl/php_ngx_request.h \
$ngx_addon_dir/src/php/impl/php_ngx_socket.h \
$ngx_addon_dir/src/php/impl/php_ngx_var.h \
$ngx_addon_dir/src/php/impl/php_ngx_sockets.h \
$ngx_addon_dir/src/php/impl/php_ngx_header.h \
$ngx_addon_dir/src/php/impl/php_ngx_cookie.h \
"
if [ -z "$PHP_CONFIG" ]; then
PHP_CONFIG=`which php-config`
fi
if [ -z "$NGX_PHP_INCS" ]; then
NGX_PHP_INCS="`$PHP_CONFIG --includes | sed 's/-I//g'` `$PHP_CONFIG --include-dir`/sapi/embed "
fi
if [ -z "$NGX_PHP_LIBS" ]; then
PHP_VERSION="`$PHP_CONFIG --vernum`"
PHP_MAJOR_VERSION=`echo $PHP_VERSION | cut -b 1`
if [ $PHP_MAJOR_VERSION -ge "8" ]; then
PHP_MAJOR_VERSION=""
fi
NGX_PHP_LIBS="`$PHP_CONFIG --ldflags` `$PHP_CONFIG --libs` -L$PHP_LIB -lphp$PHP_MAJOR_VERSION "
fi
if [ $ngx_module_link = DYNAMIC ] ; then
ngx_module_type=HTTP_AUX_FILTER
ngx_module_name="ngx_http_php_module"
ngx_module_srcs="$NGX_PHP_SRCS"
ngx_module_deps="$NGX_PHP_DEPS"
ngx_module_incs="$NGX_PHP_INCS"
ngx_module_libs="$NGX_PHP_LIBS"
. auto/module
else
HTTP_AUX_FILTER_MODULES="$HTTP_AUX_FILTER_MODULES ngx_http_php_module"
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $NGX_PHP_SRCS"
NGX_ADDON_DEPS="$NGX_ADDON_DEPS $NGX_PHP_DEPS"
CORE_INCS="$CORE_INCS $NGX_PHP_INCS "
CORE_LIBS="$CORE_LIBS $NGX_PHP_LIBS "
fi
have=NDK_SET_VAR . auto/have
C
1
https://gitee.com/mirrors/ngx_php7.git
git@gitee.com:mirrors/ngx_php7.git
mirrors
ngx_php7
ngx_php7
master

搜索帮助