From:             eward dot song at gmail dot com
Operating system: mac os x
PHP version:      5.4Git-2012-09-17 (Git)
Package:          Built-in web server
Bug Type:         Bug
Bug description:built in server can not file_get_contents file of the same 
domain

Description:
------------
the situation is that: 
run a php build in server, use commend: php -S 127.0.0.1:8081, and in you
current 
dir, there are two file: a.php and b.php . a.php use file_get_contents
catch a 
file:
<?php
echo file_get_contents('http://127.0.0.1:8081/b.php');
?>
b.php just  print string 'hello world'. When run the a.php through the web

browser, you can find that, the build in server return 'failed to open
stream: 
HTTP request failed!'.
If just browser the b.php, you can get hello world current, and if the file
at 
a.php is not a http request which domain is the same of a.php, such as
'b.php', 
or 'http://google.com/', server is all right.
This kind problem do not occur when use apache as cgi.


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

Reply via email to