Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added required dependencies #13794

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 21 additions & 13 deletions ext/phalcon.c
Original file line number Diff line number Diff line change
Expand Up @@ -448,10 +448,10 @@ ZEND_DECLARE_MODULE_GLOBALS(phalcon)
PHP_INI_BEGIN()
STD_PHP_INI_BOOLEAN("phalcon.db.escape_identifiers", "1", PHP_INI_ALL, OnUpdateBool, db.escape_identifiers, zend_phalcon_globals, phalcon_globals)
STD_PHP_INI_BOOLEAN("phalcon.db.force_casting", "0", PHP_INI_ALL, OnUpdateBool, db.force_casting, zend_phalcon_globals, phalcon_globals)




STD_PHP_INI_BOOLEAN("phalcon.orm.events", "1", PHP_INI_ALL, OnUpdateBool, orm.events, zend_phalcon_globals, phalcon_globals)
STD_PHP_INI_BOOLEAN("phalcon.orm.virtual_foreign_keys", "1", PHP_INI_ALL, OnUpdateBool, orm.virtual_foreign_keys, zend_phalcon_globals, phalcon_globals)
STD_PHP_INI_BOOLEAN("phalcon.orm.column_renaming", "1", PHP_INI_ALL, OnUpdateBool, orm.column_renaming, zend_phalcon_globals, phalcon_globals)
Expand Down Expand Up @@ -889,14 +889,14 @@ static PHP_MINIT_FUNCTION(phalcon)
ZEPHIR_INIT(phalcon_7__closure);
ZEPHIR_INIT(phalcon_8__closure);
ZEPHIR_INIT(phalcon_9__closure);

return SUCCESS;
}

#ifndef ZEPHIR_RELEASE
static PHP_MSHUTDOWN_FUNCTION(phalcon)
{

zephir_deinitialize_memory(TSRMLS_C);
UNREGISTER_INI_ENTRIES();
return SUCCESS;
Expand Down Expand Up @@ -925,7 +925,7 @@ static void php_zephir_init_globals(zend_phalcon_globals *phalcon_globals TSRMLS
/* Static cache */
memset(phalcon_globals->scache, '\0', sizeof(zephir_fcall_cache_entry*) * ZEPHIR_MAX_CACHE_SLOTS);



phalcon_globals->orm.parser_cache = NULL;
phalcon_globals->orm.ast_cache = NULL;
Expand All @@ -945,15 +945,15 @@ static void php_zephir_init_globals(zend_phalcon_globals *phalcon_globals TSRMLS




}

/**
* Initialize globals only on each thread started
*/
static void php_zephir_init_module_globals(zend_phalcon_globals *phalcon_globals TSRMLS_DC)
{

}

static PHP_RINIT_FUNCTION(phalcon)
Expand All @@ -967,7 +967,7 @@ static PHP_RINIT_FUNCTION(phalcon)
php_zephir_init_globals(phalcon_globals_ptr TSRMLS_CC);
zephir_initialize_memory(phalcon_globals_ptr TSRMLS_CC);


return SUCCESS;
}

Expand All @@ -993,7 +993,7 @@ static PHP_MINFO_FUNCTION(phalcon)
php_info_print_table_row(2, "Build Date", __DATE__ " " __TIME__ );
php_info_print_table_row(2, "Powered by Zephir", "Version " PHP_PHALCON_ZEPVERSION);
php_info_print_table_end();

DISPLAY_INI_ENTRIES();
}

Expand All @@ -1005,7 +1005,7 @@ static PHP_GINIT_FUNCTION(phalcon)

static PHP_GSHUTDOWN_FUNCTION(phalcon)
{

}


Expand All @@ -1014,10 +1014,18 @@ zend_function_entry php_phalcon_functions[] = {

};

static const zend_module_dep php_phalcon_deps[] = { /* {{{ */
ZEND_MOD_REQUIRED("json")
ZEND_MOD_REQUIRED("pcre")
ZEND_MOD_REQUIRED("psr")
ZEND_MOD_END
};
/* }}} */

zend_module_entry phalcon_module_entry = {
STANDARD_MODULE_HEADER_EX,
NULL,
NULL,
php_phalcon_deps,
PHP_PHALCON_EXTNAME,
php_phalcon_functions,
PHP_MINIT(phalcon),
Expand Down