From: Henry S. <kel...@ph...> - 2009-10-15 10:52:56
|
Author: Kellanved Date: Thu Oct 15 11:52:41 2009 New Revision: 10224 Log: #52875 working around php4 bug 24631 - call_user_func doesn't return references. This causes php4 to create a copy. Modified: branches/phpBB-3_0_0/phpBB/includes/captcha/captcha_factory.php Modified: branches/phpBB-3_0_0/phpBB/includes/captcha/captcha_factory.php ============================================================================== *** branches/phpBB-3_0_0/phpBB/includes/captcha/captcha_factory.php (original) --- branches/phpBB-3_0_0/phpBB/includes/captcha/captcha_factory.php Thu Oct 15 11:52:41 2009 *************** *** 35,41 **** { include($phpbb_root_path . "includes/captcha/plugins/{$name}_plugin." . $phpEx); } ! $instance & call_user_func(array($name, 'get_instance')); return $instance; } --- 35,41 ---- { include($phpbb_root_path . "includes/captcha/plugins/{$name}_plugin." . $phpEx); } ! $instance = call_user_func(array($name, 'get_instance')); return $instance; } |