From 4c913a21e7d09dd7326f1b39d1c031121e0c42b3 Mon Sep 17 00:00:00 2001 From: Arnaud Date: Wed, 17 Jan 2018 11:02:39 +0100 Subject: [PATCH] APCU error on property accessor Sometime I see this kind of error in my logs: apache error logs: Got error 'PHP message: PHP Notice: apcu_fetch(): Error at offset 0 of 426 bytes in .../vendor/symfony/symfony/src/Symfony/Component/Cache/Adapter/ApcuAdapter.php on line 53 Followed by a symfony log Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: "Call to a member function getLength() on null" at .../vendor/symfony/symfony/src/Symfony/Component/PropertyAccess/PropertyAccessor.php line 194 Once this problem occured theses errors are repeated until the apcu cache is cleared (which can take hours). As this problem occured randomly, I can not repeat it when I want. Serveur Debian 9 / apache 2.4.25 with php-fpm / PHP 7.0.27 / apcu 5.1.3 --- src/Symfony/Component/PropertyAccess/PropertyAccessor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/PropertyAccess/PropertyAccessor.php b/src/Symfony/Component/PropertyAccess/PropertyAccessor.php index d0db3946e47f7..38bf96cc89a30 100644 --- a/src/Symfony/Component/PropertyAccess/PropertyAccessor.php +++ b/src/Symfony/Component/PropertyAccess/PropertyAccessor.php @@ -884,7 +884,7 @@ private function getPropertyPath($propertyPath) } $propertyPathInstance = new PropertyPath($propertyPath); - if (isset($item)) { + if (isset($item) && $item->get() instanceof PropertyPathInterface) { $item->set($propertyPathInstance); $this->cacheItemPool->save($item); } pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy