PECL

How can I install the php memcached extension on Docker's PHP7 Alpine image?

ぐ巨炮叔叔 提交于 2019-12-07 01:01:05
问题 The official php7 docker image has the following example: FROM php:7.0-fpm RUN apt-get update && apt-get install -y libmemcached-dev \ && pecl install memcached \ && docker-php-ext-enable memcached I'm trying to use FROM php:7.0-fpm-alpine : RUN apk add --update --no-cache libmemcached-dev RUN pecl install memcached && docker-php-ext-enable memcached PECL gives this error: pecl/memcached requires PHP (version >= 5.2.0, version <= 6.0.0, excluded versions: 6.0.0), installed version is 7.0.13

Trying to install ssh2 on php

旧时模样 提交于 2019-12-06 09:28:51
问题 Firstly I'm running PHP 5.3.3, CentOS 5.7 (2.6.18-274.3.1.el5xen) Secondly, I basically have no idea what I'm doing... sorry! First of all I installed libssh2 from http://www.libssh2.org/. Ran configure, make, make install. Don't really understand all of this stuff, but following online instructions seemed to work. Then ran pecl install ssh2 So far so good. Added the relevant extension line to php.ini, as instructed. Restarted apache: service httpd restart All good. But then can't find any

PHP Fatal error: Class 'HttpRequest' not found

限于喜欢 提交于 2019-12-06 03:43:01
问题 I was wondering how I can't get rid of this error. I have a PHP 5.3 running on a Windows Server. In one of my file, I need to do a HttpRequest. The problem is that I need a specific *.dll (pecl_http.dll) that I can't find. Is there another way to do this, or has someone this *.dll for PHP 5.3 ? Thanks for your help Alexandre 回答1: If you look down the list here: http://downloads.php.net/pierre/ you'll see 4 versions of php_http. The 4 versions are all options of 'non-thread-safe' and 'thread

PHP ssh2_exec channel exit status?

心不动则不痛 提交于 2019-12-06 02:06:13
问题 Ok, so pecl ssh2 is supposedly a wrapper for libssh2. libssh2 has libssh2_channel_get_exit_status. Is there ANY way to get this information? I NEED: -STDOUT -STDERR -EXIT STATUS I get all but exit status. A lot of people throw around phplibsec when ssh is brought up, but I see no way of getting stderr or the channel exit status out of that either:/ Has anybody been able to get all three? 回答1: So, first thing is first: NO, they didn't implement libssh2_channel_get_exit_status. Why? Beyond me.

SSH2 for PHP7 MacOS?

自闭症网瘾萝莉.ら 提交于 2019-12-05 16:04:26
When trying to use ssh2_sftp($this->con); PHP 7.1.7 thinks Im looking for a function in the class. After some reading, I found that SSH2 needs to be installed from PECL ( http://php.net/manual/en/wrappers.ssh2.php ) When I went to do that, I got the following error: pecl/ssh2 requires PHP (version >= 4.0.0, version <= 6.0.0), installed version is 7.1.7 No valid packages found install failed Anyone have any ideas on how to get this to run on MacOs 10.13.3 (17D47) with PHP 7.1.7? Thanks in advance! Nigel Atkinson I managed to install php-ssh2 on MacOS High Sierra. First I had to install libssh2

Upgrading Olson tz database natively implemented in PHP

梦想的初衷 提交于 2019-12-05 15:29:21
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 tz data at any given time. It's been pointed out that the timezonedb package in pecl will get me to

ZipArchive Library Is Not Enabled When Using PHPExcel

余生长醉 提交于 2019-12-05 10:17:48
I am using CodeIgniter and PHPExcel to read and write to excel files. Everything worked fine in localhost, but when I uploaded my PHP CodeIgniter application to the server in pagodabox I got the below message when I tried to read data from excel files. Fatal error: Uncaught exception 'Exception' with message 'ZipArchive library is not enabled' in /var/www/application/libraries/PHPExcel/Reader/Excel2007.php For writing, PHPExcel does provide PCLZip as an alternative to ZipArchive. You can configure it to use this by calling PHPExcel_Settings::setZipClass(PHPExcel_Settings::PCLZIP); But if you

PHP Fatal error: Class 'OAuth'

我怕爱的太早我们不能终老 提交于 2019-12-05 02:46:06
问题 I searched the site for hours looking for answer and nothing helped me. I’ve installed PHP/Apache2/PECL/OAuth and edited php.ini for extension=oauth . I get this error everything I type "php example.php" I'd set the token and everything required in example.php PHP Fatal error: Class 'OAuth' not found in /home/twitter/TwitterAutoReply.php on line 22 My php files is example.php and TwitterAutoReply.php https://raw.github.com/gist/820281/303a61ee9b324070e803e51806552e64fccfdd4c/example.php and

Problems installing Symfony 2.4.1 lib-icu 4.4 dependency

ⅰ亾dé卋堺 提交于 2019-12-05 00:28:12
问题 I'm having a problem identical to this one, but the solution provided there isn't working for me. I downloaded the Symfony 2.4.1 Standard Vendors with Vendors package from the Symfony Downloads Page. After extracting the files and downloading composer.phar, I run php composer.phar install and get this error: Loading composer repositories with package information Installing dependencies (including require-dev) from lock file Your requirements could not be resolved to an installable set of

sudo pecl install apc error on os x lion

一曲冷凌霜 提交于 2019-12-05 00:02:30
I tried installing APC with pecl on OS X Lion ( sudo pecl install apc ) and it complained about a missing pcre.h file: In file included from /private/tmp/pear/temp/APC/apc.c:44: /usr/include/php/ext/pcre/php_pcre.h:29:10: fatal error: 'pcre.h' file not found #include "pcre.h" So I used MacPorts to install the pcre package ( sudo port install pcre ) but it still complains. How can I fix this? I think this is because MacPorts installs the header files in a different location from where pecl expects them. To fix this error, I symlinked pcre.h to /usr/include : sudo ln -s /opt/local/include/pcre.h