Bug #15875 Updated: Apache segfault while overwriting SessionID

From: Date: Fri, 31 May 2002 04:00:04 +0000
Subject: Bug #15875 Updated: Apache segfault while overwriting SessionID
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-8975@lists.php.net to get a copy of this message
ID: 15875 Updated by: php-bugs@lists.php.net Reported By: neuro@interia.pl -Status: Feedback +Status: No Feedback Bug Type: Session related Operating System: Linux/FreeBSD PHP Version: 4.1.2 New Comment: 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". Previous Comments: ------------------------------------------------------------------------ [2002-03-05 09:42:40] derick@php.net Can you try the latest snapshot from snaps.php.net? regards, Derick ------------------------------------------------------------------------ [2002-03-05 09:26:34] neuro@interia.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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=15875&edit=1

« previous php.bugs (#8975) next »