Edit report at https://bugs.php.net/bug.php?id=67107&edit=1
ID: 67107 Updated by: c...@php.net Reported by: asainnp at gmail dot com Summary: Space in header "Accept-Encoding" -Status: Open +Status: Not a bug Type: Bug Package: PECL Operating System: linux PHP Version: 5.5.11 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: If this is still an issue for you, please report that in the proper bug tracker[1], or even better yet, submit a pull request[2]. [1] <https://pear.php.net/bugs/> [2] <https://github.com/pear/pear-core/pulls> Previous Comments: ------------------------------------------------------------------------ [2014-04-22 04:35:28] asainnp at gmail dot com correction: sed -i 's/Accept-Encoding:\\r\\n/Accept-Encoding: \\r\\n/g' $target ------------------------------------------------------------------------ [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 -- PECL development discussion Mailing List (https://pecl.php.net/) To unsubscribe, visit: https://www.php.net/unsub.php