This page is about the development of PHP extension in C++.
function_entry
, replace it with zend_function_entry
.
Macros definitions which seems to be needed for compilation under Windows :
ZEND_WIN32_FORCE_INLINE
,ZEND_WIN32=1
,PHP_WIN32=1
,__STDC_LIMIT_MACROS
,ZEND_DEBUG=0
,ZTS
.The last one is only needed to compile in TS mode, not for the NTS mode.
You have to link against <php>/Release_TS/php5ts.lib
(obviously for the thread-safe version).
You have to :
.ini
file in /etc/php5/mods-available
which contains extension=<extension-name>.<libext>
, <libext>
being the dynamic library extension for the concerned OS,php5enmod <extension_name>
.In order for the extension yo be recognized, verify that :
<extension_name>.<libext>
is present in the extension directory,.ini
file in the /etc/php5/mods-available
directory which contains the line extension=<extension-name>.<libext>
,conf.d
directory pointing to the above file.php-config | grep extension
,.ini
file php --ini
.