Skip to content

Commit 4ce0374

Browse files
committed
Windows xlswriter扩展版本号修正
1 parent 26eae85 commit 4ce0374

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

src/main/core/php/extension/Extension.js

+11-9
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ export default class Extension {
8383
}
8484

8585
static getVersion(extName, phpVersion) {
86+
//目前EServer,扩展最低匹配php5.6
8687
if (isWindows) {
8788
return this.getVersionForWindows(extName, phpVersion)
8889
}
@@ -148,6 +149,7 @@ export default class Extension {
148149
}
149150

150151
static getVersionForWindows(extName, phpVersion) {
152+
//目前EServer,扩展最低匹配php5.6,Windows扩展版本按 https://downloads.php.net/~windows/pecl/releases/
151153
phpVersion = Number(phpVersion)
152154
switch (extName) {
153155
case 'memcache':
@@ -189,17 +191,17 @@ export default class Extension {
189191
return '3.3.2'
190192
}
191193
case 'xlswriter':
192-
193-
if (phpVersion == 7.0){
194+
if (phpVersion == 5.6) {
195+
return null
196+
}
197+
if (phpVersion == 7.0) {
194198
return '1.2.3'
195-
}else if (phpVersion == 7.1){
199+
} else if (phpVersion == 7.1) {
196200
return '1.3.2'
197-
}else if (phpVersion == 7.2){
198-
return '1.3.7'
199-
}else if (phpVersion >= 7.3 && phpVersion < 8.0){
200-
return '1.5.1'
201-
}else{
202-
return '1.5.7'
201+
} else if (phpVersion <= 8.3) {
202+
return '1.5.8'
203+
} else {
204+
return null
203205
}
204206
}
205207
return null

0 commit comments

Comments
 (0)