ID: 24394 Updated by: [EMAIL PROTECTED] Reported By: hos dot endre at axelero dot hu -Status: Open +Status: Feedback Bug Type: Session related Operating System: Win NT/XP PHP Version: 5CVS-2003-06-29 (dev) New Comment:
Does this script work any better: <?php session_start(); if (!isset($_SESSION["count"])) { $_SESSION['count'] = 1; } else { echo $_SESSION['count']++; } ?> Previous Comments: ------------------------------------------------------------------------ [2003-06-29 19:37:32] hos dot endre at axelero dot hu Description: ------------ On request shutdown session file is created, but stay locked with zero size. CPU have no load, and nothing happens. No crash. I've tried older 5CVS bins, and it seems to be an older bug. Serialization and anything else works well for me. 5.0.0-Beta1 also contains this bug. Leaving out session_start & session_register. :) Reproduce code: --------------- <? session_start(); if (!isset($HTTP_SESSION_VARS["count"])) { session_register("count"); $count = &$HTTP_SESSION_VARS["count"]; $count = 1; } else $count = &$HTTP_SESSION_VARS["count"]; echo $count++; ?> Expected result: ---------------- 1, 2, 3... by refreshing the page. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=24394&edit=1