Skip to content

Commit 55fecc4

Browse files
Merge pull request #270 from NoiseByNorthwest/php8.4-support
Add PHP8.4 support
2 parents 73c16fc + fab08fe commit 55fecc4

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

.github/workflows/main.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
strategy:
2222
fail-fast: false
2323
matrix:
24-
php: [ '5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3' ]
24+
php: [ '5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
2525

2626
name:
2727
- linux
@@ -34,7 +34,7 @@ jobs:
3434
# Debian (docker)
3535
- { name: debian, ts: 'nts', compiler: 'gcc', os: ubuntu-20.04 }
3636
# macOS
37-
- { name: mac, ts: 'nts', compiler: 'clang', os: macos-12 }
37+
- { name: mac, ts: 'nts', compiler: 'clang', os: macos-13 }
3838

3939
steps:
4040
- uses: actions/checkout@v3

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Current requirements are:
4040
* x86-64 or ARM64
4141
* **GNU/Linux**, **macOS** or **FreeBSD**
4242
* zlib dev package (e.g. zlib1g-dev on Debian based distros)
43-
* PHP 5.4 to 8.3
43+
* PHP 5.4 to 8.4
4444

4545
## Installation
4646

@@ -503,7 +503,7 @@ See the [LICENSE][:link-license:] file for more information.
503503
[:badge-ci:]: https://github.com/NoiseByNorthwest/php-spx/actions/workflows/main.yml/badge.svg
504504
[:link-ci:]: https://github.com/NoiseByNorthwest/php-spx/actions/workflows/main.yml
505505

506-
[:badge-php-versions:]: https://img.shields.io/badge/php-5.4--8.3-blue.svg
506+
[:badge-php-versions:]: https://img.shields.io/badge/php-5.4--8.4-blue.svg
507507
[:badge-supported-platforms:]: https://img.shields.io/badge/platform-GNU/Linux%20|%20macOS%20|%20FreeBSD%20-yellow
508508
[:badge-supported-arch:]: https://img.shields.io/badge/architecture-x86--64%20|%20ARM64%20-silver
509509

config.m4

+6
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ if test "$PHP_SPX" = "yes"; then
1414

1515
CFLAGS="-Werror -Wall -O3 -pthread -std=gnu90"
1616

17+
if test "$(uname -s 2>/dev/null)" = "Darwin"
18+
then
19+
# see discussion here https://github.com/NoiseByNorthwest/php-spx/pull/270
20+
CFLAGS="$CFLAGS -Wno-typedef-redefinition"
21+
fi
22+
1723
if test "$PHP_SPX_DEV" = "yes"
1824
then
1925
CFLAGS="$CFLAGS -g"

src/php_spx.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
# error "Only x86-64 and ARM64 architectures are supported"
3232
#endif
3333

34-
#if ZEND_MODULE_API_NO < 20100525 || ZEND_MODULE_API_NO > 20230831 // 8.3-RC5
35-
# error "Only the following PHP versions are supported: 5.4 to 8.3"
34+
#if ZEND_MODULE_API_NO < 20100525 || ZEND_MODULE_API_NO > 20240924
35+
# error "Only the following PHP versions are supported: 5.4 to 8.4"
3636
#endif
3737

3838
#define PHP_SPX_EXTNAME "SPX"

0 commit comments

Comments
 (0)