Bug #31002

Generated __sleep method handles static properties as members.

Added by Stephan Schuler almost 4 years ago. Updated almost 4 years ago.

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

related to TYPO3.Flow - Bug #38216: Static method calls in reflected classes refer to _Origin... Needs Feedback 2012-06-20

History

#1 Updated by Karsten Dambekalns almost 4 years ago

  • Affected Flow version set to FLOW3 1.0.0

Also available in: Atom PDF