#37717 [NEW]: gzopen fails with http, bad request
| From: | chrissavery at gmail dot com | Date: | Tue, 06 Jun 2006 19:46:01 +0000 |
| Subject: | #37717 [NEW]: gzopen fails with http, bad request | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-98098@lists.php.net to get a copy of this message | ||
From: chrissavery at gmail dot com
Operating system: WinXP
PHP version: 5.1.4
PHP Bug Type: Zlib Related
Bug description: gzopen fails with http, bad request
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.
--
Edit bug report at http://bugs.php.net/?id=37717&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37717&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=37717&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37717&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=37717&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=37717&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=37717&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=37717&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=37717&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=37717&r=support
Expected behavior: http://bugs.php.net/fix.php?id=37717&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=37717&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=37717&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=37717&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37717&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=37717&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=37717&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=37717&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=37717&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=37717&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=37717&r=mysqlcfg