Mombu the Php Forum sponsored links

Go Back   Mombu the Php Forum > Php > #36646 : foreach($_SESSION as $key => $value) unset($_SESSION) crashes apache2
User Name
REGISTER NOW! Mark Forums Read

sponsored links

1 16th July 05:29
External User
Posts: 1
Default #36646 : foreach($_SESSION as $key => $value) unset($_SESSION) crashes apache2

ID: 36646
Comment by: grafelbd at telstar-online dot net
Reported By: christian dot cal at gmx dot de
Status: No Feedback
Bug Type: Session related
Operating System: Windows XP
PHP Version: 5.1.2
New Comment:

I am using PHP 5.2.1 and I have tested this same issue with an array of
15 items with randomly generated strings, and this bug did not affect

I tried using PHP 5.2.1 both as an Apache module (running Apache
2.0.59) and as a FastCGI but was unable to reproduce this error in
either setup.

I believe this bug might have been resolved in PHP 5.2.1 ? Unless all
of you are referring to Apache 2.2.x, which I have not tested.

Previous Comments:

[2007-03-30 00:17:05] no at email dot here

No crash for me, but I confirm the bug with php version 5.2.0 under
windows : no unset the variables

The proposed solution is OK :

foreach ($helper as $key => $value){



[2006-09-18 13:53:29] s dot stok at rollerscapes dot net

Im ussing the latest version of php5.2, and i also haffing this

The whird thing is that on my linux box everything works fine,only on
windows it fails to work.
Only the workaround makes it work.


[2006-08-27 01:12:36] joe at gmail dot com

Actually to clarify, it doesn't crash Apache on my computer, but it
doesn't unset the variables!


[2006-08-27 01:09:31] joe at gmail dot com

I'm running 5.1.6 and I have this problem... it still hasn't been


[2006-08-02 01:00:00] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, 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".


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

Edit this bug report at
  Reply With Quote

  sponsored links


Thread Tools
Display Modes

Copyright 2006 - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -