Bug #52

T3P_Framework_AOP_Pointcut: too many recursions

Added by Robert Lemke about 12 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
AOP
Start date:
Due date:
% Done:

0%

PHP Version:
Has patch:
Complexity:

Description

The more classes exist in TYPO3 5.0, the more recursions occur in during the pointcut filter matching. That is not the wanted behaviour though and it may result in either xdebug complaining about too many recursions or an exception thrown.

Example:

Fatal error: Uncaught exception 'RuntimeException' with message 'Circular pointcut reference detected in T3P_TestPackage_IntroductionAspect->newMethodAroundAdvice, too many recursions (Query identifier: 0).' in /Users/Shared/Sites/t3dev/typo3_5.0/typo3_5.0/Packages/Framework/Classes/AOP/T3P_Framework_AOP_Pointcut.php:94 Stack trace: #0 /Users/Shared/Sites/t3dev/typo3_5.0/typo3_5.0/Packages/Framework/Classes/AOP/T3P_Framework_AOP_ProxyClassBuilder.php(240): T3P_Framework_AOP_Pointcut->matches(Object(T3P_Framework_Reflection_Class), Object(ReflectionMethod), 0) #1 /Users/Shared/Sites/t3dev/typo3_5.0/typo3_5.0/Packages/Framework/Classes/AOP/T3P_Framework_AOP_ProxyClassBuilder.php(63): T3P_Framework_AOP_ProxyClassBuilder->getMatchingIntroductions(Array, Object(T3P_Framework_Reflection_Class)) #2 /Users/Shared/Sites/t3dev/typo3_5.0/typo3_5.0/Packages/Framework/Classes/AOP/T3P_Framework_AOP_Framework.php(291): T3P_Framework_AOP_ProxyClassBuilder->buildProxyClass(Object(T3P_Framework_Reflection_Class), Object(T3P_Framework_Compo in /Users/Shared/Sites/t3dev/typo3_5.0/typo3_5.0/Packages/Framework/Classes/AOP/T3P_Framework_AOP_Pointcut.php on line 94

History

#1 Updated by Robert Lemke about 12 years ago

  • Status changed from New to Closed
  • Sprint set to fixed

(In r223) Framework: The AOP poincut filter reported too many recursions while matching classes for intructions - solved this by specifying a more unique query identifier. Hopefully fixes #52.

Also available in: Atom PDF