PECL

Configuring PHP on Tomcat gives exception: UnsatisfiedLinkError

£可爱£侵袭症+ 提交于 2019-12-12 14:27:39
问题 I have been trying to use PHP on Tomcat (don't ask why, I just have to), and have been following the Configure PHP with Tomcat and several tutorials given for PHP with PECL & Tomcat. I've done most of the things required by the tutorials, like setting all the environment variables that are required, but I still run into errors such as the one shown below, on startup: javax.servlet.ServletException: Servlet.init() for servlet php threw exception org.apache.catalina.valves.ErrorReportValve

Enabling PHP Code Assist for different PECL extensions in Eclipse

牧云@^-^@ 提交于 2019-12-12 11:02:46
问题 I'm using a few PECL installed extensions in my PHP environment. I am developing with Eclipse and it would be useful to have Eclipse's code assist / auto-completion support for these extensions. This procedure worked quite well for the Solr extension: I additionally downloaded the latest solr-php PECL sources and put them into a separate folder. I added this certain folder as an "external folder" to one of my User Libs (Prefrences -> PHP -> PHP Libraries). I added the user lib to my project's

Upgrading Olson tz database natively implemented in PHP

早过忘川 提交于 2019-12-12 09:41:56
问题 I'm working on a site that makes heavy use of time zones which needs to be on the bleeding edge of the absolute latest tz information available (which I already get through the tz mailing list). What I don't know is how to get the PHP installations running on my development machine and my web host to use more up-to-date tz data instead of the older data already on them. This isn't as simple as just upgrading PHP, since even the newest versions of PHP won't necessarily have the absolute latest

SSL issue after pear channel-update pear.php.net

安稳与你 提交于 2019-12-12 07:19:10
问题 I have XAMPP on Windows7. after update the pear.php.net channel with: pear channel-update pear.php.net and try for installing new packages, for example pecl install zmq , encountered with following message and can not install any package: Connection to 'ssl://pecl.php.net:443' failed: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? I very searched in net and tried to solve it but cannot resolve it. can anyone help me for resolve that and what

Installing the Pecl Oauth Module on MAMP OSX 10.6

*爱你&永不变心* 提交于 2019-12-12 01:33:45
问题 Ok, so after a day of messing about with various things such as Fink, Macports, Pecl, etc. I have managed to install the oauth.so module on OSX. However, I use MAMP locally, which I think uses its own version (i.e. in its own location) of PHP, and the module has installed to the main system version of PHP? So I have run the version of PECL from the MAMP folders: sudo /Applications/MAMP/bin/php5.2/bin/pecl install oauth But it seems to have installed it in the generic folder anyway ... Build

Swoole make failed ubuntu16.04

故事扮演 提交于 2019-12-11 15:27:15
问题 I am trying to install SWOOLE on my Ubuntu-16.04 I tried this sudo pecl install swoole But am getting a long list of errors( Skipped some lines ) In file included from /tmp/pear/temp/swoole/php_swoole.h:156:0, from /tmp/pear/temp/swoole/swoole.c:16: /tmp/pear/temp/swoole/php7_wrapper.h: In function 'sw_zend_is_callable': /tmp/pear/temp/swoole/php7_wrapper.h:238:5: error: unknown type name 'zend_string' zend_string *key = NULL; ^ /tmp/pear/temp/swoole/php7_wrapper.h:239:5: warning: passing

php cannot load pecl http extension

南笙酒味 提交于 2019-12-11 14:06:35
问题 I have installed pecl_http on a PLESK server (which seems to be successful) but for some reason, the http extension will not load into PHP. var_dump(extension_loaded("http")); gives me bool(false). pecl info pecl_http gives me a lot of info and if I run php -me http is also listed. php -i | grep "http_request" gives me: http_request => N/A => 0 => 0 http_request_datashare => GLOBAL => 1 => 0 http_request_pool => N/A => 0 => 0 and if I run pecl run-tests -p pecl_http I get a lot of FAILs and I

ERROR: The DSP mongodb.dsp does not exist

冷暖自知 提交于 2019-12-11 12:22:57
问题 I am trying to install the MongoDB driver on windows with pecl like so : pecl install mongodb-beta and receive this error : ERROR: The DSP mongodb.dsp does not exist. From a web search it seems this is because it is not thread safe but I can't seem to find a thread safe package. 回答1: You will have to download the library manually if you are on a windows box: https://pecl.php.net/package/mongodb 来源: https://stackoverflow.com/questions/33846389/error-the-dsp-mongodb-dsp-does-not-exist

how to instal mongodb php driver on windows 8 and wamp server?

别说谁变了你拦得住时间么 提交于 2019-12-11 12:03:30
问题 I am trying to instal mongodb driver in php. I am using wamp server with php version 5.5.12. I have tried it alot but don't know what am I doing wrong. Here is what I did: Step 1: I downloaded the mongodb driver package from this link: http://pecl.php.net/package/mongo/1.5.5/windows I downloaded 5.5 Non Thread Safe (NTS) x64 under PHP 5.5 tab. Step 2: I unzipped the downloaded file and copied the php_mongo.dll and php_mongo.pdb files into C:\wamp\bin\php\php5.5.12\ext Step 3: I included this

How to install gearman extension on MAMP

微笑、不失礼 提交于 2019-12-11 10:58:23
问题 Has anyone ever tried and succeeded to install gearman extension on MAMP? I am trying to do it on MAMP 2.x on a MAC OS X 10.6.8 回答1: You can install the server with homebrew brew install gearman Then download the PECL package here http://pecl.php.net/package/gearman and compile it tar xzf gearman-X.Y.tgz cd gearman-X.Y phpize ./configure make sudo make install Then copy/paste the gearman.so from your default extensions folder (for me /usr/lib/php/extensions/) to your MAMP extensions folder