PECL

How to update timezonedb in PHP (updating timezones info)?

笑着哭i 提交于 2019-11-27 04:42:46
问题 phpinfo() shows our system to be using ""Olson" Timezone Database Version 2010.3". I think that is now out of date, but can't locate an authoritative location which can confirm that. (a) Can I update the timezones info for PHP as a whole? (b) If so, how do I update this? I saw the instructions at http://www.electrictoolbox.com/correct-php-timezone/ where it says that, after installing the appropriate module, it says I have to: You should add "extension=timezonedb.so" to php.ini Do we need to

Issue in installing php7.2-mcrypt

≡放荡痞女 提交于 2019-11-27 00:39:02
As I'm trying to load mcrypt extension module from PHP 7.2.X version. So I tried to make use of PECL library that is compatible to the current version of my PHP, in order to get installed and followed this link: Installing mcrypt on PHP 7.2 during installation! These below are the result's obtained after executing certain commands on the terminal. root@YYY:/var/www/html/orocrm# apt install php-pear Reading package lists... Done Building dependency tree Reading state information... Done The following package was automatically installed and is no longer required: libllvm4.0 Use 'sudo apt

“PHP Fatal error: Class 'HttpRequest' not found”

别来无恙 提交于 2019-11-26 22:35:26
I've been stuck trying to solve this problem in many ways, reading a lot of posts but still having no luck. I work on a Mac, OSX 10.7 Lion, and I'm writing a plugin for a WordPress site (php files) using MAMP, and at one point I have to make an HTTP request: $request = new HttpRequest('something'); $request->setMethod(HTTP_METH_GET); There's an error when executing this request and when I checked the log file, here's the message: "PHP Fatal error: Class 'HttpRequest' not found in (the_php_file)" I've already installed PEAR, PECL and the HTTP extension (pecl_http), Xcode and its command line

Having problems while try to install OAUTH with PECL in MAMP on mac OS lion

空扰寡人 提交于 2019-11-26 21:44:18
i am new to setting php servers, and i had go though other related post, seems like nobody have the same error as i have. I am using MAMP 2.0.2, and running PHP 5.3.6, and I was trying to install oAuth on my local MAMP, using following commands: $ cd /Applications/MAMP/bin/php/php5.3.6/bin $ ./pecl install oauth however, it return such error: Notice: unserialize(): Error at offset 276 of 1133 bytes in Config.php on line 1050 ERROR: The default config file is not a valid config file or is corrupted. What is happening? PECL is bundled in MAMP, which should be working out of the box.... Update: I

Installing pecl and pear on OS X 10.11 El Capitan, macOS 10.12 Sierra, macOS 10.13 High Sierra (< 10.13.3)

痴心易碎 提交于 2019-11-26 15:24:00
问题 So it looks like the new 'System Integrity Protection' lockdown of /usr (among other directories) makes pear and pecl a non-starter. Has anyone found a workaround short of disabling it? 回答1: There's a much easier way — no need to disable SIP or download your own copy: sudo php /usr/lib/php/install-pear-nozlib.phar -d /usr/local/lib/php -b /usr/local/bin 回答2: You shouldn't install binaries into system /usr , use /usr/local instead. The pecl and pear commands should come along with PHP when

$PHP_AUTOCONF errors on mac os x 10.7.3 when trying to install pecl extensions

谁都会走 提交于 2019-11-26 15:08:30
问题 I am trying to setup my machine with pecl_http and memcache and in both cases, I get similar errors. This is on MAC OS X 10.7.3 (lion) and I also have XCODE installed on it. I also installed Zend Server community edition before running these commands and have CFLAGS='-arch i386 -arch x86_64' environment variables set. So please help with what I need to do bash-3.2# **sudo pecl install pecl_http-1.7.1** downloading pecl_http-1.7.1.tgz ... Starting to download pecl_http-1.7.1.tgz (174,098 bytes

构建swoole docker镜像(基于alpine基础镜像)

安稳与你 提交于 2019-11-25 17:03:38
这里默认你已经安装好docker,并准备好以下环境 一.环境 Ubuntu 18.04.1 LTS php:7.2.4-cli-alpine3.7 ( https://hub.docker.com/_/php/ 拉取) swoole-4.2.1 ( https://pecl.php.net/package/swoole 下载) docker version $ docker version Client: Version: 18.05.0-ce API version: 1.37 Go version: go1.9.5 Git commit: f150324 Built: Wed May 9 22:16:13 2018 OS/Arch: linux/amd64 Experimental: false Orchestrator: swarm Server: Engine: Version: 18.05.0-ce API version: 1.37 (minimum version 1.12) Go version: go1.9.5 Git commit: f150324 Built: Wed May 9 22:14:23 2018 OS/Arch: linux/amd64 Experimental: false 二.基于pecl构建 $ mkdir build-swoole &&