Bug #31002

Generated __sleep method handles static properties as members.

Added by Stephan Schuler over 9 years ago. Updated over 9 years ago.

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

0%

Estimated time:
PHP Version:
Has patch:
Complexity:

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 _Original classNeeds Feedback2012-06-20

Actions

No data to display

Also available in: Atom PDF