@@ -1015,7 +1015,6 @@ EOF
10151015 dnl firebird stop
10161016
10171017
1018-
10191018 dnl ssh2 start
10201019
10211020 if test "$PHP_SWOOLE_SSH2" != "no"; then
@@ -1307,10 +1306,6 @@ EOF
13071306 swoole_source_file="${ext_src_files} ${lib_src_files}"
13081307
13091308 swoole_source_file="$swoole_source_file \
1310- thirdparty/php/curl/interface.cc \
1311- thirdparty/php/curl/multi.cc \
1312- thirdparty/php84/curl/interface.cc \
1313- thirdparty/php84/curl/multi.cc \
13141309 thirdparty/php/sockets/multicast.cc \
13151310 thirdparty/php/sockets/sendrecvmsg.cc \
13161311 thirdparty/php/sockets/conversions.cc \
@@ -1350,14 +1345,21 @@ EOF
13501345 fi
13511346
13521347 SW_PHP_VERSION_ID=`echo "${SW_PHP_VERSION}" | $AWK 'BEGIN { FS = "."; } { printf "%d", ([ $] 1 * 10 + [ $] 2); }'`
1353-
1354- if test "$SW_PHP_VERSION_ID" = "82"; then
1355- SW_PHP_THIRDPARTY_DIR="thirdparty/php81"
1356- else
1357- SW_PHP_THIRDPARTY_DIR="thirdparty/php${SW_PHP_VERSION_ID}"
1358- fi
1348+ SW_PHP_THIRDPARTY_DIR="thirdparty/php${SW_PHP_VERSION_ID}"
13591349
13601350 AC_MSG_NOTICE ( [ php version: $SW_PHP_VERSION, version_id: $SW_PHP_VERSION_ID, thirdparty_dir: $SW_PHP_THIRDPARTY_DIR] )
1351+
1352+ if test "$PHP_SWOOLE_CURL" != "no"; then
1353+ if test "$SW_PHP_VERSION_ID" -ge "84"; then
1354+ swoole_source_file="$swoole_source_file \
1355+ thirdparty/php84/curl/interface.cc \
1356+ thirdparty/php84/curl/multi.cc"
1357+ else
1358+ swoole_source_file="$swoole_source_file \
1359+ thirdparty/php/curl/interface.cc \
1360+ thirdparty/php/curl/multi.cc"
1361+ fi
1362+ fi
13611363
13621364 if test "$PHP_SWOOLE_PGSQL" != "no"; then
13631365 swoole_source_file="$swoole_source_file \
@@ -1371,10 +1373,10 @@ EOF
13711373
13721374 if test "$PHP_SWOOLE_ORACLE" != "no"; then
13731375 swoole_source_file="$swoole_source_file \
1374- ${SW_PHP_THIRDPARTY_DIR} /pdo_oci/oci_driver.c \
1375- ${SW_PHP_THIRDPARTY_DIR} /pdo_oci/oci_statement.c"
1376+ thirdparty /pdo_oci/oci_driver.c \
1377+ thirdparty /pdo_oci/oci_statement.c"
13761378 fi
1377-
1379+
13781380 if test "$PHP_SWOOLE_ODBC" != "no"; then
13791381 swoole_source_file="$swoole_source_file \
13801382 ${SW_PHP_THIRDPARTY_DIR}/pdo_odbc/odbc_driver.c \
@@ -1392,10 +1394,17 @@ EOF
13921394 fi
13931395
13941396 if test "$PHP_SWOOLE_FIREBIRD" != "no"; then
1395- swoole_source_file="$swoole_source_file \
1396- thirdparty/php84/pdo_firebird/firebird_driver.c \
1397- thirdparty/php84/pdo_firebird/firebird_statement.c \
1398- thirdparty/php84/pdo_firebird/pdo_firebird_utils.cpp"
1397+ if test "$SW_PHP_VERSION_ID" -ge "85"; then
1398+ swoole_source_file="$swoole_source_file \
1399+ thirdparty/php85/pdo_firebird/firebird_driver.c \
1400+ thirdparty/php85/pdo_firebird/firebird_statement.c \
1401+ thirdparty/php85/pdo_firebird/pdo_firebird_utils.cpp"
1402+ else
1403+ swoole_source_file="$swoole_source_file \
1404+ thirdparty/php84/pdo_firebird/firebird_driver.c \
1405+ thirdparty/php84/pdo_firebird/firebird_statement.c \
1406+ thirdparty/php84/pdo_firebird/pdo_firebird_utils.cpp"
1407+ fi
13991408 fi
14001409
14011410 if test "$PHP_SWOOLE_SSH2" != "no"; then
@@ -1566,32 +1575,23 @@ EOF
15661575 PHP_ADD_BUILD_DIR($ext_builddir/thirdparty/php/standard)
15671576 PHP_ADD_BUILD_DIR($ext_builddir/thirdparty/php/curl)
15681577 PHP_ADD_BUILD_DIR($ext_builddir/thirdparty/php/ssh2)
1578+ PHP_ADD_BUILD_DIR($ext_builddir/thirdparty/pdo_oci)
15691579 PHP_ADD_BUILD_DIR($ext_builddir/thirdparty/php84/curl)
15701580 PHP_ADD_BUILD_DIR($ext_builddir/thirdparty/php84/pdo_firebird)
1581+ PHP_ADD_BUILD_DIR($ext_builddir/thirdparty/php85/pdo_firebird)
15711582 PHP_ADD_BUILD_DIR($ext_builddir/thirdparty/llhttp)
15721583
15731584 if test "$PHP_NGHTTP2_DIR" = "no"; then
15741585 PHP_ADD_BUILD_DIR($ext_builddir/thirdparty/nghttp2)
15751586 fi
15761587 if test "$PHP_SWOOLE_PGSQL" != "no"; then
1577- PHP_ADD_BUILD_DIR($ext_builddir/thirdparty/php81/pdo_pgsql)
1578- PHP_ADD_BUILD_DIR($ext_builddir/thirdparty/php83/pdo_pgsql)
1579- PHP_ADD_BUILD_DIR($ext_builddir/thirdparty/php84/pdo_pgsql)
1588+ PHP_ADD_BUILD_DIR($ext_builddir/${SW_PHP_THIRDPARTY_DIR}/pdo_pgsql)
15801589 fi
15811590 if test "$PHP_SWOOLE_ODBC" != "no"; then
1582- PHP_ADD_BUILD_DIR($ext_builddir/thirdparty/php81/pdo_odbc)
1583- PHP_ADD_BUILD_DIR($ext_builddir/thirdparty/php83/pdo_odbc)
1584- PHP_ADD_BUILD_DIR($ext_builddir/thirdparty/php84/pdo_odbc)
1585- fi
1586- if test "$PHP_SWOOLE_ORACLE" != "no"; then
1587- PHP_ADD_BUILD_DIR($ext_builddir/thirdparty/php81/pdo_oci)
1588- PHP_ADD_BUILD_DIR($ext_builddir/thirdparty/php83/pdo_oci)
1589- PHP_ADD_BUILD_DIR($ext_builddir/thirdparty/php84/pdo_oci)
1591+ PHP_ADD_BUILD_DIR($ext_builddir/${SW_PHP_THIRDPARTY_DIR}/pdo_odbc)
15901592 fi
15911593 if test "$PHP_SWOOLE_SQLITE" != "no"; then
1592- PHP_ADD_BUILD_DIR($ext_builddir/thirdparty/php81/pdo_sqlite)
1593- PHP_ADD_BUILD_DIR($ext_builddir/thirdparty/php83/pdo_sqlite)
1594- PHP_ADD_BUILD_DIR($ext_builddir/thirdparty/php84/pdo_sqlite)
1594+ PHP_ADD_BUILD_DIR($ext_builddir/${SW_PHP_THIRDPARTY_DIR}/pdo_sqlite)
15951595 fi
15961596 if test "$PHP_SWOOLE_FTP" != "no"; then
15971597 PHP_ADD_BUILD_DIR($ext_builddir/thirdparty/php84/ftp)
0 commit comments