Why am I getting ‘Unable to find the wrapper https’ error with file_get_contents on Apache, despite openssl config in php.ini?

I get an error: “Unable to find the wrapper https” when i execute file_get_contents via apache.
I have already configured extension=openssl in php.ini.
i try to dump the wrappers by using

echo var_dump(stream_get_wrappers());

and the result shows

screenshot from apache.

It seems that the https wrapper is indeed missing.

but file_get_contents works well under php interactive shell and stream_get_wrappers shows wrapper has been loaded as

screenshot from php interactive shell

what could be the reason for those different behaviours between apache and php shell?
many thanks in advance for any hints

Environment: Apache 2.4.57 Win64 + PHP 8.2 (8.2.6) VS16 x64 Thread Safe