php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15878 Apache segfault while overwriting SessionID
Submitted: 2002-03-05 09:45 UTC Modified: 2002-03-05 09:46 UTC
From: neuro at interia dot pl Assigned:
Status: Not a bug Package: Session related
PHP Version: 4.1.2 OS: Linux/FreeBSD
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: neuro at interia dot pl
New email:
PHP Version: OS:

 

 [2002-03-05 09:45 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_id($hash);


                session_name($this->globalName);                session_set_cookie_params($this->globalTime, '/', '.my.domain');


                session_start();


                $sessionID = session_id();


                $GLOBALS[$this->varControlName] = true;


                session_register($this->varControlName);


                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 \


--with-mhash



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-05 09:46 UTC] derick@php.net
Please do not submit the same bug more than once.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 09 22:01:33 2025 UTC