From:             ylee at peragrin dot com
Operating system: Linux FC5
PHP version:      5.1.4
PHP Bug Type:     Session related
Bug description:  Segfault passing _SESSION to SESSION using function

Description:
------------
When S_SESSION is passed through a function with global $_SESSION, the
apache's child processor segfaults.



Reproduce code:
---------------
<?php

session_id("temp");
session_start();

$_SESSION['a'] = 'test';

function my_get_from($list)
{
  global $_SESSION;

  // removed code related to manipulating $_SESSION using $list.
}

my_get_from('a', $_SESSION);

if (isset($_SESSION))
{
   print_r($_SESSION);
}

?>


Expected result:
----------------
An error message would be nice or being able to access both list will be
the most desirable solution.
This code used work on 4.* releases. 



Actual result:
--------------
[Tue Jun 27 11:14:16 2006] [notice] child pid 15899 exit signal
Segmentation fault (11)

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

Reply via email to