Building an extension php .dll (ext_http)

I had already asked a question about this (Question extension relative) so the only solution was to compile the .dll myself on Windows.
I want to compile the .dll for the PECL http extension on Windows.

However, I clearly can’t build it with all the tutorials I see, I always have problems with version conflicts between all the software I need to download.

From all the tutorials I’ve been watching I’ve followed this method but I must be doing something wrong:

– Download Visual Studio Build Tools 2019 (https://my.visualstudio.com/Downloads?q=Visual%20Studio%202019) which would allow you to compile
– First take the php version you want and download “Development package” (or the debug pack). I took the php version 8.1.26
– Declare the root folder path in (e.g. “C://php-8-1”) the PATH in the user’s environment variables
– Download the PECL extension source folder (i.e. ext_http) and extract it

After all these downloads I start the procedure:

– Open the extracted PECL extension folder with visual studio’s native terminal (“x86_x64 Cross Tools Command Prompt for VS 2019”) as administrator.
– Launch : phpize then configure
After launch configure an error : “bison.exe is required” The only viable version I found was GnuWin32 (Bison: https://sourceforge.net/projects/gnuwin32).

After relaunch configure, another error appeared saying that bison.exe had to be of a more recent version, or at least 3.0.0, and the only existing Windows setup for Bison was max 2.4.1.

From then on, it was never-ending: we had to compile the bison.exe for Windows ourselves, and that’s when I started to give up …

If anyone has a viable tutorial or say me if I misunderstood something, I’d love it.

Thanks in advance!