Bug #41559 [Com]: Segmenation fault on missing argument

From: Date: Tue, 29 Jul 2014 20:20:00 +0000
Subject: Bug #41559 [Com]: Segmenation fault on missing argument
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-186870@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=41559&edit=1 ID: 41559 Comment by: B7_ at HOTMAIL dot COM Reported by: oliver dot stocks at yahoo dot fr Summary: Segmenation fault on missing argument Status: No Feedback Type: Bug Package: *General Issues Operating System: Windows NT IDFP201F 5.0 build 21 PHP Version: 5.2.3 Block user comment: N Private report: N New Comment: EOPDJMRFNROI RJCNRO REIOURF F Previous Comments: ------------------------------------------------------------------------ [2009-12-18 13:08:56] lesleydonny at gmail dot com Hi All, This site is very useful to us ------------------------------------------------------------------------ [2007-06-09 01:00:00] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2007-06-01 15:32:58] sniper@php.net 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. ------------------------------------------------------------------------ [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 https://bugs.php.net/bug.php?id=41559&edit=1

« previous php.bugs (#186870) next »