php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21163 $_SESSION=NULL causes "an illegal operation performed by apache"
Submitted: 2002-12-23 05:05 UTC Modified: 2003-01-09 19:36 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: docent at lanparty dot lv Assigned:
Status: No Feedback Package: Apache related
PHP Version: 4.2.3 OS: Windows XP
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: docent at lanparty dot lv
New email:
PHP Version: OS:

 

 [2002-12-23 05:05 UTC] docent at lanparty dot lv
Assigning to $_SESSION superglobal a NULL value causes Apache running on Windows XP to show the "This programm has performed an illegal operation" message. The interesting thing is that this problem exists only when $_SESSION already contains a non-NULL variable, assigning NULL to an "empty" $_SESSION doesn't show up this issue.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-23 05:09 UTC] nicos@php.net
Superglobals are arrays and need to stay like that. 

If you want to empty them just $_SESSION = array();
 [2002-12-23 05:20 UTC] docent at lanparty dot lv
Of course, $_SESSION is a superglobal array and "$_SESSION = array()" is the solution but still I suppose that it would be better that this error (if we consider this as an error) would be thrown by PHP itself, not particular OS. Sorry about maybe not very good and detailly formulated topic of mine.
 [2002-12-23 05:28 UTC] derick@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip
 [2003-01-09 19:36 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Feb 25 00:01:26 2020 UTC