Re: [INTERNALS-WIN] php rdkafka

[email protected] (Jan Vávra) Tue, 18 Nov 2025 09:41:35 +0100
Newsgroups php.internals.win
Message-ID <[email protected]>
--------------q0B65icL0SRC7JMOovPOZdkG
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

Hello,
  I tried to load the module and failed with

C:\src\php>php -m
c:\src\php\ext\php_rdkafka.dll doesn't appear to be a valid Zend extension

In the C:\src\php

I have

libcrypto-1_1-x64.dll
libssl-1_1-x64.dll

and extracted dlls from the kafka.zip

librdkafka.dll
librdkafka++.dll

My php ABI version is: 20240924

php -info:

PHP Version => 8.4.14

System => Windows NT VAVRA-PC 10.0 build 26100 (Windows 11) AMD64
Build Date => Oct 22 2025 08:48:27
Build System => Microsoft Windows Server 2022 Datacenter [10.0.20348]
Compiler => Visual C++ 2022
Architecture => x64
Configure Command => cscript /nologo /e:jscript configure.js 
"--enable-snapshot-build" "--enable-debug-pack" "--disable-zts" 
"--enable-object-out-dir=../obj/" "--enable-com-dotnet=shared" 
"--without-analyzer" "--with-pgo"
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path =>
Loaded Configuration File => C:\src\php\php.ini
Scan this dir for additional .ini files => (none)
Additional .ini files parsed => (none)
PHP API => 20240924
PHP Extension => 20240924
Zend Extension => 420240924
Zend Extension Build => API420240924,NTS,VS17
PHP Extension Build => API20240924,NTS,VS17
PHP Integer Size => 64 bits
Debug Build => no
Thread Safety => disabled
Zend Signal Handling => disabled
Zend Memory Manager => enabled
Zend Multibyte Support => provided by mbstring
Zend Max Execution Timers => disabled
IPv6 Support => enabled
DTrace Support => disabled

Registered PHP Streams => compress.zlib, php, file, glob, data, http, 
ftp, https, ftps, phar, zip, sqlsrv, ssh2.shell, ssh2.exec, ssh2.tunnel, 
ssh2.scp, ssh2.sftp
Registered Stream Socket Transports => tcp, udp, ssl, tls, tlsv1.0, 
tlsv1.1, tlsv1.2, tlsv1.3
Registered Stream Filters => convert.iconv.*, zlib.*, string.rot13, 
string.toupper, string.tolower, convert.*, consumed, dechunk

This program makes use of the Zend Scripting Language Engine:
Zend Engine v4.4.14, Copyright (c) Zend Technologies
     with Zend OPcache v8.4.14, Copyright (c), by Zend Technologies
     with Xdebug v3.4.5, Copyright (c) 2002-2025, by Derick Rethans


Isn't the php_rdkafka.dll compiled with an older PHP API version ?

Jan




Dne 18.11.2025 v 8:11 Jan Vávra napsal(a):
> Many thanks.
> Jan.
>
> Dne 17.11.2025 v 8:05 Shivam Mathur napsal(a):
>>
>> 	
>> E-maily z adresy [email protected] nedostáváte často. Přečtěte 
>> si, proč je to důležité <https://aka.ms/LearnAboutSenderIdentification>
>> 	
>>
>> Hi,
>>
>> The latest release 6.0.5 has builds for PHP 8.4
>> https://pecl.php.net/package/rdkafka/6.0.5/windows 
>> <https://pecl.php.net/package/rdkafka/6.0.5/windows>
>>
>> PHP 8.5 builds will be added once 8.5.0 is released.
>>
>> Thanks
>> Shivam
>>
>>> On 14 Nov 2025, at 6:36 PM, Jan Vávra <[email protected]> wrote:
>>>
>>> Hello,
>>>  I would like to request a Windows build of the PHP *rdkafka* 
>>> extension compiled for *PHP 8.4* as well as the upcoming *PHP 8.5*.
>>> https://pecl.php.net/package/rdkafka/6.0.3/windows
>>>
>>> Thanks.
>>> Jan.
>>
>

