Bug #31002
Generated __sleep method handles static properties as members.
Status: | New | Start date: | 2011-10-17 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | - | % Done: | 0% |
|
Category: | Reflection | |||
Target version: | - | |||
PHP Version: | Complexity: | |||
Has patch: | Affected Flow version: | FLOW3 1.0.0 |
Description
The __sleep method generated by \TYPO3\FLOW3\Object\DependencyInjection\ProxyClassBuilder::buildSerializeRelatedEntitiesCode tries to handle "static" properties.
Since "$this->property" throws an exception where self::$property should be used, the PhpSession::close() method catches an Exception "SplObjectStorage::serialize() must return a string or NULL".
I would suggest to treat static properties as transient by default.
Related issues
History
#1 Updated by Karsten Dambekalns almost 4 years ago
- Affected Flow version set to FLOW3 1.0.0