php7 oauth illegal memory allocation

后端 未结 3 1354
粉色の甜心
粉色の甜心 2021-02-20 15:16

Intro

While running inside a complex web application, a spawned php7 process tries to allocate illegal amount of memory (18446744069414584466 bytes) whe

3条回答
  •  再見小時候
    2021-02-20 15:34

    Out of nowhere, this worked for me like charm

    $this->oauth->fetch($endpoint, [], 'GET', ['Accept' => 'application/json']);
    

    Becomes

    $this->oauth->fetch($endpoint, ['fix'], 'GET', ['Accept' => 'application/json']);
    

    Yes, just fill the second parameter and don't leave it empty.

提交回复
热议问题