--------------q0B65icL0SRC7JMOovPOZdkG
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html><html><head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf-8">
  </head>
  <body>
    <div class=3D"moz-cite-prefix">Hello,<br>
      &nbsp;I tried to load the module and failed with<br>
      <br>
      C:\src\php&gt;php -m<br>
      c:\src\php\ext\php_rdkafka.dll doesn't appear to be a valid Zend
      extension<br>
      <br>
      In the C:\src\php&nbsp;<br>
      <br>
      I have&nbsp;<br>
      <br>
      libcrypto-1_1-x64.dll<br>
      libssl-1_1-x64.dll<br>
      <br>
      and extracted dlls from the kafka.zip&nbsp;<br>
      <br>
      librdkafka.dll<br>
      librdkafka++.dll<br>
      <br>
      My php ABI version is: 20240924<br>
      <br>
      php -info:<br>
      <br>
      PHP Version =3D&gt; 8.4.14<br>
      <br>
      System =3D&gt; Windows NT VAVRA-PC 10.0 build 26100 (Windows 11)
      AMD64<br>
      Build Date =3D&gt; Oct 22 2025 08:48:27<br>
      Build System =3D&gt; Microsoft Windows Server 2022 Datacenter
      [10.0.20348]<br>
      Compiler =3D&gt; Visual C++ 2022<br>
      Architecture =3D&gt; x64<br>
      Configure Command =3D&gt; cscript /nologo /e:jscript configure.js&nbs=
p;
      &quot;--enable-snapshot-build&quot; &quot;--enable-debug-pack&quot; &=
quot;--disable-zts&quot;
      &quot;--enable-object-out-dir=3D../obj/&quot; &quot;--enable-com-dotn=
et=3Dshared&quot;
      &quot;--without-analyzer&quot; &quot;--with-pgo&quot;<br>
      Server API =3D&gt; Command Line Interface<br>
      Virtual Directory Support =3D&gt; disabled<br>
      Configuration File (php.ini) Path =3D&gt;<br>
      Loaded Configuration File =3D&gt; C:\src\php\php.ini<br>
      Scan this dir for additional .ini files =3D&gt; (none)<br>
      Additional .ini files parsed =3D&gt; (none)<br>
      PHP API =3D&gt; 20240924<br>
      PHP Extension =3D&gt; 20240924<br>
      Zend Extension =3D&gt; 420240924<br>
      Zend Extension Build =3D&gt; API420240924,NTS,VS17<br>
      PHP Extension Build =3D&gt; API20240924,NTS,VS17<br>
      PHP Integer Size =3D&gt; 64 bits<br>
      Debug Build =3D&gt; no<br>
      Thread Safety =3D&gt; disabled<br>
      Zend Signal Handling =3D&gt; disabled<br>
      Zend Memory Manager =3D&gt; enabled<br>
      Zend Multibyte Support =3D&gt; provided by mbstring<br>
      Zend Max Execution Timers =3D&gt; disabled<br>
      IPv6 Support =3D&gt; enabled<br>
      DTrace Support =3D&gt; disabled<br>
      <br>
      Registered PHP Streams =3D&gt; compress.zlib, php, file, glob, data,
      http, ftp, https, ftps, phar, zip, sqlsrv, ssh2.shell, ssh2.exec,
      ssh2.tunnel, ssh2.scp, ssh2.sftp<br>
      Registered Stream Socket Transports =3D&gt; tcp, udp, ssl, tls,
      tlsv1.0, tlsv1.1, tlsv1.2, tlsv1.3<br>
      Registered Stream Filters =3D&gt; convert.iconv.*, zlib.*,
      string.rot13, string.toupper, string.tolower, convert.*, consumed,
      dechunk<br>
      <br>
      This program makes use of the Zend Scripting Language Engine:<br>
      Zend Engine v4.4.14, Copyright (c) Zend Technologies<br>
      &nbsp; &nbsp; with Zend OPcache v8.4.14, Copyright (c), by Zend Techn=
ologies<br>
      &nbsp; &nbsp; with Xdebug v3.4.5, Copyright (c) 2002-2025, by Derick =
Rethans<br>
      <br>
      <br>
      Isn't the php_rdkafka.dll compiled with an older PHP API version ?<br=
>
      <br>
      Jan<br>
      <br>
      <br>
      <br>
      <br>
      Dne 18.11.2025 v 8:11 Jan V=C3=A1vra napsal(a):<br>
    </div>
    <blockquote type=3D"cite" cite=3D"mid:04bd4dc3-905e-4c03-9b3e-cbb96fe3e=
[email protected]">
     =20
      <div class=3D"moz-cite-prefix">Many thanks.<br>
        Jan.<br>
        <br>
        Dne 17.11.2025 v 8:05 Shivam Mathur napsal(a):<br>
      </div>
      <blockquote type=3D"cite" cite=3D"mid:6EB83C24-5F08-4B41-8F20-A1DAF53=
