Fixed in CVS now. Thanks for reporting this :-) --Wez.
On 10/12/02, "Mike Robinson" <[EMAIL PROTECTED]> wrote: > <?php > $fp = fopen("http://www.slashdot.org/slashdot.rdf",'r'); > ?> > > In 4.2.3 this works as expected. It redirects to > http://slashdot.org/slashdot.rdf (note the 'www.' is gone). > > In 4.3.0pr1 this results in: > > Warning: fopen(http://www.slashdot.org/slashdot.rdf) [function.fopen]: > failed to create stream: HTTP request failed! HTTP/1.1 301 Moved > Permanently in /home/www/htdocs/test/fopen/slash.php on line 2 > > Regards > Mike Robinson > > > > -----Original Message----- > > From: Wez Furlong [mailto:[EMAIL PROTECTED]] > > Sent: Saturday, October 12, 2002 1:40 PM > > To: Mike Robinson > > Cc: [EMAIL PROTECTED]; 'Wez Furlong' > > Subject: RE: [PHP-DEV] Streams Problems > > > > > > Works for me using latest CVS. > > > > <?php > > $fp = fopen("http://site.that.redirects", "r"); > > fpassthru($fp); > > var_dump(stream_get_meta_data($fp)); > > ?> > > > > The var_dump shows that PHP is following the redirects. > > There used to be a bug like that, but it's been fixed for a > > couple of weeks now. > > > > How about posting a script that reproduces the problem, and > > the error output? > > > > --Wez. > > > > On 10/12/02, "Mike Robinson" <[EMAIL PROTECTED]> wrote: > > > Im not sure if this is related, but using fopen or fsockopen to > > > retrieve a document that sends a redirect header (in this > > case a 302 > > > Moved Permanently trying to pull the slashdot headlines > > rdf/xml file) > > > fails. Worked fine in 4.2.3. This is the case with 4.3.0pr1 and CVS > > > for a little while now. > > > > > > > > > > -- > > PHP Development Mailing List <http://www.php.net/> > > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php