php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15542 array_merge with $_SESSION
Submitted: 2002-02-13 11:47 UTC Modified: 2002-04-13 05:21 UTC
From: ceco at noxis dot net Assigned:
Status: Closed Package: Session related
PHP Version: 4.1.1 OS: linux
Private report: No CVE-ID: None
 [2002-02-13 11:47 UTC] ceco at noxis dot net
the problem is that I try the thing

$_SESSION = array_merge($_SESSION, pg_fetch_array($res, 0, PGSQL_ASSOC));

it makes segmentation falt

may be I try something wrong, but segfault is not right too

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-13 11:51 UTC] derick@php.net
To properly diagnose this bug, 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

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open".
 [2002-02-13 12:00 UTC] ceco at noxis dot net
actually the problem is only with
$_SESSION = $somearray;
(no array_merge is needed) for a backtrace i will try later, no time now :(
 [2002-04-12 18:30 UTC] sniper@php.net
I can not reproduce this with PHP 4.2.0RC3.
Please try it out: http://www.php.net/~derick/

 [2002-04-13 05:21 UTC] ceco at noxis dot net
yes it works :)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 17:01:29 2024 UTC