override global file_get_contents() behavior with padraic/humbug_get_contents.
(correctly, re-register https stream wrapper)
/ ̄二ニ=‐- ..__
/ ノー--==ニ二う
. i / __ ,ヽ|
. | ! rqq |l
{ヽ| ゝ |)
. `1 フ | このアプリつらいわー。file_get_contents()で、
. ヽ ∧_ httpsアクセスしててまじつらいわー
∠二ヽ -‐' / >、
. /二ヽ}う / / ` .
| っ_}ノVY^ヽ/ `ヽ
/j __ノ l ハ
} ,′ | l i | __j
/ ′ | l ヽ| -‐==〉
. / , | | | |
/_′ | | l_____|
|! | |>―-- ―┴―- |
| | |//i i r |
. 、____,ノ |{_ヒ`ニ7ー'ー- __,ノ
| | |:::::::::| |
<?php
// on bootstrap
require_once __DIR__.'/vendor/autoload.php';
SfpIshikiTakaiHttps\StreamWrapper::register();
// ok, go.
var_dump(file_get_contents('https://github.com/',false, $context));