php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31421 get_current_user call crashes with Access Violation at 01CE1DAD
Submitted: 2005-01-05 23:50 UTC Modified: 2005-01-17 18:36 UTC
Votes:3
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: steve dot gilbreth at autodesk dot com Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 4.3.9 OS: Win 2000 SP4
Private report: No CVE-ID: None
 [2005-01-05 23:50 UTC] steve dot gilbreth at autodesk dot com
Description:
------------
Call to get_current_user crashes when page is refreshed.  I have to restart IIS 5.0 and the call will work 1st time only.  If I refresh the page then ...ka-boom!

Reproduce code:
---------------
<?php
echo "<html>
<head>
<title>test</title>
</head>
<body>";
echo "DEBUG: before call to get_current_user ...";
$cu = get_current_user();
echo "<br>DEBUG: after call. $cu";
echo "</body>
</html>";
?>

Expected result:
----------------
DEBUG: before call to get_current_user ...
DEBUG: after call. userXX

Actual result:
--------------
PHP has encountered an Access Violation at 02271DAD DEBUG: before call to get_current_user ...

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-01-12 07:11 UTC] steve dot gilbreth at autodesk dot com
Tried to use http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
as new base C:/PHP directory.  This causes all pages to fail with 404 File not found error.  Same php.ini was used.
 [2005-01-12 07:18 UTC] steve dot gilbreth at autodesk dot com
Could this be related to Bug #30133 get_current_user crashes php-cgi.exe ??
 [2005-01-17 18:36 UTC] sniper@php.net
Yes, same bug. Fixed in CVS. And the fact that snapshot doesn't work for you is just an install error by you.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 01 07:01:30 2024 UTC