ID:               35004
 User updated by:  jmcentire at jackhenry dot com
 Reported By:      jmcentire at jackhenry dot com
-Status:           Feedback
+Status:           Closed
 Bug Type:         Variables related
 Operating System: Windows server 2003
 PHP Version:      5.0.5
 New Comment:

Sorry - this appears to be a problem only under MediaWiki. When ran in
a test.php by itself:

<?php
var_dump($_SERVER["AUTH_USER"]);
?>

returns the correct value with the seperator. I'll close this and
pursue this with mediawiki.


Previous Comments:
------------------------------------------------------------------------

[2005-10-27 22:26:46] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.



------------------------------------------------------------------------

[2005-10-27 22:20:48] jmcentire at jackhenry dot com

>> var_dump($_SERVER["AUTH_USER"]);

prints

string(13) "DDDDDDuuuuuuu"

where DDDDDD is the 6 character domain name
and uuuuuuu is the 7 character user name
No seperator

------------------------------------------------------------------------

[2005-10-27 21:44:00] [EMAIL PROTECTED]

what does this code print:
var_dump($_SERVER["AUTH_USER"]);
?

------------------------------------------------------------------------

[2005-10-27 21:40:39] jmcentire at jackhenry dot com

Description:
------------
php_info() shows server variable AUTH_USER in correct format:  
DOMAIN\username

However, the $_server["AUTH_USER"] in code returns "DOMAINusername" (no
seperator).

   

Reproduce code:
---------------
list($domain,$username) = split('[\]',$_SERVER["AUTH_USER"],2);
print "Domain: $domain UserName: $username";

Expected result:
----------------
Domain: DOMAIN UserName: username

Actual result:
--------------
Domain: DOMAINusername UserName:      


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=35004&edit=1

Reply via email to