php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15107 Usage of sessions crashes PHP.
Submitted: 2002-01-18 15:13 UTC Modified: 2002-04-10 19:08 UTC
From: php at oneaddone dot co dot uk Assigned:
Status: Closed Package: Session related
PHP Version: 4.1.1 OS: Windows 98
Private report: No CVE-ID: None
 [2002-01-18 15:13 UTC] php at oneaddone dot co dot uk
This script (or any script that involves sessions) produces the error message below:

<?  
session_start( ); 
session_register("username","password"); 
?> 


PHP caused an invalid page fault in
module PHP4TS.DLL at 0177:10054373.
Registers:
EAX=00000028 CS=0177 EIP=10054373 EFLGS=00010206
EBX=00760320 SS=017f ESP=0063fa48 EBP=100a01c0
ECX=00000015 DS=017f ESI=00760320 FS=59d7
EDX=00764f10 ES=017f EDI=101290a0 GS=0000
Bytes at CS:EIP:
8b 10 8d 4c 24 1c 51 52 e8 e0 51 05 00 8d 44 24 
Stack dump:
101290a0 00760320 00760320 00000001 00000001 00760320 1005430d 00760320 00760320 100544fb 00760320 0078d410 100a01e9 00000001 0000000a 00760320 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-18 15:17 UTC] php at oneaddone dot co dot uk
I am using PHP 4.1.1. with apache 1.3.22 on Win98.

This script (or any script that involves sessions) produces the error
message below:

<?  
session_start( ); 
session_register("username","password"); 
?> 

PHP caused an invalid page fault in
module PHP4TS.DLL at 0177:10054373.
Registers:
EAX=00000028 CS=0177 EIP=10054373 EFLGS=00010206
EBX=00760320 SS=017f ESP=0063fa48 EBP=100a01c0
ECX=00000015 DS=017f ESI=00760320 FS=59d7
EDX=00764f10 ES=017f EDI=101290a0 GS=0000
Bytes at CS:EIP:
8b 10 8d 4c 24 1c 51 52 e8 e0 51 05 00 8d 44 24 
Stack dump:
101290a0 00760320 00760320 00000001 00000001 00760320 1005430d 00760320
00760320 100544fb 00760320 0078d410 100a01e9 00000001 0000000a 00760320 

 

 [2002-01-18 15:48 UTC] php at oneaddone dot co dot uk
Sorry, the reason was because the /tmp folder was missing.


 [2002-01-18 18:10 UTC] tjayah at dplanet dot ch
<?php
function checkUser() 
 	{
	global $session, $logged_in;
	$session[logged_in] = false;
	$ecust_row = getRow( "etable", "id", $session[id] );
	$tt=$ecust_row;
	
	if ( !$ecust_row || $ecust_row[duser]!=$session[login] ||
		  $ecust_row[dpass]!=$session[password] )
		{
		print $tt;
		//header( "Location: login.php" );
		exit;
		}
		$session[logged_in] = true;
		return $ecust_row;	
	}
?>

Please help me 

The function code that i have given it dosent give any error messages but It passes all verfication like username and password from the database but after it call the checkuser function withou giving any error messages it return's to login menu.

if ( !$ecust_row || $ecust_row[duser]!=$session[login] ||
		  $ecust_row[dpass]!=$session[password] )
		{
		print $tt;
		//header( "Location: login.php" );
		exit;
		}
It goes through only this verification not 

$session[logged_in] = true;
	return $ecust_row;	

Tuan
 [2002-01-19 00:51 UTC] yohgaki@php.net
it shouldn't crash. There is report for this problem.
Status = Duplicate
 [2002-04-10 19:08 UTC] sniper@php.net
This bug has been fixed in CVS.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 14:01:30 2024 UTC