@@ -493,7 +493,9 @@ let
493493 };
494494 };
495495
496− pthreads = assert (pkgs.config.php.zts or false); assert !isPhp73; buildPecl rec {
496+ pthreads = if isPhp73 then pthreads32-dev else pthreads32;
497+
498+ pthreads32 = assert (pkgs.config.php.zts or false); assert !isPhp73; buildPecl rec {
497499 version = "3.2.0";
498500 pname = "pthreads";
499501
@@ -507,6 +509,20 @@ let
507509 buildInputs = with pkgs; [ pcre.dev ];
508510 };
509511
512+ pthreads32-dev = assert (pkgs.config.php.zts or false); assert isPhp73; buildPecl rec {
513+ version = "3.2.0-dev";
514+ pname = "pthreads";
515+
516+ src = pkgs.fetchFromGitHub {
517+ owner = "krakjoe";
518+ repo = "pthreads";
519+ rev = "4d1c2483ceb459ea4284db4eb06646d5715e7154";
520+ sha256 = "07kdxypy0bgggrfav2h1ccbv67lllbvpa3s3zsaqci0gq4fyi830";
521+ };
522+
523+ buildInputs = with pkgs; [ pcre2.dev ];
524+ };
525+
510526 redis = buildPecl rec {
511527 version = "4.3.0";
512528 pname = "redis";