Permalink
Browse files

MINIT function

  • Loading branch information...
1 parent d28c03b commit ae03acf5a3ce55155960c5f2ea276f07e6f18dff @c9s committed Mar 20, 2013
Showing with 32 additions and 1 deletion.
  1. +29 −1 ext/php_sqlbuilder.c
  2. +3 −0 ext/php_sqlbuilder.h
View
@@ -4,6 +4,15 @@
#include "php.h"
#include "php_sqlbuilder.h"
+static const zend_function_entry sqlbuilder_funcs_driverObject[] = {
+
+
+};
+
+PHPAPI zend_class_entry *spl_ce_ArrayObject;
+
+
+
static const zend_function_entry sqlbuilder_functions[] = {
PHP_FE(sqlbuilder_test, NULL)
{NULL, NULL, NULL}
@@ -15,7 +24,7 @@ zend_module_entry sqlbuilder_module_entry = {
#endif
PHP_SQLBUILDER_EXTNAME,
sqlbuilder_functions,
- NULL,
+ PHP_MINIT(sqlbuilder),
NULL,
NULL,
NULL,
@@ -30,6 +39,25 @@ zend_module_entry sqlbuilder_module_entry = {
ZEND_GET_MODULE(sqlbuilder)
#endif
+
+PHP_MINIT_FUNCTION(sqlbuilder)
+{
+ PHP_MINIT(sqlbuilder_driver)(INIT_FUNC_ARGS_PASSTHRU);
+ // PHP_MINIT(spl_iterators)(INIT_FUNC_ARGS_PASSTHRU);
+ // PHP_MINIT(spl_array)(INIT_FUNC_ARGS_PASSTHRU);
+ // PHP_MINIT(spl_directory)(INIT_FUNC_ARGS_PASSTHRU);
+ // PHP_MINIT(spl_dllist)(INIT_FUNC_ARGS_PASSTHRU);
+ // PHP_MINIT(spl_heap)(INIT_FUNC_ARGS_PASSTHRU);
+ // PHP_MINIT(spl_fixedarray)(INIT_FUNC_ARGS_PASSTHRU);
+ return SUCCESS;
+}
+
+PHP_MINIT_FUNCTION(sqlbuilder_driver)
+{
+ return SUCCESS;
+}
+
+
PHP_FUNCTION(sqlbuilder_test)
{
RETURN_STRING("Hello World", 1);
@@ -7,6 +7,9 @@
PHP_FUNCTION(sqlbuilder_test);
+PHP_MINIT_FUNCTION(sqlbuilder);
+PHP_MINIT_FUNCTION(sqlbuilder_driver);
+
extern zend_module_entry sqlbuilder_module_entry;
#define phpext_sqlbuilder_ptr &sqlbuilder_module_entry

0 comments on commit ae03acf

Please sign in to comment.