This is predictable bug, based on syntax used in admin_menu and already reported two bugs:
#1107770: Mollom: Maximum function nesting level of '400' reached, aborting! in tests/mollom.test on line 83
#1105064: FileField: Test: Fatal error: Maximum function nesting level of '400' reached, aborting! in filefield.test with PHP 5.3

3.x and master contain following code:

call_user_func_array(array($this, 'parent::setUp'), array_merge(array('admin_menu'), $args));
which is nesting/crashing with PHP 5.3.

It should be replaced to:


as 1.x has it.

call_user_func_array('parent::setUp', $modules);


kenorb’s picture

Title:Simpletest: PHP 5.3 compability for parent::setUp callback» Admin Menu: Test: PHP 5.3 compability for parent::setUp callback
kenorb’s picture

Issue tags:+PHP 5.3
sun’s picture

Status:Active» Fixed

Thanks for reporting, reviewing, and testing! Committed

A new development snapshot will be available within the next 12 hours. This improvement will be available in the next official release.

Dave Reid’s picture

Status:Fixed» Needs work

Keep in mind that when you do this: function setUp($modules = array()) {

that all your inherited classes also need to use setUp($module = array()) in their definition otherwise it causes strict errors on PHP 5.3...

sun’s picture

Status:Needs work» Fixed

d'oh - fixed in a follow-up:

Looks like I have to find some time to fix my error reporting...

Automatically closed -- issue fixed for 2 weeks with no activity.