php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41559 Segmenation fault on missing argument
Submitted: 2007-06-01 15:18 UTC Modified: 2007-06-09 01:00 UTC
From: oliver dot stocks at yahoo dot fr Assigned:
Status: No Feedback Package: *General Issues
PHP Version: 5.2.3 OS: Windows NT IDFP201F 5.0 build 21
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2007-06-01 15:18 UTC] 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-06-01 15:32 UTC] 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-09 01:00 UTC] 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".
 [2009-12-18 13:08 UTC] lesleydonny at gmail dot com
Hi All, 
This site is very useful to us
 [2014-07-29 20:19 UTC] B7_ at HOTMAIL dot COM
EOPDJMRFNROI RJCNRO REIOURF F
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 07:01:32 2024 UTC