File tree Expand file tree Collapse file tree 3 files changed +15
-4
lines changed
src/SPC/builder/extension Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 531
531
},
532
532
"notes" : true ,
533
533
"type" : " builtin" ,
534
- "arg-type" : " with-path " ,
534
+ "arg-type" : " custom " ,
535
535
"lib-depends" : [
536
- " libargon2"
536
+ " libargon2" ,
537
+ " openssl"
537
538
]
538
539
},
539
540
"pcntl" : {
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public function getUnixConfigureArg(bool $shared = false): string
28
28
{
29
29
$ openssl_dir = $ this ->builder ->getPHPVersionID () >= 80400 ? '' : ' --with-openssl-dir= ' . BUILD_ROOT_PATH ;
30
30
$ args = '--with-openssl= ' . ($ shared ? 'shared, ' : '' ) . BUILD_ROOT_PATH . $ openssl_dir ;
31
- if ($ this ->builder ->getPHPVersionID () >= 80500 || !$ this ->builder ->getOption ('enable-zts ' )) {
31
+ if ($ this ->builder ->getPHPVersionID () >= 80500 || ( $ this -> builder -> getPHPVersionID () >= 80400 && !$ this ->builder ->getOption ('enable-zts ' ) )) {
32
32
$ args .= ' --with-openssl-argon2 OPENSSL_LIBS="-lz" ' ;
33
33
}
34
34
return $ args ;
@@ -37,7 +37,7 @@ public function getUnixConfigureArg(bool $shared = false): string
37
37
public function getWindowsConfigureArg (bool $ shared = false ): string
38
38
{
39
39
$ args = '--with-openssl ' ;
40
- if ($ this ->builder ->getPHPVersionID () >= 80500 ) {
40
+ if ($ this ->builder ->getPHPVersionID () >= 80500 || ( $ this -> builder -> getPHPVersionID () >= 80400 && ! $ this -> builder -> getOption ( ' enable-zts ' )) ) {
41
41
$ args .= ' --with-openssl-argon2 ' ;
42
42
}
43
43
return $ args ;
Original file line number Diff line number Diff line change @@ -42,4 +42,14 @@ public function patchBeforeMake(): bool
42
42
}
43
43
return $ patched ;
44
44
}
45
+
46
+ public function getConfigureArg (bool $ shared = false ): string
47
+ {
48
+ if ($ this ->builder ->getLib ('openssl ' ) !== null ) {
49
+ if ($ this ->builder ->getPHPVersionID () >= 80500 || ($ this ->builder ->getPHPVersionID () >= 80400 && !$ this ->builder ->getOption ('enable-zts ' ))) {
50
+ return '--without-password-argon2 ' ; // use --with-openssl-argon2 in openssl extension instead
51
+ }
52
+ }
53
+ return '--with-password-argon2 ' ;
54
+ }
45
55
}
You can’t perform that action at this time.
0 commit comments