php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31468 Calling sequence getMyUid() <-> get_current_user() crashes PHP
Submitted: 2005-01-10 12:10 UTC Modified: 2005-01-10 13:56 UTC
From: volker at puttrich dot net Assigned:
Status: Closed Package: Reproducible crash
PHP Version: 5.0.2 OS: Win2k SP4
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: volker at puttrich dot net
New email:
PHP Version: OS:

 

 [2005-01-10 12:10 UTC] volker at puttrich dot net
Description:
------------
Calling functions "getMyUid()" followed by "get_current_user()", or vice versa, crashes the following environment...

Server software as reported by PHP:
Apache/2.0.52 (Win32) mod_perl/1.99_16 Perl/v5.8.4 PHP/5.0.2 mod_ssl/2.0.52 OpenSSL/0.9.7d mod_python/3.1.3 Python/2.3.3

The OS used is Win2k SP4 including all available patches.

NOTE: The crash also occurs when "get_current_user()" is used in combination with "getMyGid()", "getMyPid()" and probably other related functions.

Reproduce code:
---------------
<?php

	echo("Crash test<br />\n");
	$sUser = get_current_user();
	$nUID = getmyuid();
	echo("Result, get_current_user(): ". $sUser ." / ". $nUID);

?>

Expected result:
----------------
Crash test
Result, get_current_user(): SYSTEM / 0


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-01-10 13:52 UTC] volker at puttrich dot net
Sorry, but I made a mistake when I was analyzing this bug.

The crash will always happen as soon as the function "get_current_user()" is called. It doesn't have to do anything with the other functions I mentioned above.

The problem I've had seemed to be Apache, which takes forever to restart on my machine. Therefore I got a little bit confused when commenting out certain lines of code.

You may close this report if you wish to. I think there is another report regarding the crash with "get_current_user()" - maybe you should reopen it, if closed, since the bug is still there.

Sorry again...
 [2005-01-10 13:56 UTC] tony2001@php.net
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at 
http://www.php.net/downloads.php


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Sep 11 12:01:27 2024 UTC