|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15875 Apache segfault while overwriting SessionID
Submitted: 2002-03-05 09:26 UTC Modified: 2002-05-31 00:00 UTC
From: neuro at interia dot pl Assigned:
Status: No Feedback Package: Session related
PHP Version: 4.1.2 OS: Linux/FreeBSD
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: neuro at interia dot pl
New email:
PHP Version: OS:


 [2002-03-05 09:26 UTC] neuro at interia dot pl
This function call causes frequent segmentation fault + core on Apache 1.3.2x + PHP 4.1.x (all versions => 4.1.0)

function StartMySession() {
                srand((double) microtime() * 1000000); 
                $hash = bin2hex(mhash(MHASH_MD5, rand(1, time()) . microtime(), 'public_identificator'));
                session_name($this->globalName);                session_set_cookie_params($this->globalTime, '/', '.my.domain');
                $sessionID = session_id();
                $GLOBALS[$this->varControlName] = true;
                return $sessionID;

  PHP compiled as Apache module:
--with-gd=../gd-1.8.4 \
--with-oci8 \
--enable-sigchild \
--enable-ftp \
--with-mysql \
--with-xml \
--enable-track-vars \
--enable-sysvsem \
--enable-sysvshm \
--enable-trans-sid \
--enable-gd-native-ttf \
--with-ttf=../freetype-2.0.8 \
--with-jpeg-dir=/usr/lib \
--with-zlib-dir=/usr/lib \
--with-png-dir=/usr/lib \


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-05 09:42 UTC]
Can you try the latest snapshot from

 [2002-05-31 00:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, 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".
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jul 14 04:01:30 2024 UTC