From:             volker at puttrich dot net
Operating system: Win2k SP4
PHP version:      5.0.2
PHP Bug Type:     Reproducible crash
Bug description:  Calling sequence getMyUid() <-> get_current_user() crashes PHP

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


-- 
Edit bug report at http://bugs.php.net/?id=31468&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=31468&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=31468&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=31468&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=31468&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=31468&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=31468&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=31468&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=31468&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=31468&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=31468&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=31468&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=31468&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=31468&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=31468&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=31468&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=31468&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=31468&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=31468&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=31468&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=31468&r=mysqlcfg

Reply via email to