Yes. Just saw a post about sfForm trying to serialize a PDO object - that seems to be the issue not sfBrowser.
On Feb 13, 10:16 am, Thomas Rabaix <[email protected]> wrote: > On some systeme there are two php.ini file > > - cli > - apache / cgi > > Have you change the limit to the correct php.ini file ? > > > > On Fri, Feb 13, 2009 at 7:01 PM, myke <[email protected]> wrote: > > > I am writting a functional test that is testing login's through a > > sfForm object and I'm getting out of memory errors (even if I increase > > the limit to several gigs). The issue doesn't happen when your in a > > dev or prod environment so I can't replicate it other then when using > > functional tests. I've tracked the issue down to the sfBrowser > > instantiation.... > > > // this works just fine > > $b = new sfTestFunctional (new sfBrowser() ); > > $b-> > > info('Login with bad password')-> > > post ('user/login', array( > > 'users' => array( > > 'email' => '[email protected]', > > 'password' => 'abcde' > > ) > > )); > > > // however when I specify a url and ip in the sfBrowser.. > > $b = new sfTestFunctional (new sfBrowser('www.somesite.com', > > '127.0.0.1')); > > > // this happens: > > # post user/login > > > Fatal error: Allowed memory size of 104857600 bytes exhausted (tried > > to allocate 23551298 bytes) in /usr/local/lib/php/symfony-1.2.4/lib/ > > util/sfParameterHolder.class.php on line 201 > > > Call Stack: > > 0.0111 70032 1. {main}() /content/app/dev/test/functional/ > > frontend/userActionsTest.php:0 > > 6.7361 62402040 2. sfTestFunctionalBase->post() /content/app/ > > dev/test/functional/frontend/userActionsTest.php:66 > > 6.7361 62402040 3. sfTestFunctionalBase->call() /usr/local/lib/ > > php/symfony-1.2.4/lib/test/sfTestFunctionalBase.class.php:219 > > 6.7365 62402040 4. sfBrowserBase->call() /usr/local/lib/php/ > > symfony-1.2.4/lib/test/sfTestFunctionalBase.class.php:245 > > 6.7368 62402040 5. sfBrowser->doCall() /usr/local/lib/php/ > > symfony-1.2.4/lib/util/sfBrowserBase.class.php:323 > > 6.9406 62824520 6. sfFrontWebController->dispatch() /usr/local/ > > lib/php/symfony-1.2.4/lib/util/sfBrowser.class.php:43 > > 6.9407 62824520 7. sfController->forward() /usr/local/lib/php/ > > symfony-1.2.4/lib/controller/sfFrontWebController.class.php:48 > > 6.9478 62832556 8. sfFilterChain->execute() /usr/local/lib/php/ > > symfony-1.2.4/lib/controller/sfController.class.php:245 > > 6.9478 62832556 9. sfFakeRenderingFilter->execute() /usr/local/ > > lib/php/symfony-1.2.4/lib/filter/sfFilterChain.class.php:53 > > 6.9478 62832556 10. sfFilterChain->execute() /usr/local/lib/php/ > > symfony-1.2.4/lib/util/sfBrowser.class.php:161 > > 6.9479 62832556 11. brandFilter->execute() /usr/local/lib/php/ > > symfony-1.2.4/lib/filter/sfFilterChain.class.php:53 > > 6.9510 62838264 12. sfFilterChain->execute() /content/app/dev/ > > apps/frontend/lib/brandFilter.class.php:48 > > 6.9510 62838264 13. sfGoogleAnalyticsFilter->execute() /usr/ > > local/lib/php/symfony-1.2.4/lib/filter/sfFilterChain.class.php:53 > > 6.9518 62838944 14. sfFilterChain->execute() /content/app/dev/ > > plugins/sfGoogleAnalyticsPlugin/lib/filter/ > > sfGoogleAnalyticsFilter.class.php:45 > > 6.9519 62838944 15. sfCacheFilter->execute() /usr/local/lib/php/ > > symfony-1.2.4/lib/filter/sfFilterChain.class.php:53 > > 6.9534 62838944 16. sfFilterChain->execute() /usr/local/lib/php/ > > symfony-1.2.4/lib/filter/sfCacheFilter.class.php:65 > > 6.9534 62838944 17. sfCommonFilter->execute() /usr/local/lib/ > > php/symfony-1.2.4/lib/filter/sfFilterChain.class.php:53 > > 6.9534 62838944 18. sfFilterChain->execute() /usr/local/lib/php/ > > symfony-1.2.4/lib/filter/sfCommonFilter.class.php:29 > > 6.9535 62838944 19. sfExecutionFilter->execute() /usr/local/lib/ > > php/symfony-1.2.4/lib/filter/sfFilterChain.class.php:53 > > 7.0390 63146436 20. sfExecutionFilter->handleView() /usr/local/ > > lib/php/symfony-1.2.4/lib/filter/sfExecutionFilter.class.php:54 > > 7.0390 63146436 21. sfExecutionFilter->executeView() /usr/local/ > > lib/php/symfony-1.2.4/lib/filter/sfExecutionFilter.class.php:114 > > 7.0436 63146896 22. sfPHPView->render() /usr/local/lib/php/ > > symfony-1.2.4/lib/filter/sfExecutionFilter.class.php:153 > > 7.0439 63146896 23. sfPHPView->renderFile() /usr/local/lib/php/ > > symfony-1.2.4/lib/view/sfPHPView.class.php:174 > > 7.0467 63189680 24. require('/content/app/dev/apps/frontend/ > > modules/user/templates/loginSuccess.php') /usr/local/lib/php/ > > symfony-1.2.4/lib/view/sfPHPView.class.php:77 > > 7.0467 63189680 25. include_partial() /content/app/dev/apps/ > > frontend/modules/user/templates/loginSuccess.php:1 > > 7.0467 63189680 26. get_partial() /usr/local/lib/php/ > > symfony-1.2.4/lib/helper/PartialHelper.php:180 > > 7.0479 63189680 27. sfPartialView->render() /usr/local/lib/php/ > > symfony-1.2.4/lib/helper/PartialHelper.php:218 > > 7.0480 63189680 28. sfPartialView->getCache() /usr/local/lib/ > > php/symfony-1.2.4/lib/view/sfPartialView.class.php:69 > > 7.0480 63189680 29. sfViewCacheManager->computeCacheKey() /usr/ > > local/lib/php/symfony-1.2.4/lib/view/sfPartialView.class.php:113 > > 7.0480 63189680 30. serialize() /usr/local/lib/php/ > > symfony-1.2.4/lib/view/sfViewCacheManager.class.php:614 > > 7.0494 63274556 31. sfParameterHolder->serialize() /usr/local/ > > lib/php/symfony-1.2.4/lib/util/sfParameterHolder.class.php:0 > > 7.0494 63274556 32. serialize() /usr/local/lib/php/ > > symfony-1.2.4/lib/util/sfParameterHolder.class.php:201 > > > I'm running symfony 1.2.4. Any hints on how to track this down would > > be great! > > -- > Thomas Rabaix --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---
