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 531531 },
532532 "notes" : true ,
533533 "type" : " builtin" ,
534- "arg-type" : " with-path " ,
534+ "arg-type" : " custom " ,
535535 "lib-depends" : [
536- " libargon2"
536+ " libargon2" ,
537+ " openssl"
537538 ]
538539 },
539540 "pcntl" : {
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public function getUnixConfigureArg(bool $shared = false): string
2828 {
2929 $ openssl_dir = $ this ->builder ->getPHPVersionID () >= 80400 ? '' : ' --with-openssl-dir= ' . BUILD_ROOT_PATH ;
3030 $ 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 ' ) )) {
3232 $ args .= ' --with-openssl-argon2 OPENSSL_LIBS="-lz" ' ;
3333 }
3434 return $ args ;
@@ -37,7 +37,7 @@ public function getUnixConfigureArg(bool $shared = false): string
3737 public function getWindowsConfigureArg (bool $ shared = false ): string
3838 {
3939 $ args = '--with-openssl ' ;
40- if ($ this ->builder ->getPHPVersionID () >= 80500 ) {
40+ if ($ this ->builder ->getPHPVersionID () >= 80500 || ( $ this -> builder -> getPHPVersionID () >= 80400 && ! $ this -> builder -> getOption ( ' enable-zts ' )) ) {
4141 $ args .= ' --with-openssl-argon2 ' ;
4242 }
4343 return $ args ;
Original file line number Diff line number Diff line change @@ -42,4 +42,14 @@ public function patchBeforeMake(): bool
4242 }
4343 return $ patched ;
4444 }
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+ }
4555}
You can’t perform that action at this time.
0 commit comments