php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #79043 Segmentation fault when using preloading
Submitted: 2019-12-29 15:23 UTC Modified: 2020-02-18 23:09 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:2 (100.0%)
From: benjamin dot morel at gmail dot com Assigned:
Status: Open Package: opcache
PHP Version: 7.4.2 OS: CentOS 7.7
Private report: No CVE-ID: None
 [2019-12-29 15:23 UTC] benjamin dot morel at gmail dot com
Description:
------------
I'm attempting to preload ~3000 PHP classes in my web app, with a simple preloading script that basically calls opcache_compile_file() on each file contained in Composer's autoload_classmap.php, minus a few namespaces that contain many files that are rarely used. I'm including the preload.php script in the "Test script" section here.

When I activate preloading in opcache.ini:

opcache.preload=/path/to/preload.php

I get 503 errors from Apache, that suddenly can't connect to php-fpm.

A quick look at /var/log/php-fpm/error.log shows the following errors:

[29-Dec-2019 16:12:56] NOTICE: [pool nicebooks] child 23191 started
[29-Dec-2019 16:12:56] WARNING: [pool www] child 23182 exited on signal 11 (SIGSEGV) after 0.002705 seconds from start
[29-Dec-2019 16:12:56] NOTICE: [pool www] child 23192 started
[29-Dec-2019 16:12:56] WARNING: [pool www] child 23183 exited on signal 11 (SIGSEGV) after 0.002702 seconds from start
[29-Dec-2019 16:12:56] NOTICE: [pool www] child 23193 started
[29-Dec-2019 16:12:56] WARNING: [pool nicebooks] child 23184 exited on signal 11 (SIGSEGV) after 0.002710 seconds from start
[29-Dec-2019 16:12:56] NOTICE: [pool nicebooks] child 23194 started
[29-Dec-2019 16:12:56] WARNING: [pool nicebooks] child 23185 exited on signal 11 (SIGSEGV) after 0.002746 seconds from start
[29-Dec-2019 16:12:56] NOTICE: [pool nicebooks] child 23196 started
[29-Dec-2019 16:12:56] WARNING: [pool www] child 23186 exited on signal 11 (SIGSEGV) after 0.002733 seconds from start

Looks like all php-fpm workers segfault right after starting with preloading enabled.

I'm not sure how I can provide a minimum reproducible example without giving out the whole project source.

Test script:
---------------
<?php

// preload.php

$blacklist = [
    'Amazon\\ProductAdvertisingAPI\\',
    'Aws\\',
    'Brick\\Schema\\',
    'DTS\\eBaySDK\\',
    'Google\\AdsApi\\',
    'phpDocumentor\\'
];

$files = require __DIR__ . '/vendor/composer/autoload_classmap.php';

$filtered = [];

foreach ($files as $class => $file) {
    foreach ($blacklist as $prefix) {
        if (strpos($class, $prefix) === 0) {
            continue 2;
        }
    }

    $filtered[$class] = $file;
}

foreach (array_unique($filtered) as $file) {
    opcache_compile_file($file);
}



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-12-29 15:29 UTC] bugreports at gmail dot com
PHP Version: 7.4.1

this is a bad idea for reporting bugs
https://git.php.net/?p=php-src.git;a=shortlog;h=refs/heads/PHP-7.4

there where ton of fixes in the meantime, many of them affecting preloading
 [2019-12-29 16:47 UTC] nikic@php.net
-Status: Open +Status: Feedback
 [2019-12-29 16:47 UTC] nikic@php.net
As bugreports@ mentioned, PHP 7.4.1 has quite a few known issues relating to preloading -- lacking any further context, it is quite likely that the bug you are hitting has already been fixed. If you can, please test current PHP 7.4 HEAD, or else wait until the 7.4.2 release in January to give this another try.

If you can send me a set of files that trigger a crash when preloading to nikic@php.net, I can also try whether I can reproduce this locally.
 [2019-12-30 15:09 UTC] benjamin dot morel at gmail dot com
It will be hard for me right now to test against 7.4 HEAD. I will wait until 7.4.2 is released and will report back here.
 [2019-12-30 15:13 UTC] bugreports at gmail dot com
bulding PHP from source is not rocket science, that below needs some adjusting for 7.4 and to build not only the cli but should be easy to adopt

[builduser@backup-hosting:~]$ rpm -qa | grep devel | sort
glibc-devel-2.17-292.el7.x86_64
keyutils-libs-devel-1.5.8-3.el7.x86_64
krb5-devel-1.15.1-37.el7_7.2.x86_64
libcom_err-devel-1.42.9-16.el7.x86_64
libcurl-devel-7.29.0-54.el7_7.1.x86_64
libicu-devel-50.2-3.el7.x86_64
libselinux-devel-2.5-14.1.el7.x86_64
libsepol-devel-2.5-10.el7.x86_64
libstdc++-devel-4.8.5-39.el7.x86_64
libtool-ltdl-devel-2.4.2-22.el7_3.x86_64
libverto-devel-0.2.5-4.el7.x86_64
libxml2-devel-2.9.1-6.el7_2.3.x86_64
openssl-devel-1.0.2k-19.el7.x86_64
pcre-devel-8.32-17.el7.x86_64
xz-devel-5.2.2-1.el7.x86_64
zlib-devel-1.2.7-18.el7.x86_64

[builduser@backup-hosting:~]$ cat build-php-cli.sh 
#!/usr/bin/bash
PHP_VERSION="7.2.15"
rm -rf /home/builduser/BUILDROOTS/php-$PHP_VERSION
tar xfJ /home/builduser/SOURCES/php-$PHP_VERSION.tar.xz -C /home/builduser/BUILDROOTS/
cd /home/builduser/BUILDROOTS/php-$PHP_VERSION
export CFLAGS="-m64 -Os -mfpmath=sse -mavx -msse2avx -march=native -mtune=native -ftree-vectorize -fomit-frame-pointer -fno-strict-aliasing -fwrapv -g0"
export CC="gcc $CFLAGS"
export CXXFLAGS="$CFLAGS"
export CPPFLAGS="$CFLAGS"
export CXX="gcc $CFLAGS"
./configure --quiet \
 --host=x86_64-redhat-linux \
 --build=x86_64-redhat-linux \
 --target=x86_64-redhat-linux \
 --prefix=/home/builduser/BUILD \
 --program-prefix= \
 --disable-all \
 --enable-calendar \
 --enable-cli \
 --enable-ctype \
 --enable-dom \
 --enable-filter \
 --enable-hash \
 --enable-intl \
 --enable-json \
 --enable-libxml \
 --enable-mbregex \
 --enable-mbstring \
 --enable-posix \
 --enable-simplexml \
 --enable-soap \
 --enable-static \
 --enable-xml \
 --with-curl \
 --with-iconv \
 --with-layout=GNU \
 --with-openssl \
 --with-pcre-regex \
 --with-system-ciphers \
 --with-zlib \
 --without-apxs2 \
 --without-config-file-path \
 --without-config-file-scan-dir \
 --without-pcre-jit \
 --disable-cgi \
 --disable-dmalloc \
 --disable-dtrace \
 --disable-gcov \
 --disable-ipv6 \
 --disable-phpdbg \
 --disable-rpath \
 --disable-shared \
 --disable-short-tags
