From:             
Operating system: Windows XP
PHP version:      5.4.0beta1
Package:          CGI/CLI related
Bug Type:         Bug
Bug description:Basic authorization crashes Windows CLI web server

Description:
------------
The attached "Patch file" is actually a PHP program that shows the
problem.

Command line was: php -S 127.0.0.1:8000 -t \html

In a browser, goto http://localhost:8000/basic-auth-test.php

1. First error is that the browser's authorization request displays "at 0"
instead of "at Admin Area", meaning the PHP CLI server is not sending the
realm correctly.

2. Second error is that the PHP CLI server crashes when the browser sends
the Authorization: Basic <base64 userid:password>

Test script:
---------------
Patch file below is test script

Expected result:
----------------
Expect the PHP CLI server not to crash, and to see the following at the
browser:

Success!
You have been authorized as user: foo

Actual result:
--------------
Windows PHP CLI server crashes

-- 
Edit bug report at https://bugs.php.net/bug.php?id=60056&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=60056&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=60056&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=60056&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=60056&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=60056&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=60056&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=60056&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=60056&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=60056&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=60056&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=60056&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=60056&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=60056&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=60056&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=60056&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=60056&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=60056&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=60056&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=60056&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=60056&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=60056&r=mysqlcfg

Reply via email to