diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 2e10b05b..50a0c2fd 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -9,14 +9,14 @@ jobs: strategy: fail-fast: false matrix: - php: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3'] + php: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5'] experimental: [false] include: - - php: '8.4' + - php: '8.6' experimental: true steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v5 with: submodules: true - name: Install PHP ${{ matrix.php }} diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index 15dba3f2..b12a3557 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -7,9 +7,10 @@ jobs: shell: cmd strategy: matrix: - version: ['8.3', '8.4'] arch: [x64, x86] + os: [windows-2022] ts: [nts, zts] + version: ['8.3', '8.4', '8.5'] exclude: - { version: '8.4', arch: x64, ts: zts } - { version: '8.4', arch: x86, ts: nts } @@ -17,10 +18,10 @@ jobs: runs-on: windows-latest steps: - name: Checkout memcached - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Setup PHP id: setup-php - uses: php/setup-php-sdk@v0.10 + uses: php/setup-php-sdk@v0.11 with: version: ${{matrix.version}} arch: ${{matrix.arch}} diff --git a/package.xml b/package.xml index 5565863e..bfcd6edd 100644 --- a/package.xml +++ b/package.xml @@ -39,13 +39,13 @@ http://pear.php.net/dtd/package-2.0.xsd"> mike@php.net yes - 2024-10-17 + 2025-10-13 - 3.3.1dev - 3.3.0 + 3.4.0 + 3.4.0 - beta + stable stable PHP @@ -221,6 +221,22 @@ http://pear.php.net/dtd/package-2.0.xsd"> + + 2025-10-12 + + 3.4.0 + 3.4.0 + + + stable + stable + + PHP + +- Use Zend/zend_smart_string.h for PHP 8.5 compatibility (#574) +- Use zen_ce_exception for PHP 8.5 compatibility (#573) + + 2024-10-17 diff --git a/php_memcached.c b/php_memcached.c index c8abb844..b78eb82a 100644 --- a/php_memcached.c +++ b/php_memcached.c @@ -3961,7 +3961,7 @@ zend_class_entry *php_memc_get_exception_base(int root) } } - return zend_exception_get_default(); + return zend_ce_exception; } diff --git a/php_memcached.h b/php_memcached.h index dfd19185..60b916e9 100644 --- a/php_memcached.h +++ b/php_memcached.h @@ -30,7 +30,7 @@ # include "config.h" #endif -#define PHP_MEMCACHED_VERSION "3.3.1dev" +#define PHP_MEMCACHED_VERSION "3.4.1dev" #if defined(PHP_WIN32) && defined(MEMCACHED_EXPORTS) #define PHP_MEMCACHED_API __declspec(dllexport) diff --git a/php_memcached_private.h b/php_memcached_private.h index 2c22ecba..b7d2a5e1 100644 --- a/php_memcached_private.h +++ b/php_memcached_private.h @@ -43,7 +43,11 @@ #include #include #include +#if PHP_VERSION_ID < 70200 #include +#else +#include +#endif #include #include