On 11/19/2026 4:25 PM, Arne Vajhøj wrote:
> They released a bunch of fixes today.
>
> One of them is easy to demo on VMS:
>
> $ type another.php
> <?php
>
> $sslctxopts= [
> 'ssl' => [
> 'verify_peer'=> false,
> 'verify_peer_name'=> false,
> ],
> ];
> echo file_get_contents("http://arnepc5.vajhoej.dk/reveal.aspx") . "\n";
> //echo file_get_contents("https://arnepc5.vajhoej.dk/reveal.aspx") . "\n";
> echo file_get_contents("https://arnepc5.vajhoej.dk/reveal.aspx", false, stream_context_create($sslctxopts)) . "\n";
> echo file_get_contents("HTTPS://arnepc5.vajhoej.dk/reveal.aspx") . "\n";
> echo file_get_contents("httpS://arnepc5.vajhoej.dk/reveal.aspx") . "\n";
>
> ?>
> $ php another.php
> Port = 80
> Port = 443
> Port = 80
> Port = 80
>
> WTF????
>
> reveal.aspx contains:
>
> Port = <%= Request.Url.Port %>
Two notes:
1) Despite the name then file_get_contents can also
be used for POST requests (sending data out)
2) The entire feature can be disabled in php.ini by
setting allow_url_fopen to off, but that is not
expected to be necessary
Anyway I will recommend anyone needing to do HTTP requests
in PHP to use the curl extension instead of file_get_contents.
Arne