indent with spaces instead of tabs

This commit is contained in:
CismonX 2018-03-21 16:26:14 +08:00
parent 7e15ed8f39
commit c33bae6e87
2 changed files with 17 additions and 17 deletions

View File

@ -20,35 +20,35 @@ PHP_MINIT_FUNCTION(collections)
zend_register_internal_class(&collections_collection_ce); zend_register_internal_class(&collections_collection_ce);
INIT_CLASS_ENTRY_EX(collections_pair_ce, "Pair", strlen("Pair"), pair_methods); INIT_CLASS_ENTRY_EX(collections_pair_ce, "Pair", strlen("Pair"), pair_methods);
zend_register_internal_class(&collections_pair_ce); zend_register_internal_class(&collections_pair_ce);
return SUCCESS; return SUCCESS;
} }
PHP_RINIT_FUNCTION(collections) PHP_RINIT_FUNCTION(collections)
{ {
#if defined(COMPILE_DL_COLLECTIONS) && defined(ZTS) #if defined(COMPILE_DL_COLLECTIONS) && defined(ZTS)
ZEND_TSRMLS_CACHE_UPDATE(); ZEND_TSRMLS_CACHE_UPDATE();
#endif #endif
return SUCCESS; return SUCCESS;
} }
PHP_MINFO_FUNCTION(collections) PHP_MINFO_FUNCTION(collections)
{ {
php_info_print_table_start(); php_info_print_table_start();
php_info_print_table_header(2, "collections support", "enabled"); php_info_print_table_header(2, "collections support", "enabled");
php_info_print_table_end(); php_info_print_table_end();
} }
zend_module_entry collections_module_entry = { zend_module_entry collections_module_entry = {
STANDARD_MODULE_HEADER, STANDARD_MODULE_HEADER,
"collections", "collections",
NULL, NULL,
PHP_MINIT(collections), PHP_MINIT(collections),
NULL, NULL,
PHP_RINIT(collections), PHP_RINIT(collections),
NULL, NULL,
PHP_MINFO(collections), PHP_MINFO(collections),
PHP_COLLECTIONS_VERSION, PHP_COLLECTIONS_VERSION,
STANDARD_MODULE_PROPERTIES STANDARD_MODULE_PROPERTIES
}; };
#ifdef COMPILE_DL_COLLECTIONS #ifdef COMPILE_DL_COLLECTIONS

View File

@ -1,5 +1,5 @@
ARG_ENABLE("collections", "enable collections support", "no"); ARG_ENABLE("collections", "enable collections support", "no");
if (PHP_COLLECTIONS != "no") { if (PHP_COLLECTIONS != "no") {
EXTENSION("collections", "collections.c collections_fe.c collections_methods.c", true); EXTENSION("collections", "collections.c collections_fe.c collections_methods.c", true);
} }