Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5ceec6d

Browse files
optimize config.m4 and remove dead code (swoole#5611)
1 parent67ad28a commit5ceec6d

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

‎config.m4‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ PHP_ARG_ENABLE([cares],
5454
PHP_ARG_ENABLE([iouring],
5555
[enable io-uring support],
5656
[AS_HELP_STRING([--enable-iouring],
57-
[Enable io-uring (Experimental)])],[no],[no])
57+
[Enable io-uring])],[no],[no])
5858

5959
PHP_ARG_WITH([openssl_dir],
6060
[dir of openssl],
@@ -994,10 +994,14 @@ EOF
994994
if test "$SW_OS" = "LINUX"; then
995995
GLIBC_VERSION=$(getconf GNU_LIBC_VERSION | awk '{print $2}')
996996
AC_MSG_NOTICE([glibc version: $GLIBC_VERSION])
997-
if[[ $(echo "$GLIBC_VERSION < 2.17" | bc -l) -eq 1]]; then
997+
998+
GLIBC_MAJOR_VERSION=$(getconf GNU_LIBC_VERSION | awk '{print $2}' | cut -d '.' -f 1)
999+
GLIBC_MINOR_VERSION=$(getconf GNU_LIBC_VERSION | awk '{print $2}' | cut -d '.' -f 2)
1000+
1001+
if test $GLIBC_MAJOR_VERSION -lt 2 || (test $GLIBC_MAJOR_VERSION -eq 2 && test $GLIBC_MINOR_VERSION -lt 17); then
9981002
OS_SHOULD_HAVE_LIBRT=1
9991003
else
1000-
AC_MSG_NOTICE([link with -lrt (only for glibcversions before 2.17)])
1004+
AC_MSG_NOTICE([link with -lrt (only for glibcversion before 2.17)])
10011005
OS_SHOULD_HAVE_LIBRT=0
10021006
fi
10031007
elif test "$SW_OS" = "MAC"; then

‎ext-src/swoole_http_request.cc‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -857,10 +857,6 @@ const char *HttpContext::get_content_encoding() {
857857
}
858858
#endif
859859

860-
staticvoidswoole_request_read_fd_property(zend_object *object, HttpContext *ctx) {
861-
zend_update_property_long(swoole_http_request_ce, object,ZEND_STRL("fd"), ctx->fd);
862-
}
863-
864860
staticPHP_METHOD(swoole_http_request, getContent) {
865861
HttpContext *ctx =php_swoole_http_request_get_and_check_context(ZEND_THIS);
866862
if (UNEXPECTED(!ctx)) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp