ID: 36646 Comment by: joe at gmail dot com 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'm running 5.1.6 and I have this problem... it still hasn't been fixed! Previous Comments: ------------------------------------------------------------------------ [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". ------------------------------------------------------------------------ [2006-07-25 16:30:02] gmartyn at judicialtitle dot com Ugh, looks like I was affected by this bug after all.. the array_merge was a problem, but so was the foreach over the $_SESSION. I got my script working by using the trick provided in the first comment: $helper=&$_SESSION; foreach ($helper as $key => $value){ unset($helper[$key]); } ------------------------------------------------------------------------ [2006-07-25 16:20:41] gmartyn at judicialtitle dot com I'm sorry, my last comment was incorrect. My problem was that I was trying to do this: $_SESSION = array_merge($_SESSION, $SomeVars); ------------------------------------------------------------------------ [2006-07-25 16:14:29] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.2-win32-latest.zip ------------------------------------------------------------------------ [2006-07-25 16:10:54] gmartyn at judicialtitle dot com I am able to reproduce this bug with php 5.1.4 on IIS 6. I also tried one of the solutions provided by the first comment: $helper=array_keys($_SESSION); foreach ($helper as $key){ unset($_SESSION[$key]); } ..but after a print_r($_SESSION), I got this. Note the Access Violation: The session is now: Array ( [numRecords] => 2 [curRecord] => 1 [curTab_r0] => Header [curPartyType_r1] => d [numDebtors_r1] => 1 [numSecured_r1] => 1 [numProperty_r1] => 1 [curTab_r1] => Document [OriginalDocPgcnt_r1] => 1PHP has encountered an Access Violation at 01E1CCA6 [curTab_r2] => Document [OriginalDocPgcnt_r2] => 2 [chkbox_doc_nonstd_r1] => false [curPartyType_r2] => d [numDebtors_r2] => 1 [numSecured_r2] => 1 [numProperty_r2] => 1 ) ------------------------------------------------------------------------ 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 http://bugs.php.net/36646 -- Edit this bug report at http://bugs.php.net/?id=36646&edit=1