Intro
While running inside a complex web application, a spawned php7 process tries to allocate illegal amount of memory (18446744069414584466 bytes) whe
An alternative to @shlm answer is to disable opcache all together.
In my project the decrease in response time was minimal, so for me it didn't make any notable difference, if I blacklisted the file or disabled opcache.
I disabled it with the following line in a .htaccess
file.
php_flag opcache.enable Off
I encountered a similar issue and tracked it down to a problem with using the oauth extension with opcache enabled. There's actually a bug open for php for the exact situation I was experiencing - https://bugs.php.net/bug.php?id=73310. We found a potential workaround for this problem until it's fully resolved, blacklisting the files leveraging the oauth extension for opcache clears up the exception.
You can blacklist files for opcache using the opcache.blacklist-filename option - http://php.net/manual/en/opcache.configuration.php#ini.opcache.blacklist-filename.
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.