New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors with deserialization for the profiling of blocks in debug mode with PHP 7.3 #556
Comments
Shouldnt this be fixed by php? |
Hi, Not before 7.4 apparently. The bug already existed before, but without any message.
[https://bugs.php.net/bug.php?id=77302] |
Would that kind of magical incantation fix it: symfony/symfony@3cfb558 ? |
Nope, error stays the same for me. |
Just FYI. The bug will not be resolved by PHP. There will be a different approach on serialization https://wiki.php.net/rfc/custom_object_serialization. |
? maybe this issue need to stay open (for others users searching unserialize issues with blocks), this bug still exist see #652 and like said nikic ...
|
@cbastienbaron Which symfony version do you have? |
@toooni v3.4.35
friendsofsymfony/elastica-bundle v5.1.1 Elasticsearch PHP integration for your Symfony project using Elastica
friendsofsymfony/http-cache 1.4.5 Tools to manage cache invalidation
friendsofsymfony/http-cache-bundle 1.3.16 Set path based HTTP cache headers and send invalidation requests to your HTTP cache
friendsofsymfony/jsrouting-bundle 1.6.3 A pretty nice way to expose your Symfony2 routing to client applications.
friendsofsymfony/user-bundle v2.0.1 Symfony FOSUserBundle
symfony-cmf/routing 2.1.0 Extends the Symfony routing component for dynamic routes and chaining several routers
symfony-cmf/routing-bundle 2.1.1 Symfony RoutingBundle
symfony/assetic-bundle v2.8.2 Integrates Assetic into Symfony2
symfony/http-client v4.3.8 Symfony HttpClient component
symfony/http-client-contracts v1.1.8 Generic abstractions related to HTTP clients
symfony/mime v4.3.8 A library to manipulate MIME messages
symfony/monolog-bundle v3.4.0 Symfony MonologBundle
symfony/phpunit-bridge v2.8.52 Symfony PHPUnit Bridge
symfony/polyfill-apcu v1.12.0 Symfony polyfill backporting apcu_* functions to lower PHP versions
symfony/polyfill-ctype v1.12.0 Symfony polyfill for ctype functions
symfony/polyfill-intl-icu v1.12.0 Symfony polyfill for intl's ICU-related data and classes
symfony/polyfill-intl-idn v1.12.0 Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions
symfony/polyfill-mbstring v1.12.0 Symfony polyfill for the Mbstring extension
symfony/polyfill-php56 v1.12.0 Symfony polyfill backporting some PHP 5.6+ features to lower PHP versions
symfony/polyfill-php70 v1.12.0 Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions
symfony/polyfill-php72 v1.12.0 Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions
symfony/polyfill-php73 v1.12.0 Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions
symfony/polyfill-util v1.12.0 Symfony utilities for portability of PHP codes
symfony/swiftmailer-bundle v2.6.7 Symfony SwiftmailerBundle
symfony/symfony v3.4.35 The Symfony PHP framework |
Environment
Sonata packages
Symfony packages
PHP version
Subject
An error occured when the profiler is retrieving data from blocks.
Steps to reproduce
Execute any page with a SonataBlock on development environment.
Expected results
Get information about Sonata blocks from the page in the profiler.
Actual results
There is a bug in serialization with PHP 7.3 :
https://bugs.php.net/bug.php?id=77302
There are some workarounds and discussion about it :
Notice: unserialize(): Error at offset 20266 of 22557 bytes
in web profiler symfony/symfony#30014For now I had to disable the profiler for the blocks.
https://sonata-project.org/bundles/block/master/doc/reference/profiler.html
Thanks,
Jérôme.
The text was updated successfully, but these errors were encountered: