|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67107 Space in header "Accept-Encoding"
Submitted: 2014-04-22 04:30 UTC Modified: 2021-09-09 13:38 UTC
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: asainnp at gmail dot com Assigned: cmb (profile)
Status: Not a bug Package: PECL (PECL)
PHP Version: 5.5.11 OS: linux
Private report: No CVE-ID: None
 [2014-04-22 04:30 UTC] asainnp at gmail dot com
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 ""
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:

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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2014-04-22 04:35 UTC] asainnp at gmail dot com
-Summary: Space in header "Accept-Decoding" +Summary: Space in header "Accept-Encoding"
 [2014-04-22 04:35 UTC] asainnp at gmail dot com

sed -i 's/Accept-Encoding:\\r\\n/Accept-Encoding: \\r\\n/g' $target
 [2021-09-09 13:38 UTC]
-Status: Open +Status: Not a bug -Assigned To: +Assigned To: cmb
 [2021-09-09 13:38 UTC]
If this is still an issue for you, please report that in the
proper bug tracker[1], or even better yet, submit a pull

[1] <>
[2] <>
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Sep 17 14:03:37 2021 UTC