ID:               39636
 Updated by:       [EMAIL PROTECTED]
 Reported By:      dj02 dot net at nbl dot fi
-Status:           Open
+Status:           Feedback
 Bug Type:         Reproducible crash
 Operating System: Windows XP PRO SP2 (5.1.2600)
 PHP Version:      5.2.1-dev (Nov 29 2006 12:17:35)
 New Comment:

Thanks, but the guestbook is a bit too much for a reproduce case.


Previous Comments:
------------------------------------------------------------------------

[2006-11-29 17:16:55] dj02 dot net at nbl dot fi

Mistake in URL. Here's the right one.

Guestbook ZIP-Package:
http://www.dj02net.com/crashreports/vk206.zip
The Code i copied previously was from file called: "index.php"

------------------------------------------------------------------------

[2006-11-29 17:09:39] dj02 dot net at nbl dot fi

Only problem is that code is from guestbook. So it includes quite much
code.

Guestbook ZIP-Package:
http://www.zuronet.org/getfile.php?filename=vk206
The Code i copied previously was from file called: "index.php"

------------------------------------------------------------------------

[2006-11-29 15:53:27] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.



------------------------------------------------------------------------

[2006-11-29 15:47:19] dj02 dot net at nbl dot fi

-

------------------------------------------------------------------------

[2006-11-29 15:44:15] dj02 dot net at nbl dot fi

Didn't help.

Build: Nov 29 2006 12:17:35

Changed server to run PHP a CGI. Hope it doesn't crash anymore.

PHP crashes on the following code (in PHP 5.1 it didn't):

// -------------------------------------------- Kirjautumiseen
liittyvät ----------------------------------------

if (in_array("logout",$_operation)) // LogOut
{
  timed_delete($bandb, $div, 4);
  lock($db);
  db_delete_col($db, $div, 3, 3);  // poistetaan viestit roskakorista
  unlock($db);
  lock($sesdb);
  db_delete_col($sesdb, $div, $_SESSION['ssid'], 1);  // poistetaan
vanha sessiovarmistustunniste
  unlock($sesdb);
  lock($userfile);
  $value = db_modify_line($userfile, $div, $_SESSION['name'], 0, 15,
time());  // asetetaan viimeisin käyntiaika
  unlock($userfile);

  setcookie(session_name() ,"", time()-100, "/"); // poistetaan sessio
  unset($_SESSION);

  header("Location: " . $server_php_self .
"?loggedout=true$get_more");
  exit;
}

------------------------------------------------------------------------

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/39636

-- 
Edit this bug report at http://bugs.php.net/?id=39636&edit=1

Reply via email to