php-extension

WARNING: Module ini file doesn't exist under /etc/php/7.0/mods-available

江枫思渺然 提交于 2019-12-21 03:35:31
问题 I have uninstalled php7 and all its modules from ubuntu, and when I try to reinstall the modules, I get the following error for each php module, and although the module is installed, because of this error, it is not activated and I cannot use them. Is the any way to solve this issue ? the error for each module(when installing): Not replacing deleted config file /etc/php/7.0/mods-available/intl.ini WARNING: Module [module name] ini file doesn't exist under /etc/php/7.0/mods-available WARNING:

PHP. Extension. Call existing PHP function

放肆的年华 提交于 2019-12-20 09:37:26
问题 So I decided to write an extension for php. Everything seems to be fine except I'm stuck on a tiny problem. I have php-5.4.9 source codes. There is file ext/standard/mail.c with awesome function PHPAPI int php_mail(char *to, char *subject, char *message, char *headers, char *extra_cmd TSRMLS_DC) In my extension, in acme.c I have includes ... #include "php.h" #include "ext/standard/php_mail.h" #include "php_ini.h" ... So php_mail feels good and works fine. But, obviously, I want to use the

How to install mcrypt on Docker

自古美人都是妖i 提交于 2019-12-19 19:47:42
问题 I have a Docker Container with Phalcon3 and php 7. I am trying to install the php extension Mcrypt without luck. If I do ssh to the container, and execute: apt-get update apt-get install php7.0-mcrypt I get the following: E: Unable to locate package php7.0-mcrypt E: Couldn't find any package by regex 'php7.0-mcrypt' Is there a way to get it installed? 回答1: Lets look at official manual for php docker image Section PHP Core Extensions For example, if you want to have a PHP-FPM image with iconv,

Locate available (not loaded) PHP extensions

拈花ヽ惹草 提交于 2019-12-19 16:54:07
问题 I need a way to find all the available PHP extensions whether they are loaded or not . I looked at How do I see the extensions loaded by PHP? but it only explains how to find loaded extensions. I want a way to find unloaded extensions also. Knowing the extension_dir from php.ini I did a ls /extension_dir/*.so which returned 26 entries. When I tried with php -m , I got 57 entries. How is it possible? How do I know which PHP extensions are available to be loaded? I don't want to know which are

Compiling a php extension with Visual Studio 2008, MODULE ID don't match with php

╄→гoц情女王★ 提交于 2019-12-19 04:19:05
问题 After compiling my own php extension using VC9 (2008) and VC10 (2010) using the next steps: http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-c-2005/ I get the next error when initializing php: PHP Warning: PHP Startup: FirstPHPExt Module: Unable to initialize module Module compiled with build ID=API20090626,TS PHP compiled with build ID=API20090626,TS,VC9 These options need to match in Unknown on line 0 Why it doesn't says that I compiled the module with VC9 ? More

WAMPSERVER php_memcache extension

白昼怎懂夜的黑 提交于 2019-12-18 06:14:39
问题 I have a copy of php_memcache.dll (from php_memcache-2.2.6-5.3-nts-vc9-x86.zip) which I have placed in my C:\wamp\bin\php\php5.3.5\ext folder. In WAMP I can see php_memcache in my extensions list, however whenever I start the extension I get the following warning: PHP Startup: Unable to load dynamic library 'C:/wamp/bin/php/php5.3.5/ext/php_memcache.dll' - The specified module could not be found. This does not happen for any other extension that I can turn on or off. Have tried moving php

WAMPSERVER php_memcache extension

淺唱寂寞╮ 提交于 2019-12-18 06:14:29
问题 I have a copy of php_memcache.dll (from php_memcache-2.2.6-5.3-nts-vc9-x86.zip) which I have placed in my C:\wamp\bin\php\php5.3.5\ext folder. In WAMP I can see php_memcache in my extensions list, however whenever I start the extension I get the following warning: PHP Startup: Unable to load dynamic library 'C:/wamp/bin/php/php5.3.5/ext/php_memcache.dll' - The specified module could not be found. This does not happen for any other extension that I can turn on or off. Have tried moving php

Installing mailparse php7 mbstring error

拟墨画扇 提交于 2019-12-18 05:57:09
问题 I'm currently working to put our project under php7. When trying to compile the mailparse extension or use pecl to install it, I get this error: #error The mailparse extension requires the mbstring extension! I did install the php7.0-mbstring and tried to put the mbstring extension with the mailparse source code. I also tried to use my old C skills and try include the libraries myself without success. Any of you has an idea how I could solve my problem? (without editing the code like I saw in

Installing mailparse php7 mbstring error

浪尽此生 提交于 2019-12-18 05:57:00
问题 I'm currently working to put our project under php7. When trying to compile the mailparse extension or use pecl to install it, I get this error: #error The mailparse extension requires the mbstring extension! I did install the php7.0-mbstring and tried to put the mbstring extension with the mailparse source code. I also tried to use my old C skills and try include the libraries myself without success. Any of you has an idea how I could solve my problem? (without editing the code like I saw in

PHP GD bundled extension without recompiling PHP - solution

℡╲_俬逩灬. 提交于 2019-12-18 03:47:16
问题 The bundled extension offer a lot of functionality. I have spent a lot of time how to compile extension for my version of PHP. So there are instructions. 回答1: 0, Install PHP development package. Also You should have installed PHP with GD extension (but not bundled) sudo apt-get install php5-dev 1, Download source code of used PHP (for me 5.6.18) wget http://cz2.php.net/get/php-5.6.18.tar.gz/from/this/mirror -O php-5.6.18.tar.gz 2, Extract archive tar -xzf php-5.6.18.tar.gz 3, Go to the source