|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[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
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 08:00:02 2025 UTC |
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<?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