#6302: libs/object.test.php test case fails with: Maximum function nesting level
of '100' reached
---------------------------+------------------------------------------------
    Reporter:  dweazle     |          Type:  Bug       
      Status:  new         |      Priority:  Medium    
   Milestone:  1.2.x.x     |     Component:  Test Suite
     Version:  1.2 Final   |      Severity:  Normal    
    Keywords:              |   Php_version:  PHP 5     
Cake_version:  1.2.2.8120  |  
---------------------------+------------------------------------------------
 Using SimpleTest 1.0.1 (+ CakePHP 1.2.2.8120)

 Full call stack:

 {{{
 ( ! ) Fatal error: Maximum function nesting level of '100' reached,
 aborting! in /foo/bar/app/vendors/simpletest/errors.php on line 274
 Call Stack
 #       Time    Memory  Function        Location
 1       0.0006  183288  {main}( )       ../test.php:0
 2       0.0611  7752792 TestManager::runTestCase( )     ../test.php:165
 3       0.1156  15509112        TestSuite->run( )
 ../test_manager.php:125
 4       0.1158  15510528        TestSuite->run( )
 ../test_case.php:598
 5       0.1159  15510800        SimpleTestCase->run( )
 ../test_case.php:595
 6       0.3962  19922256        SimpleExceptionTrappingInvoker->invoke( )
 ../test_case.php:143
 7       0.3963  19922256        SimpleInvokerDecorator->invoke( )
 ../exceptions.php:43
 8       0.3963  19922256        SimpleErrorTrappingInvoker->invoke( )
 ../invoker.php:126
 9       0.3964  19922256        SimpleInvokerDecorator->invoke( )
 ../errors.php:49
 10      0.3964  19922256        SimpleInvoker->invoke( )
 ../invoker.php:126
 11      0.3964  19922256        ObjectTest->testRequestAction( )
 ../invoker.php:68
 12      0.4234  19972944        Object->requestAction( )
 ../object.test.php:624
 13      0.4234  19972944        Dispatcher->dispatch( ) ../object.php:100
 14      0.4275  20015056        Dispatcher->_invoke( )
 ../dispatcher.php:194
 15      0.4936  23100008        Component->startup( )
 ../dispatcher.php:210
 16      0.4940  23103904        AuthComponent->startup( )
 ../component.php:112
 17      0.5077  23693056        AuthComponent->isAuthorized( )
 ../auth.php:394
 18      0.5128  23694272        AclComponent->check( )  ../auth.php:472
 19      0.5128  23694272        DbAcl->check( ) ../acl.php:89
 20      0.5129  23694272        AclNode->node( )        ../acl.php:235
 21      0.5130  23694272        ClassRegistry->init( )  ../db_acl.php:140
 22      0.5140  23780432        Model->__construct( )
 ../class_registry.php:140
 23      0.5187  23843672        Model->__createLinks( ) ../model.php:418
 24      0.5187  23843672        Model->__constructLinkedModel( )
 ../model.php:609
 25      0.5188  23843672        ClassRegistry->init( )  ../model.php:637
 26      0.5195  23909576        Model->__construct( )
 ../class_registry.php:140
 27      0.5204  23942072        Model->setSource( )     ../model.php:410
 28      0.5213  23954952        Object->cakeError( )    ../model.php:747
 29      0.5229  24126752        ErrorHandler->__construct( )
 ../object.php:202
 30      0.5295  24296432        Object->dispatchMethod( )
 ../error.php:118
 31      0.5296  24296432        ErrorHandler->missingTable( )
 ../object.php:117
 32      0.5300  24296432        ErrorHandler->_outputMessage( )
 ../error.php:224
 33      0.5300  24296432        Controller->render( )   ../error.php:373
 34      0.5303  24300184        View->render( ) ../controller.php:799
 35      0.5304  24300184        View->_getViewFileName( )
 ../view.php:374
 36      0.5306  24300440        View->_missingView( )   ../view.php:825
 37      0.5306  24300440        Object->cakeError( )    ../view.php:870
 38      0.5306  24300576        ErrorHandler->__construct( )
 ../object.php:202
 39      0.5358  24357000        Object->dispatchMethod( )
 ../error.php:118
 40      0.5358  24357000        ErrorHandler->missingView( )
 ../object.php:117
 41      0.5364  24357000        ErrorHandler->_outputMessage( )
 ../error.php:253
 42      0.5364  24357000        Controller->render( )   ../error.php:373
 43      0.5367  24362312        View->render( ) ../controller.php:799
 44      0.5367  24362312        View->_getViewFileName( )
 ../view.php:374
 45      0.5369  24362568        View->_missingView( )   ../view.php:825
 46      0.5369  24362568        Object->cakeError( )    ../view.php:870
 47      0.5370  24362704        ErrorHandler->__construct( )
 ../object.php:202
 48      0.5421  24420584        Object->dispatchMethod( )
 ../error.php:118
 49      0.5421  24420584        ErrorHandler->missingView( )
 ../object.php:117
 50      0.5427  24420584        ErrorHandler->_outputMessage( )
 ../error.php:253
 51      0.5427  24420584        Controller->render( )   ../error.php:373
 52      0.5430  24425896        View->render( ) ../controller.php:799
 53      0.5430  24425896        View->_getViewFileName( )
 ../view.php:374
 54      0.5432  24426152        View->_missingView( )   ../view.php:825
 55      0.5432  24426152        Object->cakeError( )    ../view.php:870
 56      0.5433  24426288        ErrorHandler->__construct( )
 ../object.php:202
 57      0.5449  24457800        Object->dispatchMethod( )
 ../error.php:118
 58      0.5449  24457800        ErrorHandler->missingView( )
 ../object.php:117
 59      0.5455  24458136        ErrorHandler->_outputMessage( )
 ../error.php:253
 60      0.5455  24458136        Controller->render( )   ../error.php:373
 61      0.5457  24461448        View->render( ) ../controller.php:799
 62      0.5457  24461448        View->_getViewFileName( )
 ../view.php:374
 63      0.5460  24462040        View->_missingView( )   ../view.php:825
 64      0.5460  24462040        Object->cakeError( )    ../view.php:870
 65      0.5460  24462040        ErrorHandler->__construct( )
 ../object.php:202
 66      0.5511  24511600        Object->dispatchMethod( )
 ../error.php:118
 67      0.5511  24511600        ErrorHandler->missingView( )
 ../object.php:117
 68      0.5516  24511600        ErrorHandler->_outputMessage( )
 ../error.php:253
 69      0.5516  24511600        Controller->render( )   ../error.php:373
 70      0.5520  24516912        View->render( ) ../controller.php:799
 71      0.5520  24516912        View->_getViewFileName( )
 ../view.php:374
 72      0.5522  24517168        View->_missingView( )   ../view.php:825
 73      0.5522  24517168        Object->cakeError( )    ../view.php:870
 74      0.5522  24517304        ErrorHandler->__construct( )
 ../object.php:202
 75      0.5574  24577760        Object->dispatchMethod( )
 ../error.php:118
 76      0.5575  24577760        ErrorHandler->missingView( )
 ../object.php:117
 77      0.5580  24577760        ErrorHandler->_outputMessage( )
 ../error.php:253
 78      0.5580  24577760        Controller->render( )   ../error.php:373
 79      0.5583  24583072        View->render( ) ../controller.php:799
 80      0.5583  24583072        View->_getViewFileName( )
 ../view.php:374
 81      0.5585  24583328        View->_missingView( )   ../view.php:825
 82      0.5586  24583328        Object->cakeError( )    ../view.php:870
 83      0.5586  24583464        ErrorHandler->__construct( )
 ../object.php:202
 84      0.5600  24611288        Object->dispatchMethod( )
 ../error.php:118
 85      0.5600  24611288        ErrorHandler->missingView( )
 ../object.php:117
 86      0.5606  24613768        ErrorHandler->_outputMessage( )
 ../error.php:253
 87      0.5606  24613768        Controller->render( )   ../error.php:373
 88      0.5608  24618032        View->render( ) ../controller.php:799
 89      0.5608  24618032        View->_getViewFileName( )
 ../view.php:374
 90      0.5610  24618624        View->_missingView( )   ../view.php:825
 91      0.5610  24618624        Object->cakeError( )    ../view.php:870
 92      0.5611  24618760        ErrorHandler->__construct( )
 ../object.php:202
 93      0.5612  24623808        CakeErrorController->__construct( )
 ../error.php:89
 94      0.5621  24639800        Controller->constructClasses( )
 ../error.php:54
 95      0.5626  24648312        Component->init( )
 ../controller.php:438
 96      0.5626  24648312        Component->_loadComponents( )
 ../component.php:77
 97      0.5628  24648312        SessionComponent->__construct( )
 ../component.php:237
 98      0.5628  24648312        Configure->read( )      ../session.php:67
 99      0.5628  24648312        SimpleTestErrorHandler( )
 ../errors.php:0
 }}}

 Call stack is only presented when running through web test.php. When
 running from CLI I get no simpletest result, and no stacktrace:

 {{{
 Welcome to CakePHP v1.2.2.8120 Console
 ---------------------------------------------------------------
 App : app
 Path: /home/dweazle/src/tilaa/webapp/app
 ---------------------------------------------------------------
 CakePHP Test Shell
 ---------------------------------------------------------------
 Running core case object
 Individual test case: libs/object.test.php
 $ echo $?
 0
 }}}

 (No return code > 0? That's something for another ticket :)

 Can you reproduce?

-- 
Ticket URL: <https://trac.cakephp.org/ticket/6302>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design 
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. 
Our primary goal is to provide a structured framework that enables PHP users at 
all levels to rapidly develop robust web applications, without any loss to 
flexibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"tickets cakephp" group.
To post to this group, send email to tickets-cakephp@googlegroups.com
To unsubscribe from this group, send email to 
tickets-cakephp+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---

  • [CakePHP : The Rapid Dev... CakePHP : The Rapid Development Framework for PHP

Reply via email to