I try to avoid anything PECL as it requires code to be compiled on the server and is machine-specific.
If you are working on a development team or use a code repository, it's better practice to keep all dependencies within each project, and PECL does not allow for this.
You might want to consider replacing the sample PHP glue code provided by Digium with an alternative which avoids use of PECL libraries. I made one which uses the HTTP_Request2 PEAR library instead of the HTTP PECL extension.
You can also keep PEAR code locally within a project by creating a project local working directory for PEAR, then overriding the base include path so that the PEAR code is found, loads first, etc. This keeps all dependent code in the project.
If there's interest I'll more detailed instructions/code.
Cheers.
Statistics : Posted by back2front • on Wed Apr 08, 2015 3:41 pm • Replies 1 • Views 63
If you are working on a development team or use a code repository, it's better practice to keep all dependencies within each project, and PECL does not allow for this.
You might want to consider replacing the sample PHP glue code provided by Digium with an alternative which avoids use of PECL libraries. I made one which uses the HTTP_Request2 PEAR library instead of the HTTP PECL extension.
You can also keep PEAR code locally within a project by creating a project local working directory for PEAR, then overriding the base include path so that the PEAR code is found, loads first, etc. This keeps all dependent code in the project.
If there's interest I'll more detailed instructions/code.
Cheers.
Statistics : Posted by back2front • on Wed Apr 08, 2015 3:41 pm • Replies 1 • Views 63