Bug #37571

Inherited proxies fail when implementing __clone

Added by Kira Backes over 9 years ago. Updated over 9 years ago.

Status:
New
Priority:
Must have
Assignee:
-
Category:
AOP
Target version:
-
Start date:
2012-05-29
Due date:
% Done:

0%

Estimated time:
PHP Version:
5.4
Has patch:
No
Complexity:

Description

This seems to be exclusive for PHP 5.4
Error thrown (in development mode):
Notice: Undefined property: [...]Class::$FLOW3_AOP_Proxy_targetMethodsAndGroupedAdvices

Change

 435                 $proxyClass->addProperty('FLOW3_Aop_Proxy_targetMethodsAndGroupedAdvices', 'array()');
 436                 $proxyClass->addProperty('FLOW3_Aop_Proxy_groupedAdviceChains', 'array()');
 437                 $proxyClass->addProperty('FLOW3_Aop_Proxy_methodIsInAdviceMode', 'array()');

to

        $proxyClass->addProperty('FLOW3_AOP_Proxy_targetMethodsAndGroupedAdvices', 'array()', 'protected');
        $proxyClass->addProperty('FLOW3_AOP_Proxy_groupedAdviceChains', 'array()', 'protected');
        $proxyClass->addProperty('FLOW3_AOP_Proxy_methodIsInAdviceMode', 'array()', 'protected');

in /TYPO3/FLOW3/AOP/Builder/ProxyClassBuilder.php

#1

Updated by Bastian Waidelich over 9 years ago

  • Project changed from TYPO3 Flow Base Distribution to TYPO3.Flow
#2

Updated by Karsten Dambekalns over 9 years ago

  • Category set to AOP
  • PHP Version set to 5.4
  • Has patch set to No

Also available in: Atom PDF