[email protected]">
        <table border=3D"0" cellspacing=3D"0" cellpadding=3D"0" width=3D"10=
0%" style=3D" aspect-ratio: revert !important; background: revert !importan=
t; block-size: revert !important; border: revert !important; bottom: revert=
 !important; color: revert !important; color-scheme: revert !important; con=
tent-visibility: revert !important; cursor: revert !important; direction: r=
evert !important; display: revert !important; font-size: revert !important;=
 height: revert !important; hyphens: revert !important; letter-spacing: rev=
ert !important; line-height: revert !important; margin: revert !important; =
opacity: revert !important; order: revert !important; outline: revert !impo=
rtant; overflow: revert !important; padding: revert !important; position: r=
evert !important; resize: revert !important; rotate: revert !important; sca=
le: revert !important; tab-size: revert !important; table-layout: revert !i=
mportant; text-align: revert !important; text-indent: revert !important; te=
xt-orientation: revert !important; text-overflow: revert !important; text-s=
hadow: revert !important; text-transform: revert !important; text-wrap: rev=
ert !important; top: revert !important; transition: revert !important; user=
-select: revert !important; vertical-align: revert !important; visibility: =
revert !important; white-space: revert !important; width: revert !important=
; word-break: revert !important; word-spacing: revert !important; writing-m=
ode: revert !important; zoom: revert !important; cellpadding: 0 !important;=
 border: 0 !important; cellspacing: 0 !important; display: table !important=
; width: 100% !important; table-layout: fixed !important; border-collapse: =
seperate !important; float: none !important; border-spacing: 0px 0px !impor=
tant; " align=3D"left">
          <tbody style=3D" aspect-ratio: revert !important; background: rev=
ert !important; block-size: revert !important; border: revert !important; b=
ottom: revert !important; color: revert !important; color-scheme: revert !i=
mportant; content-visibility: revert !important; cursor: revert !important;=
 direction: revert !important; display: revert !important; font-size: rever=
t !important; height: revert !important; hyphens: revert !important; letter=
-spacing: revert !important; line-height: revert !important; margin: revert=
 !important; opacity: revert !important; order: revert !important; outline:=
 revert !important; overflow: revert !important; padding: revert !important=
; position: revert !important; resize: revert !important; rotate: revert !i=
mportant; scale: revert !important; tab-size: revert !important; table-layo=
ut: revert !important; text-align: revert !important; text-indent: revert !=
important; text-orientation: revert !important; text-overflow: revert !impo=
rtant; text-shadow: revert !important; text-transform: revert !important; t=
ext-wrap: revert !important; top: revert !important; transition: revert !im=
portant; user-select: revert !important; vertical-align: revert !important;=
 visibility: revert !important; white-space: revert !important; width: reve=
rt !important; word-break: revert !important; word-spacing: revert !importa=
nt; writing-mode: revert !important; zoom: revert !important; display: bloc=
k !important; ">
            <tr style=3D" aspect-ratio: revert !important; background: reve=
rt !important; block-size: revert !important; border: revert !important; bo=
ttom: revert !important; color: revert !important; color-scheme: revert !im=
portant; content-visibility: revert !important; cursor: revert !important; =
direction: revert !important; display: revert !important; font-size: revert=
 !important; height: revert !important; hyphens: revert !important; letter-=
spacing: revert !important; line-height: revert !important; margin: revert =
!important; opacity: revert !important; order: revert !important; outline: =
revert !important; overflow: revert !important; padding: revert !important;=
 position: revert !important; resize: revert !important; rotate: revert !im=
portant; scale: revert !important; tab-size: revert !important; table-layou=
t: revert !important; text-align: revert !important; text-indent: revert !i=
mportant; text-orientation: revert !important; text-overflow: revert !impor=
tant; text-shadow: revert !important; text-transform: revert !important; te=
xt-wrap: revert !important; top: revert !important; transition: revert !imp=
ortant; user-select: revert !important; vertical-align: revert !important; =
visibility: revert !important; white-space: revert !important; width: rever=
t !important; word-break: revert !important; word-spacing: revert !importan=
t; writing-mode: revert !important; zoom: revert !important; ">
              <td valign=3D"middle" width=3D"1px" bgcolor=3D"#A6A6A6" cellp=
adding=3D"7px 2px 7px 2px" style=3D" aspect-ratio: revert !important; backg=
round: revert !important; block-size: revert !important; border: revert !im=
portant; bottom: revert !important; color: revert !important; color-scheme:=
 revert !important; content-visibility: revert !important; cursor: revert !=
