Use PHP's new class constant mechanism.

Let gen_stub.php define the constants for us, including deriving their
actual values from C defines.

As a side-effect we have to drop support for PHP < 7.2 as it does not
have interned strings.
This commit is contained in:
michael-grunder
2022-11-22 15:03:51 -08:00
committed by Michael Grunder
parent b580505b40
commit 2a6dee5d4d
8 changed files with 1176 additions and 108 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1']
php: ['7.2', '7.3', '7.4', '8.0', '8.1']
experimental: [false]
include:
- php: '8.2'
@@ -85,7 +85,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1']
php: ['7.2', '7.3', '7.4', '8.0', '8.1']
experimental: [false]
include:
- php: '8.2'