Re: [INTERNALS-WIN] php rdkafka
[email protected] (Shivam Mathur) Thu, 20 Nov 2025 11:20:49 +0530
| Newsgroups | php.internals.win |
|---|---|
| Message-ID | <[email protected]> |
--Apple-Mail=_9895A80E-A3F7-432B-A46D-4B315E916736 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi Jan, I have updated the librdkafka library and rebuilt DLLs for 6.0.5. Please try downloading the extension build again and replace the files = and test. It should now depend on the correct libssl and libcrypto that ship with = the PHP builds. Thanks Shivam > On 18 Nov 2025, at 2:11=E2=80=AFPM, Jan V=C3=A1vra <[email protected]> = wrote: >=20 > Hello, > I tried to load the module and failed with >=20 > C:\src\php>php -m > c:\src\php\ext\php_rdkafka.dll doesn't appear to be a valid Zend = extension >=20 > In the C:\src\php=20 >=20 > I have=20 >=20 > libcrypto-1_1-x64.dll > libssl-1_1-x64.dll >=20 > and extracted dlls from the kafka.zip=20 >=20 > librdkafka.dll > librdkafka++.dll >=20 > My php ABI version is: 20240924 >=20 > php -info: >=20 > PHP Version =3D> 8.4.14 >=20 > System =3D> Windows NT VAVRA-PC 10.0 build 26100 (Windows 11) AMD64 > Build Date =3D> Oct 22 2025 08:48:27 > Build System =3D> Microsoft Windows Server 2022 Datacenter = [10.0.20348] > Compiler =3D> Visual C++ 2022 > Architecture =3D> x64 > Configure Command =3D> cscript /nologo /e:jscript configure.js = "--enable-snapshot-build" "--enable-debug-pack" "--disable-zts" = "--enable-object-out-dir=3D../obj/" "--enable-com-dotnet=3Dshared" = "--without-analyzer" "--with-pgo" > Server API =3D> Command Line Interface > Virtual Directory Support =3D> disabled > Configuration File (php.ini) Path =3D> > Loaded Configuration File =3D> C:\src\php\php.ini > Scan this dir for additional .ini files =3D> (none) > Additional .ini files parsed =3D> (none) > PHP API =3D> 20240924 > PHP Extension =3D> 20240924 > Zend Extension =3D> 420240924 > Zend Extension Build =3D> API420240924,NTS,VS17 > PHP Extension Build =3D> API20240924,NTS,VS17 > PHP Integer Size =3D> 64 bits > Debug Build =3D> no > Thread Safety =3D> disabled > Zend Signal Handling =3D> disabled > Zend Memory Manager =3D> enabled > Zend Multibyte Support =3D> provided by mbstring > Zend Max Execution Timers =3D> disabled > IPv6 Support =3D> enabled > DTrace Support =3D> disabled >=20 > Registered PHP Streams =3D> 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 =3D> tcp, udp, ssl, tls, tlsv1.0, = tlsv1.1, tlsv1.2, tlsv1.3 > Registered Stream Filters =3D> convert.iconv.*, zlib.*, string.rot13, = string.toupper, string.tolower, convert.*, consumed, dechunk >=20 > 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 >=20 >=20 > Isn't the php_rdkafka.dll compiled with an older PHP API version ? >=20 > Jan >=20 >=20 >=20 >=20 > Dne 18.11.2025 v 8:11 Jan V=C3=A1vra napsal(a): >> Many thanks. >> Jan. >>=20 >> Dne 17.11.2025 v 8:05 Shivam Mathur napsal(a): >>>=20 >>>=20 >>> E-maily z adresy [email protected] = <mailto:[email protected]> nedost=C3=A1v=C3=A1te =C4=8Dasto. = P=C5=99e=C4=8Dt=C4=9Bte si, pro=C4=8D je to d=C5=AFle=C5=BEit=C3=A9 = <https://aka.ms/LearnAboutSenderIdentification>=09 >>> Hi, >>>=20 >>> The latest release 6.0.5 has builds for PHP 8.4 >>> https://pecl.php.net/package/rdkafka/6.0.5/windows >>>=20 >>> PHP 8.5 builds will be added once 8.5.0 is released. >>>=20 >>> Thanks >>> Shivam >>>=20 >>>> On 14 Nov 2025, at 6:36=E2=80=AFPM, Jan V=C3=A1vra <[email protected]> = <mailto:[email protected]> wrote: >>>>=20 >>>> 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 >>>>=20 >>>> Thanks. >>>> Jan. >>>=20 >>=20 >=20 --Apple-Mail=_9895A80E-A3F7-432B-A46D-4B315E916736 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 <html aria-label=3D"message body"><head><meta http-equiv=3D"content-type" = content=3D"text/html; charset=3Dutf-8"></head><body = style=3D"overflow-wrap: break-word; -webkit-nbsp-mode: space; = line-break: after-white-space;">Hi Jan,<div><br></div><div>I have = updated the librdkafka library and rebuilt DLLs for = 6.0.5.</div><div>Please try downloading the extension build again and = replace the files and test.</div><div>It should now depend on the = correct libssl and libcrypto that ship with the PHP = builds.</div><div><br></div><div>Thanks</div><div>Shivam<br = id=3D"lineBreakAtBeginningOfMessage"><div><br><blockquote = type=3D"cite"><div>On 18 Nov 2025, at 2:11=E2=80=AFPM, Jan V=C3=A1vra = <[email protected]> wrote:</div><br = class=3D"Apple-interchange-newline"><div> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf-8"> =20 <div> <div class=3D"moz-cite-prefix">Hello,<br> I tried to load the module and failed with<br> <br> C:\src\php>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 <br> <br> I have <br> <br> libcrypto-1_1-x64.dll<br> libssl-1_1-x64.dll<br> <br> and extracted dlls from the kafka.zip <br> <br> librdkafka.dll<br> librdkafka++.dll<br> <br> My php ABI version is: 20240924<br> <br> php -info:<br> <br> PHP Version =3D> 8.4.14<br> <br> System =3D> Windows NT VAVRA-PC 10.0 build 26100 (Windows 11) AMD64<br> Build Date =3D> Oct 22 2025 08:48:27<br> Build System =3D> Microsoft Windows Server 2022 Datacenter [10.0.20348]<br> Compiler =3D> Visual C++ 2022<br> Architecture =3D> x64<br> Configure Command =3D> cscript /nologo /e:jscript = configure.js "--enable-snapshot-build" "--enable-debug-pack" "--disable-zts" "--enable-object-out-dir=3D../obj/" "--enable-com-dotnet=3Dshared" "--without-analyzer" "--with-pgo"<br> Server API =3D> Command Line Interface<br> Virtual Directory Support =3D> disabled<br> Configuration File (php.ini) Path =3D><br> Loaded Configuration File =3D> C:\src\php\php.ini<br> Scan this dir for additional .ini files =3D> (none)<br> Additional .ini files parsed =3D> (none)<br> PHP API =3D> 20240924<br> PHP Extension =3D> 20240924<br> Zend Extension =3D> 420240924<br> Zend Extension Build =3D> API420240924,NTS,VS17<br> PHP Extension Build =3D> API20240924,NTS,VS17<br> PHP Integer Size =3D> 64 bits<br> Debug Build =3D> no<br> Thread Safety =3D> disabled<br> Zend Signal Handling =3D> disabled<br> Zend Memory Manager =3D> enabled<br> Zend Multibyte Support =3D> provided by mbstring<br> Zend Max Execution Timers =3D> disabled<br> IPv6 Support =3D> enabled<br> DTrace Support =3D> disabled<br> <br> Registered PHP Streams =3D> 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> tcp, udp, ssl, tls, tlsv1.0, tlsv1.1, tlsv1.2, tlsv1.3<br> Registered Stream Filters =3D> 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> with Zend OPcache v8.4.14, Copyright (c), by Zend = Technologies<br> 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:[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:[email protected]"> <table border=3D"0" cellspacing=3D"0" cellpadding=3D"0" = width=3D"100%" style=3D" aspect-ratio: revert !important; background: = revert !important; block-size: revert !important; border: revert = !important; bottom: revert !important; color: 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 !important; tab-size: revert !important; table-layout: = revert !important; text-align: revert !important; text-indent: revert = !important; text-orientation: revert !important; text-overflow: revert = !important; text-shadow: revert !important; text-transform: revert = !important; 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; width: revert !important; word-break: = revert !important; word-spacing: revert !important; writing-mode: 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 = !important; " align=3D"left"> <tbody style=3D" aspect-ratio: revert !important; background: = revert !important; block-size: revert !important; border: revert = !important; bottom: revert !important; color: 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 !important; tab-size: revert !important; table-layout: = revert !important; text-align: revert !important; text-indent: revert = !important; text-orientation: revert !important; text-overflow: revert = !important; text-shadow: revert !important; text-transform: revert = !important; 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; width: revert !important; word-break: = revert !important; word-spacing: revert !important; writing-mode: revert = !important; zoom: revert !important; display: block !important; "> <tr style=3D" aspect-ratio: revert !important; background: = revert !important; block-size: revert !important; border: revert = !important; bottom: revert !important; color: 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 !important; tab-size: revert !important; table-layout: = revert !important; text-align: revert !important; text-indent: revert = !important; text-orientation: revert !important; text-overflow: revert = !important; text-shadow: revert !important; text-transform: revert = !important; 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; width: revert !important; word-break: = revert !important; word-spacing: revert !important; writing-mode: revert = !important; zoom: revert !important; "> <td valign=3D"middle" width=3D"1px" bgcolor=3D"#A6A6A6" = cellpadding=3D"7px 2px 7px 2px" style=3D" aspect-ratio: revert = !important; background: revert !important; block-size: revert = !important; border: revert !important; bottom: revert !important; color: = 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 !important; tab-size: revert = !important; table-layout: revert !important; text-align: revert = !important; text-indent: revert !important; text-orientation: revert = !important; text-overflow: revert !important; text-shadow: revert = !important; text-transform: revert !important; 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; width: = revert !important; word-break: revert !important; word-spacing: revert = !important; writing-mode: revert !important; zoom: revert !important; = padding: 7px 2px 7px 2px !important; background-color: #A6A6A6 = !important; valign: middle !important; width: 0px !important; "><br> </td> <td valign=3D"middle" width=3D"100%" bgcolor=3D"#EAEAEA" = cellpadding=3D"7px 5px 7px 15px" style=3D" aspect-ratio: revert = !important; background: revert !important; block-size: revert = !important; border: revert !important; bottom: revert !important; color: = 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 !important; tab-size: revert = !important; table-layout: revert !important; text-align: revert = !important; text-indent: revert !important; text-orientation: revert = !important; text-overflow: revert !important; text-shadow: revert = !important; text-transform: revert !important; 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; width: = revert !important; word-break: revert !important; word-spacing: revert = !important; writing-mode: revert !important; zoom: revert !important; = width: 100% !important; background-color: #EAEAEA !important; 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 !important; bottom: revert !important; color: 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 !important; tab-size: revert !important; table-layout: = revert !important; text-align: revert !important; text-indent: revert = !important; text-orientation: revert !important; text-overflow: revert = !important; text-shadow: revert !important; text-transform: revert = !important; 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; width: revert !important; word-break: = revert !important; word-spacing: revert !important; 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-send=3D"true">[email protected]</a> nedost=C3=A1v=C3=A1te =C4=8Dasto. <a = href=3D"https://aka.ms/LearnAboutSenderIdentification" = style=3D"background: revert !important;color: revert = !important;content-visibility: revert !important;direction: revert = !important;display: revert !important;font-size: revert = !important;opacity: 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" style=3D" = aspect-ratio: revert !important; background: revert !important; = block-size: revert !important; border: revert !important; bottom: revert = !important; color: 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 = !important; tab-size: revert !important; table-layout: revert = !important; text-align: revert !important; text-indent: revert = !important; text-orientation: revert !important; text-overflow: revert = !important; text-shadow: revert !important; text-transform: revert = !important; 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; width: revert !important; word-break: = revert !important; word-spacing: revert !important; writing-mode: revert = !important; zoom: revert !important; width: 75px !important; = background-color: #EAEAEA !important; padding: 7px 5px 7px 5px = !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; align: 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/windows" = originalsrc=3D"https://pecl.php.net/package/rdkafka/6.0.5/windows" = moz-do-not-send=3D"true">https://pecl.php.net/package/rdkafka/6.0.5/window= s</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-send=3D"true"><[email protected]></a> wrote:</div> <br class=3D"Apple-interchange-newline"> <div> <div>Hello,<br> 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 = data-start=3D"143" data-end=3D"154">PHP 8.4</strong> as well as the upcoming <strong data-start=3D"179" = data-end=3D"190">PHP 8.5</strong>.<br> <a class=3D"moz-txt-link-freetext" = href=3D"https://pecl.php.net/package/rdkafka/6.0.3/windows" = originalsrc=3D"https://pecl.php.net/package/rdkafka/6.0.3/windows" = moz-do-not-send=3D"true">https://pecl.php.net/package/rdkafka/6.0.3/window= s</a><br> <br> Thanks.<br> Jan. </div> </div> </blockquote> </div> <br> </div> </div> </div> </blockquote> <br> </blockquote> <br> </div> </div></blockquote></div><br></div></body></html>= --Apple-Mail=_9895A80E-A3F7-432B-A46D-4B315E916736--