We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 15a7c13 + 5e16459 commit 31360d7Copy full SHA for 31360d7
config.w32
@@ -17,7 +17,7 @@ function ds_src(dir, files) {
17
ARG_ENABLE("ds", "for extended data structure support", "no");
18
19
if (PHP_DS != "no") {
20
- EXTENSION(DS_EXT_NAME, DS_EXT_API, PHP_DS_SHARED, DS_EXT_FLAGS);
+ EXTENSION(DS_EXT_NAME, DS_EXT_API, PHP_DS_SHARED, DS_EXT_FLAGS);
21
22
ds_src("/",
23
[
@@ -89,5 +89,11 @@ if (PHP_DS != "no") {
89
]);
90
91
ADD_EXTENSION_DEP('ds', 'spl');
92
- ADD_EXTENSION_DEP('ds', 'json');
+ var dll = get_define('PHPDLL');
93
+ if (null != dll.match(/^php7/)) {
94
+ // only require dynamic json extension for PHP 7
95
+ // json is built statically in PHP 8
96
+ // https://github.com/php/php-src/pull/5495
97
+ ADD_EXTENSION_DEP('ds', 'json');
98
+ }
99
}
0 commit comments