-
-
Save morrisonlevi/cedf8e03bb4d33d82e57 to your computer and use it in GitHub Desktop.
PHP ext/collections skeleton not linking
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PHP_ARG_ENABLE(collections, whether to enable Collections support, | |
[ --enable-collections Enable Collections support]) | |
if test "$PHP_COLLECTIONS" = "yes"; then | |
AC_DEFINE(HAVE_COLLECTIONS, 1, [Whether you have Collections support]) | |
PHP_NEW_EXTENSION(collections, collections.c, $ext_shared) | |
fi | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef HAVE_CONFIG_H | |
#include "config.h" | |
#endif | |
#include "php.h" | |
#include "php_collections.h" | |
zend_module_entry collections_module_entry = { | |
STANDARD_MODULE_HEADER, | |
PHP_COLLECTIONS_EXTNAME, | |
NULL, | |
NULL, | |
NULL, | |
NULL, | |
NULL, | |
NULL, | |
PHP_COLLECTIONS_VERSION, | |
STANDARD_MODULE_PROPERTIES | |
}; | |
#ifdef COMPILE_DL_COLLECTIONS | |
ZEND_GET_MODULE(collections) | |
#endif | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef PHP_COLLECTIONS_H | |
#define PHP_COLLECTIONS_H 1 | |
#define PHP_COLLECTIONS_VERSION "0.1.0" | |
#define PHP_COLLECTIONS_EXTNAME "collections" | |
extern zend_module_entry collections_module_entry; | |
#define phpext_collections_ptr &collections_module_entry | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment