On 2026-11-20, Arne Vajhøj <ar…@vajhoej.dk> wrote:
> On 11/19/2026 4:25 PM, Arne Vajhøj wrote:
>> 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
> And for the curious - before fix: > > use_ssl = resource->scheme && (ZSTR_LEN(resource->scheme) > 4) && > ZSTR_VAL(resource->scheme)[4] == 's'; >
I really hope that line was always compiled by a short-circuiting compiler and that line always successfully triggered short-circuiting... Don't be surprised if everyone is now looking for similar constructs that rely on short-circuiting to be safe. And yes, I know it's read-only. That's not the point. That's _seriously_ not the point. Simon.
-- Simon Clubley, club…@remove_me.eisner.decus.org-Earth.UFP Walking destinations on a map are further away than they appear.