How can I install a custom (patched) PECL extension?
        Posted  
        
            by 
                JKS
            
        on Server Fault
        
        See other posts from Server Fault
        
            or by JKS
        
        
        
        Published on 2011-01-06T19:37:32Z
        Indexed on 
            2011/01/06
            19:55 UTC
        
        
        Read the original article
        Hit count: 365
        
I'm trying to use the htscanner PECL extension on my CentOS 5/PHP 5.2.6 machine, but there's a bug in the latest version where a newline character is added to the end of every php_value directive.  This behavior causes my include_path and error_log values not to work.
The bug and the patch are documented on the PECL site: http://pecl.php.net/bugs/bug.php?id=16891
I've downloaded the latest version, applied the patch, and re-compressed the package — but I can't get the PECL installer to accept it — or any local package, for that matter.
I've tried every variation of the pecl install syntax that I can think of, and the only times I'm able to get it to work, it downloads an online copy first and ignores the local copy.
Can anyone recommend a method for installing a PECL extension from a local file? Thanks for your consideration.
© Server Fault or respective owner