|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-06-06 19:46 UTC] chrissavery at gmail dot com
Description:
------------
using gzopen to open remote files. has worked fine in php 4.3.11
after upgrade to 5.1.4 I get failure with REQUEST METHOD not handled. I can see that it is because the reuest method is stated as ET and not GET as it should be. so seems like some kind of buffer overrun perhaps.
fopen works fine. but fopen('compress.zlib://.. also fails the same way.
reverted back to 4.3.11 and tested again and it works fine there.
currently this will prevent me from migrating to php 5
Reproduce code:
---------------
gzopen("http://my.example.com/mods/$f-$site.gz", 'rb')
where in my exact case the $f is 'features' and $site is '0'
Expected result:
----------------
open the file ready to read contents.
Actual result:
--------------
error indicating HTTP request is bad.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 05:00:01 2025 UTC |
have just tried same php cmd line call to your server. result was same: C:\Documents and Settings\Chris>php -r "var_dump(gzopen('http://tony2001.phpclub .net/3.php.gz','r'));" Warning: gzopen(http://tony2001.phpclub.net/3.php.gz): failed to open stream: HT TP request failed! HTTP/1.0 501 Method Not Implemented in Command line code on line 1 bool(false)