|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-06-01 15:32 UTC] sniper@php.net
[2007-06-09 01:00 UTC] php-bugs at lists dot php dot net
[2009-12-18 13:08 UTC] lesleydonny at gmail dot com
[2014-07-29 20:19 UTC] B7_ at HOTMAIL dot COM
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 07 02:00:01 2025 UTC |
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.