important; direction: revert !important; display: revert !important; font-s=
ize: revert !important; height: revert !important; hyphens: revert !importa=
nt; letter-spacing: revert !important; line-height: revert !important; marg=
in: revert !important; opacity: revert !important; order: revert !important=
; outline: revert !important; overflow: revert !important; padding: revert =
!important; position: revert !important; resize: revert !important; rotate:=
 revert !important; scale: revert !important; tab-size: revert !important; =
table-layout: revert !important; text-align: revert !important; text-indent=
: revert !important; text-orientation: revert !important; text-overflow: re=
vert !important; text-shadow: revert !important; text-transform: revert !im=
portant; text-wrap: revert !important; top: revert !important; transition: =
revert !important; user-select: revert !important; vertical-align: revert !=
important; visibility: revert !important; white-space: revert !important; w=
idth: revert !important; word-break: revert !important; word-spacing: rever=
t !important; writing-mode: revert !important; zoom: revert !important; pad=
ding: 7px 2px 7px 2px !important; background-color: #A6A6A6 !important; val=
ign: middle !important; width: 0px !important; "><br>
              </td>
              <td valign=3D"middle" width=3D"100%" bgcolor=3D"#EAEAEA" cell=
padding=3D"7px 5px 7px 15px" color=3D"#212121" style=3D" aspect-ratio: reve=
rt !important; background: revert !important; block-size: revert !important=
; border: revert !important; bottom: revert !important; color: revert !impo=
rtant; color-scheme: revert !important; content-visibility: revert !importa=
nt; cursor: revert !important; direction: revert !important; display: rever=
t !important; font-size: revert !important; height: revert !important; hyph=
ens: revert !important; letter-spacing: revert !important; line-height: rev=
ert !important; margin: revert !important; opacity: revert !important; orde=
r: revert !important; outline: revert !important; overflow: revert !importa=
nt; padding: revert !important; position: revert !important; resize: revert=
 !important; rotate: revert !important; scale: revert !important; tab-size:=
 revert !important; table-layout: revert !important; text-align: revert !im=
portant; text-indent: revert !important; text-orientation: revert !importan=
t; text-overflow: revert !important; text-shadow: revert !important; text-t=
ransform: revert !important; text-wrap: revert !important; top: revert !imp=
ortant; transition: revert !important; user-select: revert !important; vert=
ical-align: revert !important; visibility: revert !important; white-space: =
revert !important; width: revert !important; word-break: revert !important;=
 word-spacing: revert !important; writing-mode: revert !important; zoom: re=
vert !important; width: 100% !important; background-color: #EAEAEA !importa=
nt; padding: 7px 5px 7px 15px !important; font-family: wf_segoe-ui_normal, =
Segoe UI, Segoe WP, Tahoma, Arial, sans-serif !important; font-size: 12px !=
important; font-weight: normal !important; color: #212121 !important; text-=
align: left !important; word-wrap: break-word !important; ">
                <div style=3D" aspect-ratio: revert !important; background:=
 revert !important; block-size: revert !important; border: revert !importan=
t; bottom: revert !important; color: revert !important; color-scheme: rever=
t !important; content-visibility: revert !important; cursor: revert !import=
ant; direction: revert !important; display: revert !important; font-size: r=
evert !important; height: revert !important; hyphens: revert !important; le=
tter-spacing: revert !important; line-height: revert !important; margin: re=
vert !important; opacity: revert !important; order: revert !important; outl=
ine: revert !important; overflow: revert !important; padding: revert !impor=
tant; position: revert !important; resize: revert !important; rotate: rever=
t !important; scale: revert !important; tab-size: revert !important; table-=
layout: revert !important; text-align: revert !important; text-indent: reve=
rt !important; text-orientation: revert !important; text-overflow: revert !=
important; text-shadow: revert !important; text-transform: revert !importan=
t; text-wrap: revert !important; top: revert !important; transition: revert=
 !important; user-select: revert !important; vertical-align: revert !import=
ant; visibility: revert !important; white-space: revert !important; width: =
revert !important; word-break: revert !important; word-spacing: revert !imp=
ortant; writing-mode: revert !important; zoom: revert !important; ">
                  E-maily z adresy <a class=3D"moz-txt-link-abbreviated moz=
-txt-link-freetext" href=3D"mailto:[email protected]" moz-do-not-sen=
d=3D"true">[email protected]</a>
                  nedost=C3=A1v=C3=A1te =C4=8Dasto. <a href=3D"https://aka.=
