Bug #31002

Generated __sleep method handles static properties as members.

Added by Stephan Schuler over 1 year ago. Updated over 1 year ago.

Status:New Start date:2011-10-17
Priority:Should have Due date:
Assignee:- % Done:

0%

Category:Reflection
Target version:-
PHP Version: Complexity:
Has patch: FLOW3 version affected:FLOW3 1.0.0
Votes: 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

Updated by Karsten Dambekalns over 1 year ago

  • FLOW3 version affected set to FLOW3 1.0.0

Also available in: Atom PDF