php-extension

Install PHP Extension for PHP 5.6 on OSX with deprecated homebrew/php

无人久伴 提交于 2019-11-27 14:48:00
问题 today I've update Brew and now I can't install the php56-extensions. On my Mac is installed "php56" and today I had need to install, "php56-redis", but when I had try to install this extension, Brew returned the following error message. $ brew install php56-redis Error: No available formula with the name "php56-redis" ==> Searching for a previously deleted formula (in the last month)... Warning: homebrew/core is shallow clone. To get complete history run: git -C "$(brew --repo homebrew/core)"

How do I fix PHP module thread-safe/non-thread-safe mismatch?

旧巷老猫 提交于 2019-11-27 07:14:02
问题 This is out of the error log: PHP Warning: PHP Startup: BOPEE Extension: Unable to initialize module Module compiled with build ID=API20090626,TS,VC9 PHP compiled with build ID=API20090626,NTS,VC9 These options need to match in Unknown on line 0 PHP Warning: PHP Startup: CustomExt Module: Unable to initialize module Module compiled with build ID=API20090626,TS,VC9 PHP compiled with build ID=API20090626,NTS,VC9 These options need to match in Unknown on line 0 How I get the non-threadsafe

Getting Started with PHP Extension-Development [closed]

我是研究僧i 提交于 2019-11-27 03:42:08
Please suggest help articles or tutorials about PHP "low" level С-modules programming interface. Pascal MARTIN Searching through my bookmarks, only links I found are those : Extension Writing Part I: Introduction to PHP and Zend Extension Writing Part II: Parameters, Arrays, and ZVALs Extension Writing Part II: Parameters, Arrays, and ZVALs [continued] Extension Writing Part III: Resources Wrapping C++ Classes in a PHP Extension If you are really interested by the subject, and ready to spend some money on it, you could buy the book Extending and Embedding PHP ( some pages are available as

Install/activate PHP “intl” extension running MAMP

懵懂的女人 提交于 2019-11-27 01:10:26
问题 Ok, I'm running MAMP 1.9.5, which includes PHP 5.3.5, on my MacBook Pro. The "intl" extension isn't included/activated and I've tried a lot of different ways to install it ("./pecl install intl" doesn't seem to do it), but can't make it work. I've also "googled my ass of" but can't find any hints. Anyone of you that know how to do it? Or, alternatively, have and advice on how to install my own MySQL+Apache+PHP (and include "intl")? I'm trying to do this to be able to run Symfony2. So if you

How can i install gearman php extension on Windows OS?

隐身守侯 提交于 2019-11-26 23:31:20
问题 Please anybody help me out in installing gearman php extension on windows xp. I have xampp 1.7.7 installed on my system and i have installed Cygwin, libevent-1.4.14b-stable and gearmand on my system. Please let me know what more is needed to install gearman-1.0.2 php extension. As when i run the gearman-1.0.2 on cygwin terminal throwing error of command not found. 回答1: to install Gearman with PHP Extension in CentOS or Debian see How to install Gearman with PHP Extension Installing and

Memory usage of current process in C

半城伤御伤魂 提交于 2019-11-26 22:48:19
问题 I need to get the memory usage of the current process in C. Can someone offer a code sample of how to do this on a Linux platform? I'm aware of the cat /proc/<your pid>/status method of getting memory usage, but I have no idea how to capture that in C. BTW, it's for a PHP extension I'm modifying (granted, I'm a C newbie). If there are shortcuts available within the PHP extension API, that would be even more helpful. 回答1: You can always just open the 'files' in the /proc system as you would a

Installing PHP Zip Extension

て烟熏妆下的殇ゞ 提交于 2019-11-26 18:11:27
问题 I'm attempting to install the PHP Zip extension. My server does not have external internet access, so I downloaded it myself from PECL: http://pecl.php.net/package/zip. I chose 1.10.2, the latest "stable" release, and transferred it to my server. I ran: pear install zip-1.10.2.tgz and added extension=zip.so to php.ini as instructed. I can see that zip.so was created and placed in the right extension_dir folder as well. I restarted apache and then checked to see if it was loaded by running:

Enabling PostgreSQL support in PHP on Mac OS X

百般思念 提交于 2019-11-26 08:48:27
问题 I\'m having a terribly difficult time getting the command \"pg_connect()\" to work properly on my Mac. I\'m currently writing a PHP script (to be executed from console) to read a PostgreSQL database and email a report. I\'ve gone into my php.ini file and added extension=pgsql.so But, I\'m met with the following error. PHP Warning: PHP Startup: Unable to load dynamic library \'/usr/lib/php/extensions/no-debug-non-zts-20090626/php_pgsql.so\' - dlopen(/usr/lib/php/extensions/no-debug-non-zts

Extending PHP with C++?

我的未来我决定 提交于 2019-11-26 08:19:20
问题 I have a performance intensive routine that is written in PHP that I\'d like to port to C++ for a performance increase. Is there any way to write a plugin or extension or something using C++ and interface with it from PHP? WITHOUT manually editing the actual PHP source? 回答1: I've written a PHP plugin in C++ with the help of SWIG. It's doable, but it may take a while to get used to the SWIG-compilation cycle. You can start with the SWIG docs for PHP. Update As @therefromhere has mentioned, I