#41559 [Com]: Segmenation fault on missing argument
| From: | lesleydonny at gmail dot com | Date: | Fri, 18 Dec 2009 13:08:57 +0000 |
| Subject: | #41559 [Com]: Segmenation fault on missing argument | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-145894@lists.php.net to get a copy of this message | ||
ID: 41559
Comment by: lesleydonny at gmail dot com
Reported By: oliver dot stocks at yahoo dot fr
Status: No Feedback
Bug Type: *General Issues
Operating System: Windows NT IDFP201F 5.0 build 21
PHP Version: 5.2.3
New Comment:
Hi All,
This site is very useful to us
Previous Comments:
------------------------------------------------------------------------
[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 http://bugs.php.net/?id=41559&edit=1