8 return "__rename_func_";
11 $stub_name = prefix() . 'strtoupper';
13 var_dump(strtoupper('tweet'));
14 fb_rename_function('strtoupper', $stub_name);
15 fb_rename_function('bungle', 'strtoupper');
16 var_dump(strtoupper('tweet'));
21 // try to allocate something in that memory
22 $stub_name = prefix() . 'hagfish';
24 $stub_name = prefix() . 'strtoupper';
25 fb_rename_function('strtoupper', 'bungle');
26 fb_rename_function($stub_name, 'strtoupper');
27 var_dump(strtoupper('tweet'));