From:             asainnp at gmail dot com
Operating system: linux
PHP version:      5.5.11
Package:          PECL
Bug Type:         Bug
Bug description:Space in header "Accept-Decoding"

Description:
------------
I had 3 various installations with (debian, ubuntu and slackware) and
versions of php >=5.4, one is 5.5.9 ...pecl version on is: 1.9.4
and all of them reported ERROR on command: 
$ pecl install oci8
no releases available for package "pecl.php.net/oci8"
...
after searching for reason i found solution:
adding space to empty "Accept-Encoding:" request header inside file
~/PEAR/REST.php, solved the problem on all 3 systems that i have...
install, download, remote-info... all works now (and before - not)
...
i am hoping that this bug was not already known...
...
it is related to all functionalities of pear/pecl, not just oci8
package.
...
maybe it is http server fault and not a bug (header can be empty) but it
is better to prevent failures with this space added.

Test script:
---------------
when someone has this problem (and surely lot of people must reach it),
this bash script will solve it:

#!/bin/bash
target=`pecl config-get php_dir`/PEAR/REST.php
        [ -f "$target" ] || { echo file $target not found; exit; }
sed -i 's/Accept-Encoding:\\r\\n/AcceptEncoding: \\r\\n/g' $target




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


-- 
PECL development discussion Mailing List (http://pecl.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to