According to some internal bug comments, PHP 8.1 supports Openssl 3.0. However the prebuilt Windows version still includes Openssl 1.1.1. How do I build PHP 8.1 with Openssl 3.0?
Some of this looks helpful: PHP: Installation - Manual
Yeah I’ve seen this before too. I don’t understand how pointing at a directory would tell php to look for openssl 3. The dlls have different names entirely. Well, not entirely, but one is 1_1 and the other is 3.
Wouldn’t surprise me if there’s some file name parsing happening, so it knows what version is being built in. Have you tried it?