make --quiet -j4
make install
strip -s --strip-unneeded /home/builduser/BUILD/bin/php
mv --force /home/builduser/BUILD/bin/php /home/builduser/BINARIES/
rm -rf /home/builduser/BUILD/*
rm -rf /home/builduser/BUILDROOTS/php-$PHP_VERSION
chmod 755 /home/builduser/BINARIES/php
ls /home/builduser/BINARIES/php
echo ""
/home/builduser/BINARIES/php -v
echo ""
/home/builduser/BINARIES/php -m
 [2020-01-07 16:01 UTC] benjamin dot morel at gmail dot com
Same issue with PHP 7.4.2-RC1, released a few hours ago. Still SIGSEGV.

SIGSEGV only happens when I configure preloading in /etc/php.d/opcache.ini, though:

    opcache.preload=/home/username/example.com/current/preload.php
    opcache.preload_user=username

Everything seems to work fine if I configure it in php-fpm.d instead:

    php_admin_value[opcache.preload] = /home/username/example.com/current/preload.php
    php_admin_value[opcache.preload_user] = username

But even though I can see the configuration being applied (in the Configuration tab of https://github.com/rlerdorf/opcache-status), I don't measure any performance improvement with preloading enabled.

I'm surprised as this is not in line with the benchmarks I had run a year ago:
https://github.com/composer/composer/issues/7777#issuecomment-440268416

As far as I can tell, it looks like preloading is not in effect when configured this way.
 [2020-01-07 16:09 UTC] nikic@php.net
-Status: Feedback +Status: Open
 [2020-01-07 16:09 UTC] nikic@php.net
Thanks for trying the new version! Can you please check whether you already get a crash if you do a simple "php -d opcache.enable_cli=1 -d opcache.preload=preload.php -r ''" running from CLI?

And yes, as preloading happens during early server startup, enabling it through php_admin_value does not work.
 [2020-01-07 16:19 UTC] benjamin dot morel at gmail dot com
Nikic,

# php -d opcache.enable_cli=1 -d opcache.preload=preload.php -r ''
Tue Jan  7 17:13:09 2020 (25255): Fatal Error "opcache.preload_user" has not been defined

I guess you were expecting me to replace preload.php with the actual path, so here you are:

# php -d opcache.enable_cli=1 -d opcache.preload=/home/username/example.com/current/preload.php -r ''
Tue Jan  7 17:13:40 2020 (25548): Fatal Error "opcache.preload_user" has not been defined

Now with preload_user:

# php -d opcache.enable_cli=1 -d opcache.preload=/home/username/example.com/current/preload.php -d opcache.preload_user=username -r ''
Tue Jan  7 17:14:01 2020 (25800): Fatal Error "opcache.preload_user" has not been defined

Now I'm getting a lot of warnings:

PHP Warning:  Declaration of Doctrine\Common\Reflection\StaticReflectionMethod::getClosure($object) should be compatible with ReflectionMethod::getClosure($object = NULL) in cebooks/example.com/releases/1578065246/vendor/doctrine/reflection/lib/Doctrine/Common/Reflection/StaticReflectionMethod.php on line 92
PHP Warning:  Can't preload unlinked class Symfony\Component\Serializer\Normalizer\PropertyNormalizer: Unknown parent Symfony\Component\Serializer\Normalizer\AbstractObjectNo in /home/username/example.com/releases/1578065246/vendor/symfony/serializer/Normalizer/PropertyNormalizer.php on line 31
PHP Warning:  Can't preload unlinked class Symfony\Component\Serializer\Normalizer\ObjectNormalizer: Unknown parent Symfony\Component\Serializer\Normalizer\AbstractObjectNormn /home/username/example.com/releases/1578065246/vendor/symfony/serializer/Normalizer/ObjectNormalizer.php on line 29

...

PHP Warning:  Can't preload unlinked class Brick\Math\BigRational: Unknown type dependencies in /home/username/example.com/releases/1578065246/vendor/brick/math/src/BigRatp on line 17
PHP Warning:  Can't preload unlinked class Brick\Math\BigInteger: Unknown type dependencies in /home/username/example.com/releases/1578065246/vendor/brick/math/src/BigInteon line 20
PHP Warning:  Can't preload unlinked class Brick\Math\BigDecimal: Unknown type dependencies in /home/username/example.com/releases/1578065246/vendor/brick/math/src/BigDecion line 15

But no segfault.
 [2020-01-07 16:21 UTC] benjamin dot morel at gmail dot com
Please ignore the Fatal Error for the last command, the one that issues the warnings. This was a copy/paste mistake. This command does output the warnings, but not the Fatal Error.
 [2020-01-07 16:26 UTC] benjamin dot morel at gmail dot com
OMG, sorry for being so fuzzy, I did not notice that there IS a segfault right after the warnings. So here you are, again. Full output:

# php -d opcache.enable_cli=1 -d opcache.preload=/home/username/example.com/current/preload.php -d opcache.preload_user=username -r ''
PHP Warning:  Declaration of Doctrine\Common\Reflection\StaticReflectionMethod::getClosure($object) should be compatible with ReflectionMethod::getClosure($object = NULL) in /home/username/example.com/releases/1578065246/vendor/doctrine/reflection/lib/Doctrine/Common/Reflection/StaticReflectionMethod.php on line 92
PHP Warning:  Can't preload unlinked class Symfony\Component\Serializer\Normalizer\PropertyNormalizer: Unknown parent Symfony\Component\Serializer\Normalizer\AbstractObjectNormalizer in /home/username/example.com/releases/1578065246/vendor/symfony/serializer/Normalizer/PropertyNormalizer.php on line 31
PHP Warning:  Can't preload unlinked class Symfony\Component\Serializer\Normalizer\ObjectNormalizer: Unknown parent Symfony\Component\Serializer\Normalizer\AbstractObjectNormalizer in /home/username/example.com/releases/1578065246/vendor/symfony/serializer/Normalizer/ObjectNormalizer.php on line 29
PHP Warning:  Can't preload unlinked class Symfony\Component\Serializer\Normalizer\GetSetMethodNormalizer: Unknown parent Symfony\Component\Serializer\Normalizer\AbstractObjectNormalizer in /home/username/example.com/releases/1578065246/vendor/symfony/serializer/Normalizer/GetSetMethodNormalizer.php on line 35
PHP Warning:  Can't preload unlinked class Symfony\Component\Serializer\Normalizer\AbstractObjectNormalizer: Unknown type dependencies in /home/username/example.com/releases/1578065246/vendor/symfony/serializer/Normalizer/AbstractObjectNormalizer.php on line 34
PHP Warning:  Can't preload unlinked class Symfony\Component\Serializer\DependencyInjection\SerializerPass: Unknown interface Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface in /home/username/example.com/releases/1578065246/vendor/symfony/serializer/DependencyInjection/SerializerPass.php on line 26
PHP Warning:  Can't preload unlinked class Symfony\Component\Console\Event\ConsoleTerminateEvent: Unknown parent Symfony\Component\Console\Event\ConsoleEvent in /home/username/example.com/releases/1578065246/vendor/symfony/console/Event/ConsoleTerminateEvent.php on line 23
PHP Warning:  Can't preload unlinked class Symfony\Component\Console\Event\ConsoleExceptionEvent: Unknown parent Symfony\Component\Console\Event\ConsoleEvent in /home/username/example.com/releases/1578065246/vendor/symfony/console/Event/ConsoleExceptionEvent.php on line 27
PHP Warning:  Can't preload unlinked class Symfony\Component\Console\Event\ConsoleEvent: Unknown parent Symfony\Component\EventDispatcher\Event in /home/username/example.com/releases/1578065246/vendor/symfony/console/Event/ConsoleEvent.php on line 24
PHP Warning:  Can't preload unlinked class Symfony\Component\Console\Event\ConsoleErrorEvent: Unknown parent Symfony\Component\Console\Event\ConsoleEvent in /home/username/example.com/releases/1578065246/vendor/symfony/console/Event/ConsoleErrorEvent.php on line 24
PHP Warning:  Can't preload unlinked class Symfony\Component\Console\Event\ConsoleCommandEvent: Unknown parent Symfony\Component\Console\Event\ConsoleEvent in /home/username/example.com/releases/1578065246/vendor/symfony/console/Event/ConsoleCommandEvent.php on line 19
PHP Warning:  Can't preload unlinked class Symfony\Component\Console\EventListener\ErrorListener: Unknown interface Symfony\Component\EventDispatcher\EventSubscriberInterface in /home/username/example.com/releases/1578065246/vendor/symfony/console/EventListener/ErrorListener.php on line 25
PHP Warning:  Can't preload unlinked class Symfony\Component\Console\DependencyInjection\AddConsoleCommandPass: Unknown interface Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface in /home/username/example.com/releases/1578065246/vendor/symfony/console/DependencyInjection/AddConsoleCommandPass.php on line 27
PHP Warning:  Can't preload unlinked class Psr\Log\Test\LoggerInterfaceTest: Unknown parent PHPUnit\Framework\TestCase in /home/username/example.com/releases/1578065246/vendor/psr/log/Psr/Log/Test/LoggerInterfaceTest.php on line 15
PHP Warning:  Can't preload unlinked class PackageVersions\Installer: Unknown interface Composer\Plugin\PluginInterface in /home/username/example.com/releases/1578065246/vendor/ocramius/package-versions/src/PackageVersions/Installer.php on line 32
PHP Warning:  Can't preload unlinked class username\Tests\PriceSegmenterTest: Unknown parent PHPUnit\Framework\TestCase in /home/username/example.com/releases/1578065246/tests/PriceSegmenterTest.php on line 12
PHP Warning:  Can't preload unlinked class username\Tests\PaidSearchTitleCleaner\WordMatcherTest: Unknown parent PHPUnit\Framework\TestCase in /home/username/example.com/releases/1578065246/tests/PaidSearchTitleCleaner/WordMatcherTest.php on line 13
PHP Warning:  Can't preload unlinked class username\Tests\PaidSearchTitleCleaner\TitleCleanerTest: Unknown parent PHPUnit\Framework\TestCase in /home/username/example.com/releases/1578065246/tests/PaidSearchTitleCleaner/TitleCleanerTest.php on line 12
PHP Warning:  Can't preload unlinked class username\Tests\IsbnSuggestionTest: Unknown parent PHPUnit\Framework\TestCase in /home/username/example.com/releases/1578065246/tests/IsbnSuggestionTest.php on line 12
PHP Warning:  Can't preload unlinked class username\Tests\IsbnSuggestionServiceTest: Unknown parent PHPUnit\Framework\TestCase in /home/username/example.com/releases/1578065246/tests/IsbnSuggestionServiceTest.php on line 13
PHP Warning:  Can't preload unlinked class username\Tests\IsbnRangeServiceTest: Unknown parent PHPUnit\Framework\TestCase in /home/username/example.com/releases/1578065246/tests/IsbnRangeServiceTest.php on line 10
PHP Warning:  Can't preload unlinked class username\Tests\IsbnFinderTest: Unknown parent PHPUnit\Framework\TestCase in /home/username/example.com/releases/1578065246/tests/IsbnFinderTest.php on line 12
PHP Warning:  Can't preload unlinked class username\Tests\AmazonRegionSelectorTest: Unknown parent PHPUnit\Framework\TestCase in /home/username/example.com/releases/1578065246/tests/AmazonRegionSelectorTest.php on line 13
PHP Warning:  Can't preload unlinked class username\Domain\Repository\AmazonIsbnLookupRepository: Unknown type dependencies in /home/username/example.com/releases/1578065246/src/Domain/Repository/AmazonIsbnLookupRepository.php on line 15
PHP Warning:  Can't preload unlinked class username\Domain\Repository\AmazonAsinIsbnRepository: Unknown type dependencies in /home/username/example.com/releases/1578065246/src/Domain/Repository/AmazonAsinIsbnRepository.php on line 15
PHP Warning:  Can't preload class username\Api\Adapter\eBay with unresolved initializer for constant GLOBAL_IDS in /home/username/example.com/releases/1578065246/src/Api/Adapter/eBay.php on line 28
PHP Warning:  Can't preload unlinked class Monolog\Handler\SwiftMailerHandler: Unknown type dependencies in /home/username/example.com/releases/1578065246/vendor/monolog/monolog/src/Monolog/Handler/SwiftMailerHandler.php on line 24
PHP Warning:  Can't preload unlinked class Monolog\Handler\RollbarHandler: Unknown type dependencies in /home/username/example.com/releases/1578065246/vendor/monolog/monolog/src/Monolog/Handler/RollbarHandler.php on line 34
PHP Warning:  Can't preload unlinked class Monolog\Handler\RavenHandler: Unknown type dependencies in /home/username/example.com/releases/1578065246/vendor/monolog/monolog/src/Monolog/Handler/RavenHandler.php on line 25
PHP Warning:  Can't preload unlinked class Monolog\Handler\PHPConsoleHandler: Unknown type dependencies in /home/username/example.com/releases/1578065246/vendor/monolog/monolog/src/Monolog/Handler/PHPConsoleHandler.php on line 41
PHP Warning:  Can't preload unlinked class Monolog\Handler\ElasticSearchHandler: Unknown type dependencies in /home/username/example.com/releases/1578065246/vendor/monolog/monolog/src/Monolog/Handler/ElasticSearchHandler.php on line 36
PHP Warning:  Can't preload unlinked class Monolog\Handler\DynamoDbHandler: Unknown type dependencies in /home/username/example.com/releases/1578065246/vendor/monolog/monolog/src/Monolog/Handler/DynamoDbHandler.php on line 26
PHP Warning:  Can't preload unlinked class Monolog\Handler\DoctrineCouchDBHandler: Unknown type dependencies in /home/username/example.com/releases/1578065246/vendor/monolog/monolog/src/Monolog/Handler/DoctrineCouchDBHandler.php on line 23
PHP Warning:  Can't preload unlinked class GuzzleHttp\Exception\TransferException: Unknown interface GuzzleHttp\Exception\GuzzleException in /home/username/example.com/releases/1578065246/vendor/guzzlehttp/guzzle/src/Exception/TransferException.php on line 4
PHP Warning:  Can't preload unlinked class GuzzleHttp\Exception\TooManyRedirectsException: Unknown parent GuzzleHttp\Exception\RequestException in /home/username/example.com/releases/1578065246/vendor/guzzlehttp/guzzle/src/Exception/TooManyRedirectsException.php on line 4
PHP Warning:  Can't preload unlinked class GuzzleHttp\Exception\ServerException: Unknown parent GuzzleHttp\Exception\BadResponseException in /home/username/example.com/releases/1578065246/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php on line 7
PHP Warning:  Can't preload unlinked class GuzzleHttp\Exception\SeekException: Unknown interface GuzzleHttp\Exception\GuzzleException in /home/username/example.com/releases/1578065246/vendor/guzzlehttp/guzzle/src/Exception/SeekException.php on line 9
PHP Warning:  Can't preload unlinked class GuzzleHttp\Exception\RequestException: Unknown parent GuzzleHttp\Exception\TransferException in /home/username/example.com/releases/1578065246/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php on line 12
PHP Warning:  Can't preload unlinked class GuzzleHttp\Exception\InvalidArgumentException: Unknown interface GuzzleHttp\Exception\GuzzleException in /home/username/example.com/releases/1578065246/vendor/guzzlehttp/guzzle/src/Exception/InvalidArgumentException.php on line 5
PHP Warning:  Can't preload unlinked class GuzzleHttp\Exception\GuzzleException: Unknown reason in /home/username/example.com/releases/1578065246/vendor/guzzlehttp/guzzle/src/Exception/GuzzleException.php on line 20
PHP Warning:  Can't preload unlinked class GuzzleHttp\Exception\GuzzleException: Unknown reason in /home/username/example.com/releases/1578065246/vendor/guzzlehttp/guzzle/src/Exception/GuzzleException.php on line 7
PHP Warning:  Can't preload unlinked class GuzzleHttp\Exception\ConnectException: Unknown parent GuzzleHttp\Exception\RequestException in /home/username/example.com/releases/1578065246/vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php on line 11
PHP Warning:  Can't preload unlinked class GuzzleHttp\Exception\ClientException: Unknown parent GuzzleHttp\Exception\BadResponseException in /home/username/example.com/releases/1578065246/vendor/guzzlehttp/guzzle/src/Exception/ClientException.php on line 7
PHP Warning:  Can't preload unlinked class GuzzleHttp\Exception\BadResponseException: Unknown parent GuzzleHttp\Exception\RequestException in /home/username/example.com/releases/1578065246/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php on line 10
PHP Warning:  Can't preload unlinked class Google\Auth\Subscriber\SimpleSubscriber: Unknown interface GuzzleHttp\Event\SubscriberInterface in /home/username/example.com/releases/1578065246/vendor/google/auth/src/Subscriber/SimpleSubscriber.php on line 30
PHP Warning:  Can't preload unlinked class Google\Auth\Subscriber\ScopedAccessTokenSubscriber: Unknown interface GuzzleHttp\Event\SubscriberInterface in /home/username/example.com/releases/1578065246/vendor/google/auth/src/Subscriber/ScopedAccessTokenSubscriber.php on line 38
PHP Warning:  Can't preload unlinked class Google\Auth\Subscriber\AuthTokenSubscriber: Unknown interface GuzzleHttp\Event\SubscriberInterface in /home/username/example.com/releases/1578065246/vendor/google/auth/src/Subscriber/AuthTokenSubscriber.php on line 36
PHP Warning:  Can't preload unlinked class Doctrine\ORM\UnitOfWork: Unknown interface Doctrine\Common\PropertyChangedListener in /home/username/example.com/releases/1578065246/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php on line 65
PHP Warning:  Can't preload unlinked class Doctrine\ORM\Tools\Export\Driver\YamlExporter: Unknown type dependencies in /home/username/example.com/releases/1578065246/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Export/Driver/YamlExporter.php on line 32
PHP Warning:  Can't preload unlinked class Doctrine\ORM\Tools\Export\Driver\XmlExporter: Unknown type dependencies in /home/username/example.com/releases/1578065246/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Export/Driver/XmlExporter.php on line 32
PHP Warning:  Can't preload unlinked class Doctrine\ORM\Tools\Export\Driver\PhpExporter: Unknown type dependencies in /home/username/example.com/releases/1578065246/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Export/Driver/PhpExporter.php on line 31
PHP Warning:  Can't preload unlinked class Doctrine\ORM\Tools\Export\Driver\AnnotationExporter: Unknown type dependencies in /home/username/example.com/releases/1578065246/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Export/Driver/AnnotationExporter.php on line 32
PHP Warning:  Can't preload class Doctrine\ORM\Tools\EntityGenerator with unresolved initializer for static property $inheritanceTypeMap in /home/username/example.com/releases/1578065246/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/EntityGenerator.php on line 49
PHP Warning:  Can't preload unlinked class Doctrine\ORM\Tools\DisconnectedClassMetadataFactory: Unknown parent Doctrine\ORM\Mapping\ClassMetadataFactory in /home/username/example.com/releases/1578065246/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/DisconnectedClassMetadataFactory.php on line 39
PHP Warning:  Can't preload unlinked class Doctrine\ORM\Repository\DefaultRepositoryFactory: Unknown type dependencies in /home/username/example.com/releases/1578065246/vendor/doctrine/orm/lib/Doctrine/ORM/Repository/DefaultRepositoryFactory.php on line 30
PHP Warning:  Can't preload unlinked class Doctrine\ORM\Proxy\ProxyFactory: Unknown type dependencies in /home/username/example.com/releases/1578065246/vendor/doctrine/orm/lib/Doctrine/ORM/Proxy/ProxyFactory.php on line 41
PHP Warning:  Can't preload unlinked class Doctrine\ORM\Proxy\Proxy: Unknown interface Doctrine\Common\Proxy\Proxy in /home/username/example.com/releases/1578065246/vendor/doctrine/orm/lib/Doctrine/ORM/Proxy/Proxy.php on line 30
PHP Warning:  Can't preload unlinked class Doctrine\ORM\Persisters\Entity\SingleTablePersister: Unknown parent Doctrine\ORM\Persisters\Entity\AbstractEntityInheritancePersister in /home/username/example.com/releases/1578065246/vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/SingleTablePersister.php on line 36
PHP Warning:  Can't preload unlinked class Doctrine\ORM\Persisters\Entity\JoinedSubclassPersister: Unknown parent Doctrine\ORM\Persisters\Entity\AbstractEntityInheritancePersister in /home/username/example.com/releases/1578065246/vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/JoinedSubclassPersister.php on line 40
PHP Warning:  Can't preload unlinked class Doctrine\ORM\Persisters\Entity\AbstractEntityInheritancePersister: Unknown type dependencies in /home/username/example.com/releases/1578065246/vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/AbstractEntityInheritancePersister.php on line 34
PHP Warning:  Can't preload unlinked class Doctrine\ORM\Mapping\Driver\YamlDriver: Unknown parent Doctrine\Common\Persistence\Mapping\Driver\FileDriver in /home/username/example.com/releases/1578065246/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php on line 38
PHP Warning:  Can't preload unlinked class Doctrine\ORM\Mapping\Driver\XmlDriver: Unknown parent Doctrine\Common\Persistence\Mapping\Driver\FileDriver in /home/username/example.com/releases/1578065246/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php on line 41
PHP Warning:  Can't preload unlinked class Doctrine\ORM\Mapping\Driver\StaticPHPDriver: Unknown parent Doctrine\Common\Persistence\Mapping\Driver\StaticPHPDriver in /home/username/example.com/releases/1578065246/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/Driver/StaticPHPDriver.php on line 29
PHP Warning:  Can't preload unlinked class Doctrine\ORM\Mapping\Driver\SimplifiedYamlDriver: Unknown parent Doctrine\ORM\Mapping\Driver\YamlDriver in /home/username/example.com/releases/1578065246/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/Driver/SimplifiedYamlDriver.php on line 31
PHP Warning:  Can't preload unlinked class Doctrine\ORM\Mapping\Driver\SimplifiedXmlDriver: Unknown parent Doctrine\ORM\Mapping\Driver\XmlDriver in /home/username/example.com/releases/1578065246/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/Driver/SimplifiedXmlDriver.php on line 31
PHP Warning:  Can't preload unlinked class Doctrine\ORM\Mapping\Driver\PHPDriver: Unknown parent Doctrine\Common\Persistence\Mapping\Driver\PHPDriver in /home/username/example.com/releases/1578065246/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/Driver/PHPDriver.php on line 29
PHP Warning:  Can't preload unlinked class Doctrine\ORM\Mapping\Driver\DriverChain: Unknown parent Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain in /home/username/example.com/releases/1578065246/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/Driver/DriverChain.php on line 29
PHP Warning:  Can't preload unlinked class Doctrine\ORM\Mapping\Driver\DatabaseDriver: Unknown interface Doctrine\Common\Persistence\Mapping\Driver\MappingDriver in /home/username/example.com/releases/1578065246/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/Driver/DatabaseDriver.php on line 43
PHP Warning:  Can't preload unlinked class Doctrine\ORM\Mapping\Driver\AnnotationDriver: Unknown parent Doctrine\Common\Persistence\Mapping\Driver\AnnotationDriver in /home/username/example.com/releases/1578065246/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php on line 39
PHP Warning:  Can't preload unlinked class Doctrine\ORM\Mapping\DefaultQuoteStrategy: Unknown type dependencies in /home/username/example.com/releases/1578065246/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/DefaultQuoteStrategy.php on line 30
PHP Warning:  Can't preload unlinked class Doctrine\ORM\Mapping\ClassMetadataInfo: Unknown interface Doctrine\Common\Persistence\Mapping\ClassMetadata in /home/username/example.com/releases/1578065246/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php on line 50
PHP Warning:  Can't preload unlinked class Doctrine\ORM\Mapping\ClassMetadataFactory: Unknown parent Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory in /home/username/example.com/releases/1578065246/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php on line 46
PHP Warning:  Can't preload unlinked class Doctrine\ORM\Mapping\ClassMetadata: Unknown parent Doctrine\ORM\Mapping\ClassMetadataInfo in /home/username/example.com/releases/1578065246/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadata.php on line 27
PHP Warning:  Can't preload unlinked class Doctrine\ORM\Mapping\AnsiQuoteStrategy: Unknown type dependencies in /home/username/example.com/releases/1578065246/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/AnsiQuoteStrategy.php on line 31
PHP Warning:  Can't preload unlinked class Doctrine\ORM\Id\UuidGenerator: Unknown type dependencies in /home/username/example.com/releases/1578065246/vendor/doctrine/orm/lib/Doctrine/ORM/Id/UuidGenerator.php on line 30
PHP Warning:  Can't preload unlinked class Doctrine\ORM\Id\TableGenerator: Unknown type dependencies in /home/username/example.com/releases/1578065246/vendor/doctrine/orm/lib/Doctrine/ORM/Id/TableGenerator.php on line 33
PHP Warning:  Can't preload unlinked class Doctrine\ORM\Id\SequenceGenerator: Unknown type dependencies in /home/username/example.com/releases/1578065246/vendor/doctrine/orm/lib/Doctrine/ORM/Id/SequenceGenerator.php on line 31
PHP Warning:  Can't preload unlinked class Doctrine\ORM\Id\IdentityGenerator: Unknown type dependencies in /home/username/example.com/releases/1578065246/vendor/doctrine/orm/lib/Doctrine/ORM/Id/IdentityGenerator.php on line 29
PHP Warning:  Can't preload unlinked class Doctrine\ORM\Id\BigIntegerIdentityGenerator: Unknown type dependencies in /home/username/example.com/releases/1578065246/vendor/doctrine/orm/lib/Doctrine/ORM/Id/BigIntegerIdentityGenerator.php on line 29
PHP Warning:  Can't preload unlinked class Doctrine\ORM\Id\AssignedGenerator: Unknown type dependencies in /home/username/example.com/releases/1578065246/vendor/doctrine/orm/lib/Doctrine/ORM/Id/AssignedGenerator.php on line 34
PHP Warning:  Can't preload unlinked class Doctrine\ORM\Event\PreUpdateEventArgs: Unknown parent Doctrine\ORM\Event\LifecycleEventArgs in /home/username/example.com/releases/1578065246/vendor/doctrine/orm/lib/Doctrine/ORM/Event/PreUpdateEventArgs.php on line 32
PHP Warning:  Can't preload unlinked class Doctrine\ORM\Event\OnClassMetadataNotFoundEventArgs: Unknown parent Doctrine\Common\Persistence\Event\ManagerEventArgs in /home/username/example.com/releases/1578065246/vendor/doctrine/orm/lib/Doctrine/ORM/Event/OnClassMetadataNotFoundEventArgs.php on line 35
PHP Warning:  Can't preload unlinked class Doctrine\ORM\Event\LoadClassMetadataEventArgs: Unknown parent Doctrine\Common\Persistence\Event\LoadClassMetadataEventArgs in /home/username/example.com/releases/1578065246/vendor/doctrine/orm/lib/Doctrine/ORM/Event/LoadClassMetadataEventArgs.php on line 35
PHP Warning:  Can't preload unlinked class Doctrine\ORM\Event\LifecycleEventArgs: Unknown parent Doctrine\Common\Persistence\Event\LifecycleEventArgs in /home/username/example.com/releases/1578065246/vendor/doctrine/orm/lib/Doctrine/ORM/Event/LifecycleEventArgs.php on line 33
PHP Warning:  Can't preload unlinked class Doctrine\ORM\EntityRepository: Unknown interface Doctrine\Common\Persistence\ObjectRepository in /home/username/example.com/releases/1578065246/vendor/doctrine/orm/lib/Doctrine/ORM/EntityRepository.php on line 41
PHP Warning:  Can't preload unlinked class Doctrine\ORM\EntityManagerInterface: Unknown interface Doctrine\Common\Persistence\ObjectManager in /home/username/example.com/releases/1578065246/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php on line 33
PHP Warning:  Can't preload unlinked class Doctrine\ORM\EntityManager: Unknown interface Doctrine\ORM\EntityManagerInterface in /home/username/example.com/releases/1578065246/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php on line 64
PHP Warning:  Can't preload unlinked class Doctrine\ORM\Decorator\EntityManagerDecorator: Unknown parent Doctrine\Common\Persistence\ObjectManagerDecorator in /home/username/example.com/releases/1578065246/vendor/doctrine/orm/lib/Doctrine/ORM/Decorator/EntityManagerDecorator.php on line 32
PHP Warning:  Can't preload unlinked class Doctrine\ORM\Cache\Persister\Entity\ReadWriteCachedEntityPersister: Unknown type dependencies in /home/username/example.com/releases/1578065246/vendor/doctrine/orm/lib/Doctrine/ORM/Cache/Persister/Entity/ReadWriteCachedEntityPersister.php on line 36
PHP Warning:  Can't preload unlinked class Doctrine\ORM\Cache\Persister\Collection\ReadWriteCachedCollectionPersister: Unknown type dependencies in /home/username/example.com/releases/1578065246/vendor/doctrine/orm/lib/Doctrine/ORM/Cache/Persister/Collection/ReadWriteCachedCollectionPersister.php on line 33
PHP Warning:  Can't preload unlinked class Doctrine\ORM\Cache\DefaultEntityHydrator: Unknown type dependencies in /home/username/example.com/releases/1578065246/vendor/doctrine/orm/lib/Doctrine/ORM/Cache/DefaultEntityHydrator.php on line 36
PHP Warning:  Can't preload unlinked class Doctrine\ORM\Cache\DefaultCollectionHydrator: Unknown type dependencies in /home/username/example.com/releases/1578065246/vendor/doctrine/orm/lib/Doctrine/ORM/Cache/DefaultCollectionHydrator.php on line 34
PHP Warning:  Can't preload unlinked class Doctrine\ORM\Cache\DefaultCacheFactory: Unknown type dependencies in /home/username/example.com/releases/1578065246/vendor/doctrine/orm/lib/Doctrine/ORM/Cache/DefaultCacheFactory.php on line 46
PHP Warning:  Can't preload class Doctrine\DBAL\Driver\SQLSrv\SQLSrvStatement with unresolved initializer for static property $fetchMap in /home/username/example.com/releases/1578065246/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/SQLSrv/SQLSrvStatement.php on line 41
PHP Warning:  Can't preload class Doctrine\DBAL\Driver\OCI8\OCI8Statement with unresolved initializer for static property $fetchModeMap in /home/username/example.com/releases/1578065246/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php on line 50
PHP Warning:  Can't preload class Doctrine\DBAL\Driver\OCI8\OCI8Connection with unresolved initializer for property $executeMode in /home/username/example.com/releases/1578065246/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/OCI8/OCI8Connection.php on line 29
PHP Warning:  Can't preload unlinked class Doctrine\Common\Proxy\Proxy: Unknown interface Doctrine\Common\Persistence\Proxy in /home/username/example.com/releases/1578065246/vendor/doctrine/common/lib/Doctrine/Common/Proxy/Proxy.php on line 16
PHP Warning:  Can't preload unlinked class Doctrine\Common\PropertyChangedListener: Unknown reason in /home/username/example.com/releases/1578065246/vendor/doctrine/persistence/lib/Doctrine/Common/PropertyChangedListener.php on line 28
PHP Warning:  Can't preload unlinked class Doctrine\Common\Persistence\Proxy: Unknown reason in /home/username/example.com/releases/1578065246/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Proxy.php on line 28
PHP Warning:  Can't preload unlinked class Doctrine\Common\Persistence\PersistentObject: Unknown interface Doctrine\Common\Persistence\ObjectManagerAware in /home/username/example.com/releases/1578065246/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/PersistentObject.php on line 47
PHP Warning:  Can't preload unlinked class Doctrine\Common\Persistence\ObjectRepository: Unknown reason in /home/username/example.com/releases/1578065246/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/ObjectRepository.php on line 28
PHP Warning:  Can't preload unlinked class Doctrine\Common\Persistence\ObjectManagerDecorator: Unknown reason in /home/username/example.com/releases/1578065246/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/ObjectManagerDecorator.php on line 28
PHP Warning:  Can't preload unlinked class Doctrine\Common\Persistence\ObjectManagerAware: Unknown reason in /home/username/example.com/releases/1578065246/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/ObjectManagerAware.php on line 28
PHP Warning:  Can't preload unlinked class Doctrine\Common\Persistence\ObjectManager: Unknown reason in /home/username/example.com/releases/1578065246/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/ObjectManager.php on line 28
PHP Warning:  Can't preload unlinked class Doctrine\Common\Persistence\Mapping\StaticReflectionService: Unknown reason in /home/username/example.com/releases/1578065246/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Mapping/StaticReflectionService.php on line 28
PHP Warning:  Can't preload unlinked class Doctrine\Common\Persistence\Mapping\RuntimeReflectionService: Unknown reason in /home/username/example.com/releases/1578065246/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Mapping/RuntimeReflectionService.php on line 28
PHP Warning:  Can't preload unlinked class Doctrine\Common\Persistence\Mapping\ReflectionService: Unknown reason in /home/username/example.com/releases/1578065246/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Mapping/ReflectionService.php on line 28
PHP Warning:  Can't preload unlinked class Doctrine\Common\Persistence\Mapping\MappingException: Unknown reason in /home/username/example.com/releases/1578065246/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Mapping/MappingException.php on line 28
PHP Warning:  Can't preload unlinked class Doctrine\Common\Persistence\Mapping\Driver\SymfonyFileLocator: Unknown reason in /home/username/example.com/releases/1578065246/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Mapping/Driver/SymfonyFileLocator.php on line 28
PHP Warning:  Can't preload unlinked class Doctrine\Common\Persistence\Mapping\Driver\StaticPHPDriver: Unknown reason in /home/username/example.com/releases/1578065246/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Mapping/Driver/StaticPHPDriver.php on line 28
PHP Warning:  Can't preload unlinked class Doctrine\Common\Persistence\Mapping\Driver\PHPDriver: Unknown reason in /home/username/example.com/releases/1578065246/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Mapping/Driver/PHPDriver.php on line 28
PHP Warning:  Can't preload unlinked class Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain: Unknown reason in /home/username/example.com/releases/1578065246/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Mapping/Driver/MappingDriverChain.php on line 28
PHP Warning:  Can't preload unlinked class Doctrine\Common\Persistence\Mapping\Driver\MappingDriver: Unknown reason in /home/username/example.com/releases/1578065246/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Mapping/Driver/MappingDriver.php on line 28
PHP Warning:  Can't preload unlinked class Doctrine\Common\Persistence\Mapping\Driver\FileLocator: Unknown reason in /home/username/example.com/releases/1578065246/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Mapping/Driver/FileLocator.php on line 28
PHP Warning:  Can't preload unlinked class Doctrine\Common\Persistence\Mapping\Driver\FileDriver: Unknown reason in /home/username/example.com/releases/1578065246/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Mapping/Driver/FileDriver.php on line 28
PHP Warning:  Can't preload unlinked class Doctrine\Common\Persistence\Mapping\Driver\DefaultFileLocator: Unknown reason in /home/username/example.com/releases/1578065246/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Mapping/Driver/DefaultFileLocator.php on line 28
PHP Warning:  Can't preload unlinked class Doctrine\Common\Persistence\Mapping\Driver\AnnotationDriver: Unknown reason in /home/username/example.com/releases/1578065246/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Mapping/Driver/AnnotationDriver.php on line 28
PHP Warning:  Can't preload unlinked class Doctrine\Common\Persistence\Mapping\ClassMetadataFactory: Unknown reason in /home/username/example.com/releases/1578065246/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Mapping/ClassMetadataFactory.php on line 28
PHP Warning:  Can't preload unlinked class Doctrine\Common\Persistence\Mapping\ClassMetadata: Unknown reason in /home/username/example.com/releases/1578065246/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Mapping/ClassMetadata.php on line 28
PHP Warning:  Can't preload unlinked class Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory: Unknown reason in /home/username/example.com/releases/1578065246/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php on line 28
PHP Warning:  Can't preload unlinked class Doctrine\Common\Persistence\ManagerRegistry: Unknown reason in /home/username/example.com/releases/1578065246/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/ManagerRegistry.php on line 28
PHP Warning:  Can't preload unlinked class Doctrine\Common\Persistence\Event\PreUpdateEventArgs: Unknown reason in /home/username/example.com/releases/1578065246/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Event/PreUpdateEventArgs.php on line 28
PHP Warning:  Can't preload unlinked class Doctrine\Common\Persistence\Event\OnClearEventArgs: Unknown reason in /home/username/example.com/releases/1578065246/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Event/OnClearEventArgs.php on line 28
PHP Warning:  Can't preload unlinked class Doctrine\Common\Persistence\Event\ManagerEventArgs: Unknown reason in /home/username/example.com/releases/1578065246/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Event/ManagerEventArgs.php on line 28
PHP Warning:  Can't preload unlinked class Doctrine\Common\Persistence\Event\LoadClassMetadataEventArgs: Unknown reason in /home/username/example.com/releases/1578065246/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Event/LoadClassMetadataEventArgs.php on line 28
PHP Warning:  Can't preload unlinked class Doctrine\Common\Persistence\Event\LifecycleEventArgs: Unknown reason in /home/username/example.com/releases/1578065246/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Event/LifecycleEventArgs.php on line 28
PHP Warning:  Can't preload unlinked class Doctrine\Common\Persistence\ConnectionRegistry: Unknown reason in /home/username/example.com/releases/1578065246/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/ConnectionRegistry.php on line 28
PHP Warning:  Can't preload unlinked class Doctrine\Common\Persistence\AbstractManagerRegistry: Unknown reason in /home/username/example.com/releases/1578065246/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/AbstractManagerRegistry.php on line 28
PHP Warning:  Can't preload unlinked class Doctrine\Common\NotifyPropertyChanged: Unknown reason in /home/username/example.com/releases/1578065246/vendor/doctrine/persistence/lib/Doctrine/Common/NotifyPropertyChanged.php on line 28
PHP Warning:  Can't preload unlinked class Brick\Unit\TestCase: Unknown parent PHPUnit\Framework\TestCase in /home/username/example.com/releases/1578065246/vendor/brick/brick/src/Unit/TestCase.php on line 10
PHP Warning:  Can't preload unlinked class Brick\Tests\Currency\LocaleTest: Unknown parent PHPUnit\Framework\TestCase in /home/username/example.com/releases/1578065246/vendor/brick/brick/src/Tests/Locale/LocaleTest.php on line 12
PHP Warning:  Can't preload unlinked class Brick\Tests\Currency\LanguageTest: Unknown parent PHPUnit\Framework\TestCase in /home/username/example.com/releases/1578065246/vendor/brick/brick/src/Tests/Locale/LanguageTest.php on line 12
PHP Warning:  Can't preload unlinked class Brick\Tests\Currency\CountryTest: Unknown parent PHPUnit\Framework\TestCase in /home/username/example.com/releases/1578065246/vendor/brick/brick/src/Tests/Locale/CountryTest.php on line 12
PHP Warning:  Can't preload unlinked class Brick\Tests\Random\RandomPickerTest: Unknown parent PHPUnit\Framework\TestCase in /home/username/example.com/releases/1578065246/vendor/brick/brick/src/Tests/Random/RandomPickerTest.php on line 49
PHP Warning:  Can't preload unlinked class Brick\Money\RationalMoney: Unknown type dependencies in /home/username/example.com/releases/1578065246/vendor/brick/money/src/RationalMoney.php on line 21
PHP Warning:  Can't preload unlinked class Brick\Money\Money: Unknown type dependencies in /home/username/example.com/releases/1578065246/vendor/brick/money/src/Money.php on line 33
PHP Warning:  Can't preload unlinked class Brick\Money\Context\DefaultContext: Unknown type dependencies in /home/username/example.com/releases/1578065246/vendor/brick/money/src/Context/DefaultContext.php on line 16
PHP Warning:  Can't preload unlinked class Brick\Money\Context\CustomContext: Unknown type dependencies in /home/username/example.com/releases/1578065246/vendor/brick/money/src/Context/CustomContext.php on line 16
PHP Warning:  Can't preload unlinked class Brick\Money\Context\CashContext: Unknown type dependencies in /home/username/example.com/releases/1578065246/vendor/brick/money/src/Context/CashContext.php on line 16
PHP Warning:  Can't preload unlinked class Brick\Money\Context\AutoContext: Unknown type dependencies in /home/username/example.com/releases/1578065246/vendor/brick/money/src/Context/AutoContext.php on line 17
PHP Warning:  Can't preload unlinked class Brick\Math\BigRational: Unknown type dependencies in /home/username/example.com/releases/1578065246/vendor/brick/math/src/BigRational.php on line 17
PHP Warning:  Can't preload unlinked class Brick\Math\BigInteger: Unknown type dependencies in /home/username/example.com/releases/1578065246/vendor/brick/math/src/BigInteger.php on line 20
PHP Warning:  Can't preload unlinked class Brick\Math\BigDecimal: Unknown type dependencies in /home/username/example.com/releases/1578065246/vendor/brick/math/src/BigDecimal.php on line 15
Segmentation fault
 [2020-01-24 12:52 UTC] benjamin dot morel at gmail dot com
Still SIGSEGV with PHP 7.4.2.
 [2020-01-24 15:24 UTC] nikic@php.net
-PHP Version: 7.4.1 +PHP Version: 7.4.2
 [2020-01-24 15:24 UTC] nikic@php.net
As you're using preload_user, this is likely the same as bug #79128.
 [2020-02-11 10:51 UTC] benjamin dot morel at gmail dot com
Still not fixed in 7.4.3 RC1.

I'm getting no segfault now, but still getting a lot of "PHP Warning:  Can't preload unlinked class" in the error log.

And when attempting to load a page, I get an error:

> TypeError: Argument 1 passed to Doctrine\ORM\Configuration::setMetadataDriverImpl() must be an instance of Doctrine\Common\Persistence\Mapping\Driver\MappingDriver, instance of Doctrine\ORM\Mapping\Driver\AnnotationDriver given

Even though AnnotationDriver implements MappingDriver.
 [2020-02-18 22:34 UTC] benjamin dot morel at gmail dot com
Same issue with PHP 7.4.3.

The log is flooded with warnings:

(...)
NOTICE: PHP message: PHP Warning:  Can't preload unlinked class Doctrine\Common\Persistence\Event\OnClearEventArgs: Unknown reason in /home/nicebooks/nicebo
NOTICE: PHP message: PHP Warning:  Can't preload unlinked class Doctrine\Common\Persistence\Event\ManagerEventArgs: Unknown reason in /home/nicebooks/nicebo
NOTICE: PHP message: PHP Warning:  Can't preload unlinked class Doctrine\Common\Persistence\Event\LoadClassMetadataEventArgs: Unknown reason in /home/nicebo
NOTICE: PHP message: PHP Warning:  Can't preload unlinked class Doctrine\Common\Persistence\Event\LifecycleEventArgs: Unknown reason in /home/nicebooks/nice
NOTICE: PHP message: PHP Warning:  Can't preload unlinked class Doctrine\Common\Persistence\ConnectionRegistry: Unknown reason in /home/nicebooks/nicebooks.
NOTICE: PHP message: PHP Warning:  Can't preload unlinked class Doctrine\Common\Persistence\AbstractManagerRegistry: Unknown reason in /home/nicebooks/niceb
NOTICE: PHP message: PHP Warning:  Can't preload unlinked class Doctrine\Common\NotifyPropertyChanged: Unknown reason in /home/nicebooks/nicebooks.com/relea
NOTICE: PHP message: PHP Warning:  Can't preload unlinked class Brick\Unit\TestCase: Unknown parent PHPUnit\Framework\TestCase in /home/nicebooks/nicebooks.
NOTICE: PHP message: PHP Warning:  Can't preload unlinked class Brick\Tests\Currency\LocaleTest: Unknown parent PHPUnit\Framework\TestCase in /home/nicebook
NOTICE: PHP message: PHP Warning:  Can't preload unlinked class Brick\Tests\Currency\LanguageTest: Unknown parent PHPUnit\Framework\TestCase in /home/nicebo
NOTICE: PHP message: PHP Warning:  Can't preload unlinked class Brick\Tests\Currency\CountryTest: Unknown parent PHPUnit\Framework\TestCase in /home/niceboo
NOTICE: PHP message: PHP Warning:  Can't preload unlinked class Brick\Tests\Random\RandomPickerTest: Unknown parent PHPUnit\Framework\TestCase in /home/nice
NOTICE: PHP message: PHP Warning:  Can't preload unlinked class Brick\Money\RationalMoney: Unknown type dependencies in /home/nicebooks/nicebooks.com/releas
NOTICE: PHP message: PHP Warning:  Can't preload unlinked class Brick\Money\Money: Unknown type dependencies in /home/nicebooks/nicebooks.com/releases/15820
NOTICE: PHP message: PHP Warning:  Can't preload unlinked class Brick\Money\Context\DefaultContext: Unknown type dependencies in /home/nicebooks/nicebooks.c
NOTICE: PHP message: PHP Warning:  Can't preload unlinked class Brick\Money\Context\CustomContext: Unknown type dependencies in /home/nicebooks/nicebooks.co
NOTICE: PHP message: PHP Warning:  Can't preload unlinked class Brick\Money\Context\CashContext: Unknown type dependencies in /home/nicebooks/nicebooks.com/
NOTICE: PHP message: PHP Warning:  Can't preload unlinked class Brick\Money\Context\AutoContext: Unknown type dependencies in /home/nicebooks/nicebooks.com/
NOTICE: PHP message: PHP Warning:  Can't preload unlinked class Brick\Math\BigRational: Unknown type dependencies in /home/nicebooks/nicebooks.com/releases/
NOTICE: PHP message: PHP Warning:  Can't preload unlinked class Brick\Math\BigInteger: Unknown type dependencies in /home/nicebooks/nicebooks.com/releases/1
 [2020-02-18 23:09 UTC] nikic@php.net
Just to be clear, those warnings are fine and expected if you use opcache_compile_file() to preload. In that mode it will preload everything it can, and warn about the things it can't. You can use "require" to preload if you want to avoid the warnings. This will fatal error if everything can't be preloaded -- but it is capable of preloading a larger set of cases.

The TypeError you mention shouldn't occur though.
 [2020-03-18 17:37 UTC] benjamin dot morel at gmail dot com
Same error in PHP 7.4.4:

TypeError: Argument 1 passed to Doctrine\ORM\Configuration::setMetadataDriverImpl() must be an instance of Doctrine\Common\Persistence\Mapping\Driver\MappingDriver, instance of Doctrine\ORM\Mapping\Driver\AnnotationDriver given
 [2020-04-16 15:00 UTC] benjamin dot morel at gmail dot com
Same issue with PHP 7.4.5.
 [2020-04-21 21:29 UTC] benjamin dot morel at gmail dot com
Looks like this is due to this oddity in Doctrine/Persistence:

https://github.com/doctrine/persistence/blob/1.3.7/lib/Doctrine/Common/Persistence/Mapping/Driver/MappingDriver.php

https://github.com/doctrine/persistence/blob/1.3.7/lib/Doctrine/Common/Persistence/Mapping/Driver/AnnotationDriver.php

Passing an instance of AnnotationDriver where an instance of MappingDriver is expected works at runtime because of the class_alias(), but fails static analysis that uses the declaration inside the if(false) condition (PHPStorm warns about it as well).

Therefore I'm not sure whether the behaviour of the preloader is a bug:
**Should it preload the interface/class declarations, even though they're conditional?**
 [2023-05-23 06:46 UTC] autocarbikenews at gmail dot com
Auto Car Bike News are sharing latest news about auto, car, bikes, upcoming car and bikes news, electric vehicle news etc. More info to visit: (https://autocarbikenews.com)github.com
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 13:01:29 2024 UTC