#50339 [NEW]: unreliable performance of authentication thru headers

From: Date: Mon, 30 Nov 2009 20:16:06 +0000
Subject: #50339 [NEW]: unreliable performance of authentication thru headers
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-6651@lists.php.net to get a copy of this message
From: premanand_prabhu at rediffmail dot com Operating system: Windows/apache PHP version: 5.2.11 PHP Bug Type: Website problem Bug description: unreliable performance of authentication thru headers Description: ------------ // autho.php <? if( (empty($PHP_AUTH_PW)) || (empty($PHP_AUTH_USER)) || ($PHP_AUTH_USER!='ramesh') || ($PHP_AUTH_PW!='asdf')) { header('WWW-Authenticate: Basic realm="my first autho"'); exit(" authentication required "); } ?> // below is the code used to include the aotho.php in the //below script //{{QUESTION:}} At times the code works fine and //asks for username / password before page is display but not //at all times. sometimes it just shows up the page //without username / password. Any reasons?? pls guide!!tks {{QUESTION:}} <? require_once("autho.php"); ?> Reproduce code: --------------- --- From manual page: faq.using --- -- Edit bug report at http://bugs.php.net/?id=50339&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50339&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50339&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50339&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50339&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50339&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50339&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50339&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50339&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50339&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50339&r=support Expected behavior: http://bugs.php.net/fix.php?id=50339&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50339&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50339&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50339&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50339&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=50339&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50339&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50339&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50339&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50339&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50339&r=mysqlcfg

« previous php.webmaster (#6651) next »