ID: 41559 Updated by: [EMAIL PROTECTED] Reported By: oliver dot stocks at yahoo dot fr -Status: Open +Status: Feedback Bug Type: *General Issues Operating System: Windows NT IDFP201F 5.0 build 21 PHP Version: 5.2.3 New Comment:
Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php for *NIX and http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32 Once you have generated a backtrace, please submit it to this bug report and change the status back to "Open". Thank you for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2007-06-01 15:18:35] oliver dot stocks at yahoo dot fr Description: ------------ Hello, After making a MVC framework i found that it was impossible to passe some arrays to the template, it was my mistake (function only took strings and not arrays) yet it keeped making apache to seg fault, that is not normal. Check the code posted. Reproduce code: --------------- -----file /classes/AdminHelpers.php class AdminHelpers { public static function CacheRegionList($db) { $sth = $db->prepare('SELECT `id_region`,`reg_nom` FROM `gps_region`'); } } -----file /controllers/admin/equipes.php class Controller_Equipes extends Controller_base { public function Update() { parent::SetNavigation('admin'); parent::Navigation(); AdminHelpers::CacheRegionList(); // Note the missing argument } } Expected result: ---------------- Missing argument 1 for function CacheRegionList... Actual result: -------------- Apache segfault. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=41559&edit=1