ms/LearnAboutSenderIdentification" style=3D"background: revert !important;c=
olor: revert !important;content-visibility: revert !important;direction: re=
vert !important;display: revert !important;font-size: revert !important;opa=
city: revert !important;rotate: revert !important;scale: revert !important;=
visibility: revert !important;" moz-do-not-send=3D"true"> P=C5=99e=C4=8Dt=
=C4=9Bte si, pro=C4=8D je to
                    d=C5=AFle=C5=BEit=C3=A9</a> </div>
              </td>
              <td valign=3D"middle" align=3D"left" width=3D"75px" bgcolor=
=3D"#EAEAEA" cellpadding=3D"7px 5px 7px 5px" color=3D"#212121" style=3D" as=
pect-ratio: revert !important; background: revert !important; block-size: r=
evert !important; border: revert !important; bottom: revert !important; col=
or: revert !important; color-scheme: revert !important; content-visibility:=
 revert !important; cursor: revert !important; direction: revert !important=
; display: revert !important; font-size: revert !important; height: revert =
!important; hyphens: revert !important; letter-spacing: revert !important; =
line-height: revert !important; margin: revert !important; opacity: revert =
!important; order: revert !important; outline: revert !important; overflow:=
 revert !important; padding: revert !important; position: revert !important=
; resize: revert !important; rotate: revert !important; scale: revert !impo=
rtant; tab-size: revert !important; table-layout: revert !important; text-a=
lign: revert !important; text-indent: revert !important; text-orientation: =
revert !important; text-overflow: revert !important; text-shadow: revert !i=
mportant; text-transform: revert !important; text-wrap: revert !important; =
top: revert !important; transition: revert !important; user-select: revert =
!important; vertical-align: revert !important; visibility: revert !importan=
t; white-space: revert !important; width: revert !important; word-break: re=
vert !important; word-spacing: revert !important; writing-mode: revert !imp=
ortant; zoom: revert !important; width: 75px !important; background-color: =
#EAEAEA !important; padding: 7px 5px 7px 5px !important; font-family: wf_se=
goe-ui_normal, Segoe UI, Segoe WP, Tahoma, Arial, sans-serif !important; fo=
nt-size: 12px !important; font-weight: normal !important; color: #212121 !i=
mportant; text-align: left !important; word-wrap: break-word !important; al=
ign: left !important; "><br>
              </td>
            </tr>
          </tbody>
        </table>
        <div>Hi,
          <div><br>
          </div>
          <div>The latest release 6.0.5 has builds for PHP 8.4</div>
          <div><a href=3D"https://pecl.php.net/package/rdkafka/6.0.5/window=
s" originalsrc=3D"https://pecl.php.net/package/rdkafka/6.0.5/windows" moz-d=
o-not-send=3D"true">https://pecl.php.net/package/rdkafka/6.0.5/windows</a><=
/div>
          <div><br>
          </div>
          <div>PHP 8.5 builds will be added once 8.5.0 is released.</div>
          <div><br>
          </div>
          <div>Thanks</div>
          <div>Shivam<br>
            <div>
              <div><br>
                <blockquote type=3D"cite">
                  <div>On 14 Nov 2025, at 6:36=E2=80=AFPM, Jan V=C3=A1vra <=
a class=3D"moz-txt-link-rfc2396E" href=3D"mailto:[email protected]" moz-do-not-s=
end=3D"true">&lt;[email protected]&gt;</a>
                    wrote:</div>
                  <br class=3D"Apple-interchange-newline">
                  <div>
                    <div>Hello,<br>
                      &nbsp;I would like to request a Windows build of the
                      PHP <strong data-start=3D"108" data-end=3D"119">
                        rdkafka</strong> extension compiled for <strong dat=
a-start=3D"143" data-end=3D"154">PHP 8.4</strong>
                      as well as the upcoming <strong data-start=3D"179" da=
ta-end=3D"190">PHP 8.5</strong>.<br>
                      <a class=3D"moz-txt-link-freetext" href=3D"https://pe=
cl.php.net/package/rdkafka/6.0.3/windows" originalsrc=3D"https://pecl.php.n=
et/package/rdkafka/6.0.3/windows" moz-do-not-send=3D"true">https://pecl.php=
.net/package/rdkafka/6.0.3/windows</a><br>
                      <br>
                      Thanks.<br>
                      Jan. </div>
                  </div>
                </blockquote>
              </div>
              <br>
            </div>
          </div>
        </div>
      </blockquote>
      <br>
    </blockquote>
    <br>
  </body>
</html>

--------------q0B65icL0SRC7JMOovPOZdkG--