| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [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
  [2021-09-09 13:38 UTC] cmb@php.net
 
-Status:      Open
+Status:      Not a bug
-Assigned To:
+Assigned To: cmb
  [2021-09-09 13:38 UTC] cmb@php.net
  | 
    |||||||||||||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 10:00:02 2025 UTC | 
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