Bug #67107 [Opn]: Space in header "Accept-Encoding"

From: Date: Tue, 22 Apr 2014 04:35:28 +0000
Subject: Bug #67107 [Opn]: Space in header "Accept-Encoding"
References: 1  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-11737@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67107&edit=1 ID: 67107 User updated by: asainnp at gmail dot com Reported by: asainnp at gmail dot com -Summary: Space in header "Accept-Decoding" +Summary: Space in header "Accept-Encoding" Status: Open Type: Bug Package: PECL Operating System: linux PHP Version: 5.5.11 Block user comment: N Private report: N New Comment: correction: sed -i 's/Accept-Encoding:\\r\\n/Accept-Encoding: \\r\\n/g' $target Previous Comments: ------------------------------------------------------------------------ [2014-04-22 04:30:59] asainnp at gmail dot com 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 this bug report at https://bugs.php.net/bug.php?id=67107&edit=1

« previous php.pecl.dev (#11737) next »