php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4874 php.exe crashes when using sessions
Submitted: 2000-06-07 19:04 UTC Modified: 2000-06-08 22:17 UTC
From: fredo at pandora dot be Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0.0 Release OS: NT4 SP6a
Private report: No CVE-ID: None
 [2000-06-07 19:04 UTC] fredo at pandora dot be
I'm using PHP4 binaries as supplied on www.php.net and the optimized php.ini - no extra modules.

When running the code a session file is succesfully created in save_path as set in the code. The file login_check.php contains no HTML, the second file does. When the second page, new_account.php, doesn't have the session_start() line nothing goes wrong.

As webserver I use Apache 1.3.12.

----------code snippet from login_check.php----------
<?
...more code...
session_save_path("i:/wise/webpage/tmp");
session_start();
session_register("account_name");

$account_name = $HTTP_POST_VARS["loginname"];
$account_pass = $HTTP_POST_VARS["loginpass"];

if (account_exists)
{
...more code...
}
else
{
 header("location: new_account.php");
 exit;
}
...more code...
?>
----------code snippet from new_account.php----------
<?
 session_start();
?>
<html>
<head>
...more html/code...
<p>Your account name : <? echo $account_name; ?></p>
...more html/code...
</body>
</html>

----------crashlog from drwatson----------
Microsoft (R) Windows NT (TM) Version 4.00 DrWtsn32
Copyright (C) 1985-1996 Microsoft Corp. All rights reserved.



Application exception occurred:
        App:  (pid=123)
        When: 6/7/2000 @ 19:2:29.435
        Exception number: c0000005 (access violation)

*----> System Information <----*
        Computer Name: WINTELBOX
        User Name: Administrator
        Number of Processors: 1
        Processor Type: x86 Family 6 Model 5 Stepping 2
        Windows Version: 4.0
        Current Build: 1381
        Service Pack: 6
        Current Type: Uniprocessor Free
        Registered Organization: Home Office
        Registered Owner: Home User

*----> Task List <----*
   0 Idle.exe
   2 System.exe
  21 SMSS.exe
  26 CSRSS.exe
  35 WINLOGON.exe
  41 SERVICES.exe
  44 LSASS.exe
  73 NDDEAGNT.exe
  79 EXPLORER.exe
  86 systray.exe
  88 mgaqdesk.exe
  93 LOADWC.exe
  96 tbcrksrv.exe
  98 winampa.exe
 100 createcd.exe
 102 SPOOLSS.exe
 110 AcroTray.exe
 117 frw.exe
 119 BCResident.exe
 126 mgasc.exe
 131 mgactrl.exe
 133 ooccsvc.exe
 137 RPCSS.exe
 142 vmnetbridge.exe
 149 VMNetDHCP.exe
  58 PSTORES.exe
 114 mstask.exe
  91 MDM.exe
 247 PDExplo.exe
 106 Apache.exe
 231 Apache.exe
  63 UEDIT32.exe
 172 Acrobat.exe
 235 IEXPLORE.exe
 123 php.exe
 251 DRWTSN32.exe
   0 _Total.exe

(00400000 - 00400000) 
(77f60000 - 77fbe000) dll\ntdll.dbg
(10000000 - 10000000) 
(77f00000 - 77f5e000) dll\kernel32.dbg
(776d0000 - 776d8000) dll\wsock32.dbg
(776b0000 - 776c4000) dll\ws2_32.dbg
(78000000 - 78040000) 
(77e70000 - 77ec5000) dll\user32.dbg
(77ed0000 - 77efc000) dll\gdi32.dbg
(77dc0000 - 77dff000) dll\advapi32.dbg
(77e10000 - 77e67000) dll\rpcrt4.dbg
(776a0000 - 776a7000) dll\ws2help.dbg
(77b20000 - 77bd7000) dll\ole32.dbg
(65340000 - 653d2000) oleaut32.dbg
(1f490000 - 1f4c5000) dll\ODBC32.dbg
(71590000 - 71617000) COMCTL32.dbg
(77c40000 - 77d7c000) dll\shell32.dbg
(77d80000 - 77db2000) dll\comdlg32.dbg
(77a90000 - 77a9b000) dll\version.dbg
(779c0000 - 779c8000) dll\lz32.dbg
(780a0000 - 780b2000) 
(1f5d0000 - 1f5e4000) dll\ODBCINT.dbg
...more...

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-06-08 22:17 UTC] andi at cvs dot php dot net
Try va.php.net/~andi/php-4.0.1dev-Win32.zip. This problem should be fixed. If it isn't then please open a new bug report.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 21 07:01:31 2024 UTC