#21163 [Fbk->NoF]: $_SESSION=NULL causes "an illegal operation performed by apache"

From: Date: Fri, 10 Jan 2003 01:36:38 +0000
Subject: #21163 [Fbk->NoF]: $_SESSION=NULL causes "an illegal operation performed by apache"
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-29639@lists.php.net to get a copy of this message
ID: 21163 Updated by: sniper@php.net Reported By: docent@lanparty.lv -Status: Feedback +Status: No Feedback Bug Type: Apache related Operating System: Windows XP PHP Version: 4.2.3 New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2002-12-23 05:28:30] 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 ------------------------------------------------------------------------ [2002-12-23 05:20:18] docent@lanparty.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:09:57] 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:05:46] docent@lanparty.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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21163&edit=1

« previous php.bugs (#29639) next »