From:             
Operating system: Windows Vista
PHP version:      5.4SVN-2011-11-28 (snap)
Package:          Built-in web server
Bug Type:         Bug
Bug description:$_SERVER in embedded server under Windows is empty

Description:
------------
$_SERVER in embedded server under Windows is empty

A simple index.php

<?php

var_dump($_SERVER);



Run with the embedded server

 php -S 127.0.0.1:8080

Under Windows (wrong):

array(0) {

}

Under Linux (expected behavior, $_SERVER is populated):

array(18) {

  ["DOCUMENT_ROOT"]=>

  string(12) "/tmp/PHP_5_4"

  ["REMOTE_ADDR"]=>

  string(9) "127.0.0.1"

  ["REMOTE_PORT"]=>

  string(5) "58298"

  ["SERVER_SOFTWARE"]=>

  string(35) "PHP 5.4.0RC3-dev Development Server"

  ["SERVER_PROTOCOL"]=>

  string(8) "HTTP/1.1"

  ["SERVER_PORT"]=>

  string(4) "8080"

  ["REQUEST_URI"]=>

  string(1) "/"

  ["REQUEST_METHOD"]=>

  string(3) "GET"

  ["SCRIPT_NAME"]=>

  string(10) "/index.php"

  ["SCRIPT_FILENAME"]=>

  string(22) "/tmp/PHP_5_4/index.php"

  ["PHP_SELF"]=>

  string(10) "/index.php"

  ["HTTP_USER_AGENT"]=>

  string(23) "Wget/1.13.4 (linux-gnu)"

  ["HTTP_ACCEPT"]=>

  string(3) "*/*"

  ["HTTP_HOST"]=>

  string(14) "127.0.0.1:8080"

  ["HTTP_CONNECTION"]=>

  string(10) "Keep-Alive"

  ["REQUEST_TIME"]=>

  float(1322485593.4282)

  ["argv"]=>

  array(0) {

  }

  ["argc"]=>

  int(0)

}



Tested Windows version is the nightly php-5.4-nts-windows-vc9-x86-r319967

Tested Linux version is a checkout of r320088, branch PHP_5_4

(and it wasn't fixed on those revisions 121, they were to a different
subtree: phpdoc, pecl, or pear)


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

Reply via email to