From:             oliver dot stocks at yahoo dot fr
Operating system: Windows NT IDFP201F 5.0 build 21
PHP version:      5.2.3
PHP Bug Type:     *General Issues
Bug description:  Segmenation fault on missing argument

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 bug report at http://bugs.php.net/?id=41559&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=41559&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=41559&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=41559&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=41559&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=41559&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=41559&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=41559&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=41559&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=41559&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=41559&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=41559&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=41559&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=41559&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=41559&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=41559&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=41559&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=41559&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=41559&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=41559&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=41559&r=mysqlcfg

Reply via email to