#35004 [Opn->Fbk]: $_server["AUTH_USER"] is not including seperator between domain and user

From: Date: Thu, 27 Oct 2005 19:44:00 +0000
Subject: #35004 [Opn->Fbk]: $_server["AUTH_USER"] is not including seperator between domain and user
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-87159@lists.php.net to get a copy of this message
ID: 35004 Updated by: tony2001@php.net Reported By: jmcentire at jackhenry dot com -Status: Open +Status: Feedback Bug Type: Variables related Operating System: Windows server 2003 PHP Version: 5.0.5 New Comment: what does this code print: var_dump($_SERVER["AUTH_USER"]); ? Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#87159) next »