Пример #1
0
static PHP_MINIT_FUNCTION(cake)
{
#if PHP_VERSION_ID < 50500
	char* old_lc_all = setlocale(LC_ALL, NULL);
	if (old_lc_all) {
		size_t len = strlen(old_lc_all);
		char *tmp  = calloc(len+1, 1);
		if (UNEXPECTED(!tmp)) {
			return FAILURE;
		}

		memcpy(tmp, old_lc_all, len);
		old_lc_all = tmp;
	}

	setlocale(LC_ALL, "C");
#endif

	ZEPHIR_INIT(Cake_Core_Configure_ConfigEngineInterface);
	ZEPHIR_INIT(Cake_Core_Exception_Exception);
	ZEPHIR_INIT(Cake_Core_App);
	ZEPHIR_INIT(Cake_Core_Configure);
	ZEPHIR_INIT(Cake_Core_Configure_Engine_PhpConfig);
	ZEPHIR_INIT(Cake_Core_Exception_MissingPluginException);
	ZEPHIR_INIT(Cake_Core_Functions);
	ZEPHIR_INIT(Cake_Core_Plugin);
	ZEPHIR_INIT(Cake_Utility_Hash);
	ZEPHIR_INIT(Cake_Utility_Text);

#if PHP_VERSION_ID < 50500
	setlocale(LC_ALL, old_lc_all);
	free(old_lc_all);
#endif
	return SUCCESS;
}
Пример #2
0
static PHP_MINIT_FUNCTION(panada)
{
#if PHP_VERSION_ID < 50500
	const char* old_lc_all = setlocale(LC_ALL, NULL);
	if (old_lc_all) {
		char *tmp = calloc(strlen(old_lc_all)+1, 1);
		memcpy(tmp, old_lc_all, strlen(old_lc_all));
		old_lc_all = tmp;
	}

	setlocale(LC_ALL, "C");
#endif

	ZEPHIR_INIT(Panada_Gear);
	ZEPHIR_INIT(Panada_Resources_Config);
	ZEPHIR_INIT(Panada_Resources_RunException);
	ZEPHIR_INIT(Panada_Resources_Uri);
	ZEPHIR_INIT(Panada_Test);

#if PHP_VERSION_ID < 50500
	setlocale(LC_ALL, old_lc_all);
	free(old_lc_all);
#endif
	return SUCCESS;
}
Пример #3
0
static PHP_MINIT_FUNCTION(microdb)
{
#if PHP_VERSION_ID < 50500
	char* old_lc_all = setlocale(LC_ALL, NULL);
	if (old_lc_all) {
		size_t len = strlen(old_lc_all);
		char *tmp  = calloc(len+1, 1);
		if (UNEXPECTED(!tmp)) {
			return FAILURE;
		}

		memcpy(tmp, old_lc_all, len);
		old_lc_all = tmp;
	}

	setlocale(LC_ALL, "C");
#endif
	REGISTER_INI_ENTRIES();
	ZEPHIR_INIT(Microdb_Adapter_Adapter);
	ZEPHIR_INIT(Microdb_Adapter_Exception);
	ZEPHIR_INIT(Microdb_Adapter_Pdo);

#if PHP_VERSION_ID < 50500
	setlocale(LC_ALL, old_lc_all);
	free(old_lc_all);
#endif
	return SUCCESS;
}
Пример #4
0
static PHP_MINIT_FUNCTION(ygz)
{
	REGISTER_INI_ENTRIES();
	zephir_module_init();
	ZEPHIR_INIT(Ygz_YgzService);
	return SUCCESS;
}
Пример #5
0
static PHP_MINIT_FUNCTION(cacher)
{
#if PHP_VERSION_ID < 50500
	char* old_lc_all = setlocale(LC_ALL, NULL);
	if (old_lc_all) {
		size_t len = strlen(old_lc_all);
		char *tmp  = calloc(len+1, 1);
		if (UNEXPECTED(!tmp)) {
			return FAILURE;
		}

		memcpy(tmp, old_lc_all, len);
		old_lc_all = tmp;
	}

	setlocale(LC_ALL, "C");
#endif

	ZEPHIR_INIT(Cacher_Driver);
	ZEPHIR_INIT(Cacher_Driver_CacheDriver);
	ZEPHIR_INIT(Cacher_Driver_Memcache);
	ZEPHIR_INIT(Cacher_Driver_Memcached);
	ZEPHIR_INIT(Cacher_Driver_NativeArray);
	ZEPHIR_INIT(Cacher_Driver_Redis);

#if PHP_VERSION_ID < 50500
	setlocale(LC_ALL, old_lc_all);
	free(old_lc_all);
#endif
	return SUCCESS;
}
Пример #6
0
static PHP_MINIT_FUNCTION(boostyii)
{
#if PHP_VERSION_ID < 50500
	const char* old_lc_all = setlocale(LC_ALL, NULL);
	if (old_lc_all) {
		char *tmp = calloc(strlen(old_lc_all)+1, 1);
		memcpy(tmp, old_lc_all, strlen(old_lc_all));
		old_lc_all = tmp;
	}

	setlocale(LC_ALL, "C");
#endif

	ZEPHIR_INIT(boostyii_base_Arrayable);
	ZEPHIR_INIT(boostyii_BoostYii);
	ZEPHIR_INIT(boostyii_base_Object);

#if PHP_VERSION_ID < 50500
	setlocale(LC_ALL, old_lc_all);
	free(old_lc_all);
#endif
	return SUCCESS;
}
Пример #7
0
static PHP_MINIT_FUNCTION(test)
{
#if PHP_VERSION_ID < 50500
	char* old_lc_all = setlocale(LC_ALL, NULL);
	if (old_lc_all) {
		size_t len = strlen(old_lc_all);
		char *tmp  = calloc(len+1, 1);
		if (UNEXPECTED(!tmp)) {
			return FAILURE;
		}

		memcpy(tmp, old_lc_all, len);
		old_lc_all = tmp;
	}

	setlocale(LC_ALL, "C");
#endif
	REGISTER_INI_ENTRIES();
	ZEPHIR_INIT(Test_TestInterface);
	ZEPHIR_INIT(Test_MethodInterface);
	ZEPHIR_INIT(Test_OoImpl_ZBeginning);
	ZEPHIR_INIT(Test_DiInterface);
	ZEPHIR_INIT(Test_ExtendedInterface);
	ZEPHIR_INIT(Test_OoImpl_ABeginning);
	ZEPHIR_INIT(Test_Oo_Extend_Exception);
	ZEPHIR_INIT(Test_Oo_Extend_Db_Exception);
	ZEPHIR_INIT(Test_ScallParent);
	ZEPHIR_INIT(Test_ConstantsParent);
	ZEPHIR_INIT(Test_Oo_Extend_Db_Query_Exception);
	ZEPHIR_INIT(Test_Oo_OoDynamicA);
	ZEPHIR_INIT(Test_Properties_PublicProperties);
	ZEPHIR_INIT(Test_Arithmetic);
	ZEPHIR_INIT(Test_ArrayObject);
	ZEPHIR_INIT(Test_Assign);
	ZEPHIR_INIT(Test_Bench_Foo);
	ZEPHIR_INIT(Test_Bitwise);
	ZEPHIR_INIT(Test_BranchPrediction);
	ZEPHIR_INIT(Test_BuiltIn_ArrayMethods);
	ZEPHIR_INIT(Test_BuiltIn_CharMethods);
	ZEPHIR_INIT(Test_BuiltIn_IntMethods);
	ZEPHIR_INIT(Test_BuiltIn_StringMethods);
	ZEPHIR_INIT(Test_Cast);
	ZEPHIR_INIT(Test_Cblock);
	ZEPHIR_INIT(Test_Closures);
	ZEPHIR_INIT(Test_Compare);
	ZEPHIR_INIT(Test_Concat);
	ZEPHIR_INIT(Test_Constants);
	ZEPHIR_INIT(Test_ConstantsInterface);
	ZEPHIR_INIT(Test_ConstantsInterfaceA);
	ZEPHIR_INIT(Test_ConstantsInterfaceB);
	ZEPHIR_INIT(Test_DeclareTest);
	ZEPHIR_INIT(Test_Echoes);
	ZEPHIR_INIT(Test_EmptyTest);
	ZEPHIR_INIT(Test_EvalTest);
	ZEPHIR_INIT(Test_Exception);
	ZEPHIR_INIT(Test_Exceptions);
	ZEPHIR_INIT(Test_Exists);
	ZEPHIR_INIT(Test_ExitDie);
	ZEPHIR_INIT(Test_Factorial);
	ZEPHIR_INIT(Test_Fannkuch);
	ZEPHIR_INIT(Test_Fasta);
	ZEPHIR_INIT(Test_Fcall);
	ZEPHIR_INIT(Test_FetchTest);
	ZEPHIR_INIT(Test_Fibonnaci);
	ZEPHIR_INIT(Test_Flow);
	ZEPHIR_INIT(Test_FortyTwo);
	ZEPHIR_INIT(Test_Functional);
	ZEPHIR_INIT(Test_Geometry);
	ZEPHIR_INIT(Test_Globals);
	ZEPHIR_INIT(Test_Instanceoff);
	ZEPHIR_INIT(Test_InternalClasses);
	ZEPHIR_INIT(Test_InternalInterfaces);
	ZEPHIR_INIT(Test_IssetTest);
	ZEPHIR_INIT(Test_Issues);
	ZEPHIR_INIT(Test_Json);
	ZEPHIR_INIT(Test_Logical);
	ZEPHIR_INIT(Test_Mcall);
	ZEPHIR_INIT(Test_McallChained);
	ZEPHIR_INIT(Test_McallDynamic);
	ZEPHIR_INIT(Test_McallInternal);
	ZEPHIR_INIT(Test_MethodAbstract);
	ZEPHIR_INIT(Test_MethodArgs);
	ZEPHIR_INIT(Test_NativeArray);
	ZEPHIR_INIT(Test_Oo);
	ZEPHIR_INIT(Test_Oo_AbstractClass);
	ZEPHIR_INIT(Test_Oo_ConstantsInterface);
	ZEPHIR_INIT(Test_Oo_DeprecatedMethods);
	ZEPHIR_INIT(Test_Oo_DynamicProp);
	ZEPHIR_INIT(Test_Oo_ExtendPdoClass);
	ZEPHIR_INIT(Test_Oo_Extend_Db_Query_Placeholder_Exception);
	ZEPHIR_INIT(Test_Oo_Extend_Spl_ArrayObject);
	ZEPHIR_INIT(Test_Oo_Extend_Spl_DirectoryIterator);
	ZEPHIR_INIT(Test_Oo_Extend_Spl_DoublyLinkedList);
	ZEPHIR_INIT(Test_Oo_Extend_Spl_FileInfo);
	ZEPHIR_INIT(Test_Oo_Extend_Spl_FileObject);
	ZEPHIR_INIT(Test_Oo_Extend_Spl_FilesystemIterator);
	ZEPHIR_INIT(Test_Oo_Extend_Spl_FixedArray);
	ZEPHIR_INIT(Test_Oo_Extend_Spl_GlobIterator);
	ZEPHIR_INIT(Test_Oo_Extend_Spl_Heap);
	ZEPHIR_INIT(Test_Oo_Extend_Spl_MaxHeap);
	ZEPHIR_INIT(Test_Oo_Extend_Spl_MinHeap);
	ZEPHIR_INIT(Test_Oo_Extend_Spl_PriorityQueue);
	ZEPHIR_INIT(Test_Oo_Extend_Spl_Queue);
	ZEPHIR_INIT(Test_Oo_Extend_Spl_RecursiveDirectoryIterator);
	ZEPHIR_INIT(Test_Oo_Extend_Spl_Stack);
	ZEPHIR_INIT(Test_Oo_Extend_Spl_TempFileObject);
	ZEPHIR_INIT(Test_Oo_OoConstruct);
	ZEPHIR_INIT(Test_Oo_OoConstructParams);
	ZEPHIR_INIT(Test_Oo_OoDynamicB);
	ZEPHIR_INIT(Test_Oo_OoNativeImplements);
	ZEPHIR_INIT(Test_Oo_OoNoConstruct);
	ZEPHIR_INIT(Test_Oo_OoParams);
	ZEPHIR_INIT(Test_Oo_Param);
	ZEPHIR_INIT(Test_Oo_PropertyAccess);
	ZEPHIR_INIT(Test_Operator);
	ZEPHIR_INIT(Test_Optimizers_ACos);
	ZEPHIR_INIT(Test_Optimizers_ASin);
	ZEPHIR_INIT(Test_Optimizers_ArrayMerge);
	ZEPHIR_INIT(Test_Optimizers_Cos);
	ZEPHIR_INIT(Test_Optimizers_CreateArray);
	ZEPHIR_INIT(Test_Optimizers_IsScalar);
	ZEPHIR_INIT(Test_Optimizers_Sin);
	ZEPHIR_INIT(Test_Optimizers_Sqrt);
	ZEPHIR_INIT(Test_Optimizers_Substr);
	ZEPHIR_INIT(Test_Optimizers_Tan);
	ZEPHIR_INIT(Test_PdoStatement);
	ZEPHIR_INIT(Test_Pregmatch);
	ZEPHIR_INIT(Test_Properties_ExtendsPublicProperties);
	ZEPHIR_INIT(Test_Properties_PrivateProperties);
	ZEPHIR_INIT(Test_Properties_PropertyArray);
	ZEPHIR_INIT(Test_Properties_ProtectedProperties);
	ZEPHIR_INIT(Test_Properties_StaticPropertyArray);
	ZEPHIR_INIT(Test_Properties_StaticProtectedProperties);
	ZEPHIR_INIT(Test_Properties_StaticPublicProperties);
	ZEPHIR_INIT(Test_Quantum);
	ZEPHIR_INIT(Test_Range);
	ZEPHIR_INIT(Test_References);
	ZEPHIR_INIT(Test_RegexDNA);
	ZEPHIR_INIT(Test_Requires);
	ZEPHIR_INIT(Test_ResourceTest);
	ZEPHIR_INIT(Test_Returns);
	ZEPHIR_INIT(Test_Router);
	ZEPHIR_INIT(Test_Router_Exception);
	ZEPHIR_INIT(Test_Router_Route);
	ZEPHIR_INIT(Test_SPropertyAccess);
	ZEPHIR_INIT(Test_Scall);
	ZEPHIR_INIT(Test_ScallDynamic);
	ZEPHIR_INIT(Test_ScallExternal);
	ZEPHIR_INIT(Test_Sort);
	ZEPHIR_INIT(Test_SpectralNorm);
	ZEPHIR_INIT(Test_Statements);
	ZEPHIR_INIT(Test_Strings);
	ZEPHIR_INIT(Test_Ternary);
	ZEPHIR_INIT(Test_TryTest);
	ZEPHIR_INIT(Test_TypeInstances);
	ZEPHIR_INIT(Test_Typeoff);
	ZEPHIR_INIT(Test_UnknownClass);
	ZEPHIR_INIT(Test_Unsettest);
	ZEPHIR_INIT(Test_UseTest);
	ZEPHIR_INIT(Test_Vars);
	ZEPHIR_INIT(test_0__closure);
	ZEPHIR_INIT(test_1__closure);
	ZEPHIR_INIT(test_2__closure);
	ZEPHIR_INIT(test_3__closure);
	ZEPHIR_INIT(test_4__closure);
	ZEPHIR_INIT(test_5__closure);
	ZEPHIR_INIT(test_6__closure);
	ZEPHIR_INIT(test_7__closure);
	ZEPHIR_INIT(test_8__closure);
	ZEPHIR_INIT(test_9__closure);

#if PHP_VERSION_ID < 50500
	setlocale(LC_ALL, old_lc_all);
	free(old_lc_all);
#endif
	return SUCCESS;
}
Пример #8
0
static PHP_MINIT_FUNCTION(test)
{
#if PHP_VERSION_ID < 50500
	const char* old_lc_all = setlocale(LC_ALL, NULL);
	if (old_lc_all) {
		char *tmp = calloc(strlen(old_lc_all)+1, 1);
		memcpy(tmp, old_lc_all, strlen(old_lc_all));
		old_lc_all = tmp;
	}

	setlocale(LC_ALL, "C");
#endif

	ZEPHIR_INIT(Test_DiInterface);
	ZEPHIR_INIT(Test_TestInterface);
	ZEPHIR_INIT(Test_ConstantsParent);
	ZEPHIR_INIT(Test_Oo_OoDynamicA);
	ZEPHIR_INIT(Test_ScallParent);
	ZEPHIR_INIT(Test_Arithmetic);
	ZEPHIR_INIT(Test_Assign);
	ZEPHIR_INIT(Test_Bench_Foo);
	ZEPHIR_INIT(Test_Bitwise);
	ZEPHIR_INIT(Test_BranchPrediction);
	ZEPHIR_INIT(Test_BuiltIn_CharMethods);
	ZEPHIR_INIT(Test_BuiltIn_IntMethods);
	ZEPHIR_INIT(Test_BuiltIn_StringMethods);
	ZEPHIR_INIT(Test_Cast);
	ZEPHIR_INIT(Test_Cblock);
	ZEPHIR_INIT(Test_Concat);
	ZEPHIR_INIT(Test_Constants);
	ZEPHIR_INIT(Test_ConstantsInterface);
	ZEPHIR_INIT(Test_ConstantsInterfaceA);
	ZEPHIR_INIT(Test_ConstantsInterfaceB);
	ZEPHIR_INIT(Test_DeclareTest);
	ZEPHIR_INIT(Test_Echoes);
	ZEPHIR_INIT(Test_EmptyTest);
	ZEPHIR_INIT(Test_Exception);
	ZEPHIR_INIT(Test_Exceptions);
	ZEPHIR_INIT(Test_Exists);
	ZEPHIR_INIT(Test_Factorial);
	ZEPHIR_INIT(Test_Fannkuch);
	ZEPHIR_INIT(Test_Fcall);
	ZEPHIR_INIT(Test_FetchTest);
	ZEPHIR_INIT(Test_Fibonnaci);
	ZEPHIR_INIT(Test_Flow);
	ZEPHIR_INIT(Test_FortyTwo);
	ZEPHIR_INIT(Test_Globals);
	ZEPHIR_INIT(Test_Instanceoff);
	ZEPHIR_INIT(Test_InternalInterfaces);
	ZEPHIR_INIT(Test_IssetTest);
	ZEPHIR_INIT(Test_Json);
	ZEPHIR_INIT(Test_Logical);
	ZEPHIR_INIT(Test_Mcall);
	ZEPHIR_INIT(Test_McallChained);
	ZEPHIR_INIT(Test_NativeArray);
	ZEPHIR_INIT(Test_Oo);
	ZEPHIR_INIT(Test_Oo_ConstantsInterface);
	ZEPHIR_INIT(Test_Oo_ExtendPdoClass);
	ZEPHIR_INIT(Test_Oo_OoConstruct);
	ZEPHIR_INIT(Test_Oo_OoConstructParams);
	ZEPHIR_INIT(Test_Oo_OoDynamicB);
	ZEPHIR_INIT(Test_Oo_OoNativeImplements);
	ZEPHIR_INIT(Test_Oo_OoNoConstruct);
	ZEPHIR_INIT(Test_Oo_OoParams);
	ZEPHIR_INIT(Test_Oo_PropertyAccess);
	ZEPHIR_INIT(Test_Pregmatch);
	ZEPHIR_INIT(Test_Properties_PrivateProperties);
	ZEPHIR_INIT(Test_Properties_ProtectedProperties);
	ZEPHIR_INIT(Test_Properties_PublicProperties);
	ZEPHIR_INIT(Test_Properties_StaticProtectedProperties);
	ZEPHIR_INIT(Test_Properties_StaticPublicProperties);
	ZEPHIR_INIT(Test_RegexDNA);
	ZEPHIR_INIT(Test_Requires);
	ZEPHIR_INIT(Test_Resource);
	ZEPHIR_INIT(Test_Returns);
	ZEPHIR_INIT(Test_Router);
	ZEPHIR_INIT(Test_Router_Exception);
	ZEPHIR_INIT(Test_Router_Route);
	ZEPHIR_INIT(Test_SPropertyAccess);
	ZEPHIR_INIT(Test_Scall);
	ZEPHIR_INIT(Test_ScallExternal);
	ZEPHIR_INIT(Test_SpectralNorm);
	ZEPHIR_INIT(Test_Strings);
	ZEPHIR_INIT(Test_Ternary);
	ZEPHIR_INIT(Test_Trie);
	ZEPHIR_INIT(Test_TryTest);
	ZEPHIR_INIT(Test_Typeoff);
	ZEPHIR_INIT(Test_UnknownClass);
	ZEPHIR_INIT(Test_Unsettest);
	ZEPHIR_INIT(Test_UseTest);
	ZEPHIR_INIT(Test_Vars);

#if PHP_VERSION_ID < 50500
	setlocale(LC_ALL, old_lc_all);
	free(old_lc_all);
#endif
	return SUCCESS;
}
Пример #9
0
static PHP_MINIT_FUNCTION(xpl)
{
#if PHP_VERSION_ID < 50500
	char* old_lc_all = setlocale(LC_ALL, NULL);
	if (old_lc_all) {
		size_t len = strlen(old_lc_all);
		char *tmp  = calloc(len+1, 1);
		if (UNEXPECTED(!tmp)) {
			return FAILURE;
		}

		memcpy(tmp, old_lc_all, len);
		old_lc_all = tmp;
	}

	setlocale(LC_ALL, "C");
#endif
	REGISTER_INI_ENTRIES();
	ZEPHIR_INIT(Xpl_Arrayable);
	ZEPHIR_INIT(Xpl_Collection);
	ZEPHIR_INIT(Xpl_Collection_ListInterface);
	ZEPHIR_INIT(Xpl_Cache_DriverInterface);
	ZEPHIR_INIT(Xpl_Collection_MapInterface);
	ZEPHIR_INIT(Xpl_Collection_SetInterface);
	ZEPHIR_INIT(Xpl_Serializer_Serializer);
	ZEPHIR_INIT(Xpl_Collection_QueueInterface);
	ZEPHIR_INIT(Xpl_Collection_StackInterface);
	ZEPHIR_INIT(Xpl_ConfigurableInterface);
	ZEPHIR_INIT(Xpl_Cache_CacheAwareInterface);
	ZEPHIR_INIT(Xpl_Comparator);
	ZEPHIR_INIT(Xpl_Http_MiddlewareInterface);
	ZEPHIR_INIT(Xpl_ReadOnlyInterface);
	ZEPHIR_INIT(Xpl_Sortable);
	ZEPHIR_INIT(Xpl_Cache_Driver_AbstractDriver);
	ZEPHIR_INIT(Xpl_Collection_AbstractBaseCollection);
	ZEPHIR_INIT(Xpl_Number);
	ZEPHIR_INIT(Xpl_Cache_Exception);
	ZEPHIR_INIT(Xpl_Collection_Queue);
	ZEPHIR_INIT(Xpl_Apcu);
	ZEPHIR_INIT(Xpl_Base64Url);
	ZEPHIR_INIT(Xpl_Cache_Cache);
	ZEPHIR_INIT(Xpl_Cache_Driver_ApcDriver);
	ZEPHIR_INIT(Xpl_Cache_Driver_ApcuDriver);
	ZEPHIR_INIT(Xpl_Cache_Driver_MemoryDriver);
	ZEPHIR_INIT(Xpl_Cache_Driver_XCacheDriver);
	ZEPHIR_INIT(Xpl_Cache_InvalidArgumentException);
	ZEPHIR_INIT(Xpl_Cache_Item);
	ZEPHIR_INIT(Xpl_Cache_ItemPool);
	ZEPHIR_INIT(Xpl_ClassLoader);
	ZEPHIR_INIT(Xpl_ClassUtil);
	ZEPHIR_INIT(Xpl_Collection_ArrayObject);
	ZEPHIR_INIT(Xpl_Collection_Config);
	ZEPHIR_INIT(Xpl_Collection_Map);
	ZEPHIR_INIT(Xpl_Collection_ObjectSet);
	ZEPHIR_INIT(Xpl_Collection_ScalarSet);
	ZEPHIR_INIT(Xpl_Collection_Sequence);
	ZEPHIR_INIT(Xpl_Collection_Set);
	ZEPHIR_INIT(Xpl_Collection_Stack);
	ZEPHIR_INIT(Xpl_Configurable);
	ZEPHIR_INIT(Xpl_Csv);
	ZEPHIR_INIT(Xpl_Date);
	ZEPHIR_INIT(Xpl_Enum);
	ZEPHIR_INIT(Xpl_Event_Event);
	ZEPHIR_INIT(Xpl_Event_Listener);
	ZEPHIR_INIT(Xpl_Event_Manager);
	ZEPHIR_INIT(Xpl_Filesystem_Container);
	ZEPHIR_INIT(Xpl_Html);
	ZEPHIR_INIT(Xpl_HtmlElement);
	ZEPHIR_INIT(Xpl_Http_MiddlewareDispatcher);
	ZEPHIR_INIT(Xpl_Http_MiddlewareQueue);
	ZEPHIR_INIT(Xpl_Json);
	ZEPHIR_INIT(Xpl_Math);
	ZEPHIR_INIT(Xpl_Money);
	ZEPHIR_INIT(Xpl_NamespaceAlias);
	ZEPHIR_INIT(Xpl_Object);
	ZEPHIR_INIT(Xpl_OutputBuffer);
	ZEPHIR_INIT(Xpl_Rate);
	ZEPHIR_INIT(Xpl_Serializer_Igbinary);
	ZEPHIR_INIT(Xpl_Serializer_Json);
	ZEPHIR_INIT(Xpl_Serializer_Php);
	ZEPHIR_INIT(Xpl_Str);
	ZEPHIR_INIT(Xpl_Stream);
	ZEPHIR_INIT(Xpl_StringBuffer);
	ZEPHIR_INIT(Xpl_System);
	ZEPHIR_INIT(Xpl_Type);
	ZEPHIR_INIT(Xpl_Xml);
	ZEPHIR_INIT(xpl_0__closure);
	ZEPHIR_INIT(xpl_1__closure);

#if PHP_VERSION_ID < 50500
	setlocale(LC_ALL, old_lc_all);
	free(old_lc_all);
#endif
	return SUCCESS;
}
Пример #10
0
static PHP_MINIT_FUNCTION(phalcon)
{
#if PHP_VERSION_ID < 50500
	char* old_lc_all = setlocale(LC_ALL, NULL);
	if (old_lc_all) {
		size_t len = strlen(old_lc_all);
		char *tmp  = calloc(len+1, 1);
		if (UNEXPECTED(!tmp)) {
			return FAILURE;
		}

		memcpy(tmp, old_lc_all, len);
		old_lc_all = tmp;
	}

	setlocale(LC_ALL, "C");
#endif
	REGISTER_INI_ENTRIES();
	ZEPHIR_INIT(Phalcon_Di_InjectionAwareInterface);
	ZEPHIR_INIT(Phalcon_Events_EventsAwareInterface);
	ZEPHIR_INIT(Phalcon_Forms_ElementInterface);
	ZEPHIR_INIT(Phalcon_Validation_ValidatorInterface);
	ZEPHIR_INIT(Phalcon_Mvc_Model_ValidatorInterface);
	ZEPHIR_INIT(Phalcon_Cache_BackendInterface);
	ZEPHIR_INIT(Phalcon_Mvc_Model_MetaDataInterface);
	ZEPHIR_INIT(Phalcon_Cache_FrontendInterface);
	ZEPHIR_INIT(Phalcon_Db_DialectInterface);
	ZEPHIR_INIT(Phalcon_DispatcherInterface);
	ZEPHIR_INIT(Phalcon_Annotations_AdapterInterface);
	ZEPHIR_INIT(Phalcon_Db_AdapterInterface);
	ZEPHIR_INIT(Phalcon_Logger_AdapterInterface);
	ZEPHIR_INIT(Phalcon_Logger_FormatterInterface);
	ZEPHIR_INIT(Phalcon_Mvc_EntityInterface);
	ZEPHIR_INIT(Phalcon_Mvc_Model_ResultsetInterface);
	ZEPHIR_INIT(Phalcon_Session_AdapterInterface);
	ZEPHIR_INIT(Phalcon_Assets_FilterInterface);
	ZEPHIR_INIT(Phalcon_DiInterface);
	ZEPHIR_INIT(Phalcon_Mvc_ViewBaseInterface);
	ZEPHIR_INIT(Phalcon_Paginator_AdapterInterface);
	ZEPHIR_INIT(Phalcon_Translate_AdapterInterface);
	ZEPHIR_INIT(Phalcon_Acl_AdapterInterface);
	ZEPHIR_INIT(Phalcon_FlashInterface);
	ZEPHIR_INIT(Phalcon_Image_AdapterInterface);
	ZEPHIR_INIT(Phalcon_Mvc_Collection_BehaviorInterface);
	ZEPHIR_INIT(Phalcon_Mvc_Model_BehaviorInterface);
	ZEPHIR_INIT(Phalcon_Mvc_Model_MetaData_StrategyInterface);
	ZEPHIR_INIT(Phalcon_Mvc_Model_ResultInterface);
	ZEPHIR_INIT(Phalcon_Mvc_RouterInterface);
	ZEPHIR_INIT(Phalcon_Mvc_View_EngineInterface);
	ZEPHIR_INIT(Phalcon_Translate_InterpolatorInterface);
	ZEPHIR_INIT(Phalcon_Acl_RoleInterface);
	ZEPHIR_INIT(Phalcon_Annotations_ReaderInterface);
	ZEPHIR_INIT(Phalcon_CryptInterface);
	ZEPHIR_INIT(Phalcon_Db_ColumnInterface);
	ZEPHIR_INIT(Phalcon_Db_IndexInterface);
	ZEPHIR_INIT(Phalcon_Db_ReferenceInterface);
	ZEPHIR_INIT(Phalcon_Db_ResultInterface);
	ZEPHIR_INIT(Phalcon_Di_ServiceInterface);
	ZEPHIR_INIT(Phalcon_EscaperInterface);
	ZEPHIR_INIT(Phalcon_Events_ManagerInterface);
	ZEPHIR_INIT(Phalcon_FilterInterface);
	ZEPHIR_INIT(Phalcon_Http_RequestInterface);
	ZEPHIR_INIT(Phalcon_Http_Request_FileInterface);
	ZEPHIR_INIT(Phalcon_Http_ResponseInterface);
	ZEPHIR_INIT(Phalcon_Http_Response_CookiesInterface);
	ZEPHIR_INIT(Phalcon_Http_Response_HeadersInterface);
	ZEPHIR_INIT(Phalcon_Mvc_CollectionInterface);
	ZEPHIR_INIT(Phalcon_Mvc_ControllerInterface);
	ZEPHIR_INIT(Phalcon_Mvc_DispatcherInterface);
	ZEPHIR_INIT(Phalcon_Mvc_Micro_CollectionInterface);
	ZEPHIR_INIT(Phalcon_Mvc_ModelInterface);
	ZEPHIR_INIT(Phalcon_Mvc_Model_CriteriaInterface);
	ZEPHIR_INIT(Phalcon_Mvc_Model_ManagerInterface);
	ZEPHIR_INIT(Phalcon_Mvc_Model_MessageInterface);
	ZEPHIR_INIT(Phalcon_Mvc_Model_QueryInterface);
	ZEPHIR_INIT(Phalcon_Mvc_Model_Query_BuilderInterface);
	ZEPHIR_INIT(Phalcon_Mvc_Model_Query_StatusInterface);
	ZEPHIR_INIT(Phalcon_Mvc_Model_RelationInterface);
	ZEPHIR_INIT(Phalcon_Mvc_Model_TransactionInterface);
	ZEPHIR_INIT(Phalcon_Mvc_Model_Transaction_ManagerInterface);
	ZEPHIR_INIT(Phalcon_Mvc_Router_GroupInterface);
	ZEPHIR_INIT(Phalcon_Mvc_Router_RouteInterface);
	ZEPHIR_INIT(Phalcon_Mvc_UrlInterface);
	ZEPHIR_INIT(Phalcon_Mvc_ViewInterface);
	ZEPHIR_INIT(Phalcon_Session_BagInterface);
	ZEPHIR_INIT(Phalcon_Validation_MessageInterface);
	ZEPHIR_INIT(Phalcon_Acl_ResourceInterface);
	ZEPHIR_INIT(Phalcon_Filter_UserFilterInterface);
	ZEPHIR_INIT(Phalcon_Mvc_Collection_ManagerInterface);
	ZEPHIR_INIT(Phalcon_Mvc_Micro_MiddlewareInterface);
	ZEPHIR_INIT(Phalcon_Mvc_ModuleDefinitionInterface);
	ZEPHIR_INIT(Phalcon_Exception);
	ZEPHIR_INIT(Phalcon_Validation_Validator);
	ZEPHIR_INIT(Phalcon_Di_Injectable);
	ZEPHIR_INIT(Phalcon_Forms_Element);
	ZEPHIR_INIT(Phalcon_Mvc_Model_Validator);
	ZEPHIR_INIT(Phalcon_Cache_Backend);
	ZEPHIR_INIT(Phalcon_Mvc_Model_MetaData);
	ZEPHIR_INIT(Phalcon_Db_Adapter);
	ZEPHIR_INIT(Phalcon_Annotations_Adapter);
	ZEPHIR_INIT(Phalcon_Config);
	ZEPHIR_INIT(Phalcon_Db_Adapter_Pdo);
	ZEPHIR_INIT(Phalcon_Db_Dialect);
	ZEPHIR_INIT(Phalcon_Logger_Adapter);
	ZEPHIR_INIT(Phalcon_Logger_Formatter);
	ZEPHIR_INIT(Phalcon_Session_Adapter);
	ZEPHIR_INIT(Phalcon_Mvc_Model_Exception);
	ZEPHIR_INIT(Phalcon_Paginator_Adapter);
	ZEPHIR_INIT(Phalcon_Translate_Adapter);
	ZEPHIR_INIT(Phalcon_Assets_Inline);
	ZEPHIR_INIT(Phalcon_Assets_Resource);
	ZEPHIR_INIT(Phalcon_Di);
	ZEPHIR_INIT(Phalcon_Dispatcher);
	ZEPHIR_INIT(Phalcon_Flash);
	ZEPHIR_INIT(Phalcon_Image_Adapter);
	ZEPHIR_INIT(Phalcon_Mvc_Collection_Behavior);
	ZEPHIR_INIT(Phalcon_Mvc_Model_Behavior);
	ZEPHIR_INIT(Phalcon_Mvc_Model_Resultset);
	ZEPHIR_INIT(Phalcon_Mvc_View_Engine);
	ZEPHIR_INIT(Phalcon_Acl_Adapter);
	ZEPHIR_INIT(Phalcon_Cache_Frontend_Data);
	ZEPHIR_INIT(Phalcon_Di_FactoryDefault);
	ZEPHIR_INIT(Phalcon_Mvc_Model_Transaction_Exception);
	ZEPHIR_INIT(Phalcon_Mvc_Router);
	ZEPHIR_INIT(Phalcon_Acl);
	ZEPHIR_INIT(Phalcon_Acl_Adapter_Memory);
	ZEPHIR_INIT(Phalcon_Acl_Exception);
	ZEPHIR_INIT(Phalcon_Acl_Resource);
	ZEPHIR_INIT(Phalcon_Acl_Role);
	ZEPHIR_INIT(Phalcon_Annotations_Adapter_Apc);
	ZEPHIR_INIT(Phalcon_Annotations_Adapter_Files);
	ZEPHIR_INIT(Phalcon_Annotations_Adapter_Memory);
	ZEPHIR_INIT(Phalcon_Annotations_Adapter_Xcache);
	ZEPHIR_INIT(Phalcon_Annotations_Annotation);
	ZEPHIR_INIT(Phalcon_Annotations_Collection);
	ZEPHIR_INIT(Phalcon_Annotations_Exception);
	ZEPHIR_INIT(Phalcon_Annotations_Reader);
	ZEPHIR_INIT(Phalcon_Annotations_Reflection);
	ZEPHIR_INIT(Phalcon_Assets_Collection);
	ZEPHIR_INIT(Phalcon_Assets_Exception);
	ZEPHIR_INIT(Phalcon_Assets_Filters_Cssmin);
	ZEPHIR_INIT(Phalcon_Assets_Filters_Jsmin);
	ZEPHIR_INIT(Phalcon_Assets_Filters_None);
	ZEPHIR_INIT(Phalcon_Assets_Inline_Css);
	ZEPHIR_INIT(Phalcon_Assets_Inline_Js);
	ZEPHIR_INIT(Phalcon_Assets_Manager);
	ZEPHIR_INIT(Phalcon_Assets_Resource_Css);
	ZEPHIR_INIT(Phalcon_Assets_Resource_Js);
	ZEPHIR_INIT(Phalcon_Cache_Backend_Apc);
	ZEPHIR_INIT(Phalcon_Cache_Backend_File);
	ZEPHIR_INIT(Phalcon_Cache_Backend_Libmemcached);
	ZEPHIR_INIT(Phalcon_Cache_Backend_Memcache);
	ZEPHIR_INIT(Phalcon_Cache_Backend_Memory);
	ZEPHIR_INIT(Phalcon_Cache_Backend_Mongo);
	ZEPHIR_INIT(Phalcon_Cache_Backend_Redis);
	ZEPHIR_INIT(Phalcon_Cache_Backend_Xcache);
	ZEPHIR_INIT(Phalcon_Cache_Exception);
	ZEPHIR_INIT(Phalcon_Cache_Frontend_Base64);
	ZEPHIR_INIT(Phalcon_Cache_Frontend_Igbinary);
	ZEPHIR_INIT(Phalcon_Cache_Frontend_Json);
	ZEPHIR_INIT(Phalcon_Cache_Frontend_None);
	ZEPHIR_INIT(Phalcon_Cache_Frontend_Output);
	ZEPHIR_INIT(Phalcon_Cache_Multiple);
	ZEPHIR_INIT(Phalcon_Cli_Console);
	ZEPHIR_INIT(Phalcon_Cli_Console_Exception);
	ZEPHIR_INIT(Phalcon_Cli_Dispatcher);
	ZEPHIR_INIT(Phalcon_Cli_Dispatcher_Exception);
	ZEPHIR_INIT(Phalcon_Cli_Router);
	ZEPHIR_INIT(Phalcon_Cli_Router_Exception);
	ZEPHIR_INIT(Phalcon_Cli_Router_Route);
	ZEPHIR_INIT(Phalcon_Cli_Task);
	ZEPHIR_INIT(Phalcon_Config_Adapter_Ini);
	ZEPHIR_INIT(Phalcon_Config_Adapter_Json);
	ZEPHIR_INIT(Phalcon_Config_Adapter_Php);
	ZEPHIR_INIT(Phalcon_Config_Adapter_Yaml);
	ZEPHIR_INIT(Phalcon_Config_Exception);
	ZEPHIR_INIT(Phalcon_Crypt);
	ZEPHIR_INIT(Phalcon_Crypt_Exception);
	ZEPHIR_INIT(Phalcon_Db);
	ZEPHIR_INIT(Phalcon_Db_Adapter_Pdo_Mysql);
	ZEPHIR_INIT(Phalcon_Db_Adapter_Pdo_Oracle);
	ZEPHIR_INIT(Phalcon_Db_Adapter_Pdo_Postgresql);
	ZEPHIR_INIT(Phalcon_Db_Adapter_Pdo_Sqlite);
	ZEPHIR_INIT(Phalcon_Db_Column);
	ZEPHIR_INIT(Phalcon_Db_Dialect_MySQL);
	ZEPHIR_INIT(Phalcon_Db_Dialect_Oracle);
	ZEPHIR_INIT(Phalcon_Db_Dialect_Postgresql);
	ZEPHIR_INIT(Phalcon_Db_Dialect_Sqlite);
	ZEPHIR_INIT(Phalcon_Db_Exception);
	ZEPHIR_INIT(Phalcon_Db_Index);
	ZEPHIR_INIT(Phalcon_Db_Profiler);
	ZEPHIR_INIT(Phalcon_Db_Profiler_Item);
	ZEPHIR_INIT(Phalcon_Db_RawValue);
	ZEPHIR_INIT(Phalcon_Db_Reference);
	ZEPHIR_INIT(Phalcon_Db_Result_Pdo);
	ZEPHIR_INIT(Phalcon_Debug);
	ZEPHIR_INIT(Phalcon_Debug_Dump);
	ZEPHIR_INIT(Phalcon_Debug_Exception);
	ZEPHIR_INIT(Phalcon_Di_Exception);
	ZEPHIR_INIT(Phalcon_Di_FactoryDefault_Cli);
	ZEPHIR_INIT(Phalcon_Di_Service);
	ZEPHIR_INIT(Phalcon_Di_Service_Builder);
	ZEPHIR_INIT(Phalcon_Escaper);
	ZEPHIR_INIT(Phalcon_Escaper_Exception);
	ZEPHIR_INIT(Phalcon_Events_Event);
	ZEPHIR_INIT(Phalcon_Events_Exception);
	ZEPHIR_INIT(Phalcon_Events_Manager);
	ZEPHIR_INIT(Phalcon_Filter);
	ZEPHIR_INIT(Phalcon_Filter_Exception);
	ZEPHIR_INIT(Phalcon_Flash_Direct);
	ZEPHIR_INIT(Phalcon_Flash_Exception);
	ZEPHIR_INIT(Phalcon_Flash_Session);
	ZEPHIR_INIT(Phalcon_Forms_Element_Check);
	ZEPHIR_INIT(Phalcon_Forms_Element_Date);
	ZEPHIR_INIT(Phalcon_Forms_Element_Email);
	ZEPHIR_INIT(Phalcon_Forms_Element_File);
	ZEPHIR_INIT(Phalcon_Forms_Element_Hidden);
	ZEPHIR_INIT(Phalcon_Forms_Element_Numeric);
	ZEPHIR_INIT(Phalcon_Forms_Element_Password);
	ZEPHIR_INIT(Phalcon_Forms_Element_Radio);
	ZEPHIR_INIT(Phalcon_Forms_Element_Select);
	ZEPHIR_INIT(Phalcon_Forms_Element_Submit);
	ZEPHIR_INIT(Phalcon_Forms_Element_Text);
	ZEPHIR_INIT(Phalcon_Forms_Element_TextArea);
	ZEPHIR_INIT(Phalcon_Forms_Exception);
	ZEPHIR_INIT(Phalcon_Forms_Form);
	ZEPHIR_INIT(Phalcon_Forms_Manager);
	ZEPHIR_INIT(Phalcon_Http_Cookie);
	ZEPHIR_INIT(Phalcon_Http_Cookie_Exception);
	ZEPHIR_INIT(Phalcon_Http_Request);
	ZEPHIR_INIT(Phalcon_Http_Request_Exception);
	ZEPHIR_INIT(Phalcon_Http_Request_File);
	ZEPHIR_INIT(Phalcon_Http_Response);
	ZEPHIR_INIT(Phalcon_Http_Response_Cookies);
	ZEPHIR_INIT(Phalcon_Http_Response_Exception);
	ZEPHIR_INIT(Phalcon_Http_Response_Headers);
	ZEPHIR_INIT(Phalcon_Image);
	ZEPHIR_INIT(Phalcon_Image_Adapter_Gd);
	ZEPHIR_INIT(Phalcon_Image_Adapter_Imagick);
	ZEPHIR_INIT(Phalcon_Image_Exception);
	ZEPHIR_INIT(Phalcon_Kernel);
	ZEPHIR_INIT(Phalcon_Loader);
	ZEPHIR_INIT(Phalcon_Loader_Exception);
	ZEPHIR_INIT(Phalcon_Logger);
	ZEPHIR_INIT(Phalcon_Logger_Adapter_File);
	ZEPHIR_INIT(Phalcon_Logger_Adapter_Firephp);
	ZEPHIR_INIT(Phalcon_Logger_Adapter_Stream);
	ZEPHIR_INIT(Phalcon_Logger_Adapter_Syslog);
	ZEPHIR_INIT(Phalcon_Logger_Exception);
	ZEPHIR_INIT(Phalcon_Logger_Formatter_Firephp);
	ZEPHIR_INIT(Phalcon_Logger_Formatter_Json);
	ZEPHIR_INIT(Phalcon_Logger_Formatter_Line);
	ZEPHIR_INIT(Phalcon_Logger_Formatter_Syslog);
	ZEPHIR_INIT(Phalcon_Logger_Item);
	ZEPHIR_INIT(Phalcon_Logger_Multiple);
	ZEPHIR_INIT(Phalcon_Mvc_Application);
	ZEPHIR_INIT(Phalcon_Mvc_Application_Exception);
	ZEPHIR_INIT(Phalcon_Mvc_Collection);
	ZEPHIR_INIT(Phalcon_Mvc_Collection_Behavior_SoftDelete);
	ZEPHIR_INIT(Phalcon_Mvc_Collection_Behavior_Timestampable);
	ZEPHIR_INIT(Phalcon_Mvc_Collection_Document);
	ZEPHIR_INIT(Phalcon_Mvc_Collection_Exception);
	ZEPHIR_INIT(Phalcon_Mvc_Collection_Manager);
	ZEPHIR_INIT(Phalcon_Mvc_Controller);
	ZEPHIR_INIT(Phalcon_Mvc_Dispatcher);
	ZEPHIR_INIT(Phalcon_Mvc_Dispatcher_Exception);
	ZEPHIR_INIT(Phalcon_Mvc_Micro);
	ZEPHIR_INIT(Phalcon_Mvc_Micro_Collection);
	ZEPHIR_INIT(Phalcon_Mvc_Micro_Exception);
	ZEPHIR_INIT(Phalcon_Mvc_Micro_LazyLoader);
	ZEPHIR_INIT(Phalcon_Mvc_Model);
	ZEPHIR_INIT(Phalcon_Mvc_Model_Behavior_SoftDelete);
	ZEPHIR_INIT(Phalcon_Mvc_Model_Behavior_Timestampable);
	ZEPHIR_INIT(Phalcon_Mvc_Model_Criteria);
	ZEPHIR_INIT(Phalcon_Mvc_Model_Manager);
	ZEPHIR_INIT(Phalcon_Mvc_Model_Message);
	ZEPHIR_INIT(Phalcon_Mvc_Model_MetaData_Apc);
	ZEPHIR_INIT(Phalcon_Mvc_Model_MetaData_Files);
	ZEPHIR_INIT(Phalcon_Mvc_Model_MetaData_Libmemcached);
	ZEPHIR_INIT(Phalcon_Mvc_Model_MetaData_Memcache);
	ZEPHIR_INIT(Phalcon_Mvc_Model_MetaData_Memory);
	ZEPHIR_INIT(Phalcon_Mvc_Model_MetaData_Redis);
	ZEPHIR_INIT(Phalcon_Mvc_Model_MetaData_Session);
	ZEPHIR_INIT(Phalcon_Mvc_Model_MetaData_Strategy_Annotations);
	ZEPHIR_INIT(Phalcon_Mvc_Model_MetaData_Strategy_Introspection);
	ZEPHIR_INIT(Phalcon_Mvc_Model_MetaData_Xcache);
	ZEPHIR_INIT(Phalcon_Mvc_Model_Query);
	ZEPHIR_INIT(Phalcon_Mvc_Model_Query_Builder);
	ZEPHIR_INIT(Phalcon_Mvc_Model_Query_Lang);
	ZEPHIR_INIT(Phalcon_Mvc_Model_Query_Status);
	ZEPHIR_INIT(Phalcon_Mvc_Model_Relation);
	ZEPHIR_INIT(Phalcon_Mvc_Model_Resultset_Complex);
	ZEPHIR_INIT(Phalcon_Mvc_Model_Resultset_Simple);
	ZEPHIR_INIT(Phalcon_Mvc_Model_Row);
	ZEPHIR_INIT(Phalcon_Mvc_Model_Transaction);
	ZEPHIR_INIT(Phalcon_Mvc_Model_Transaction_Failed);
	ZEPHIR_INIT(Phalcon_Mvc_Model_Transaction_Manager);
	ZEPHIR_INIT(Phalcon_Mvc_Model_ValidationFailed);
	ZEPHIR_INIT(Phalcon_Mvc_Model_Validator_Email);
	ZEPHIR_INIT(Phalcon_Mvc_Model_Validator_Exclusionin);
	ZEPHIR_INIT(Phalcon_Mvc_Model_Validator_Inclusionin);
	ZEPHIR_INIT(Phalcon_Mvc_Model_Validator_Ip);
	ZEPHIR_INIT(Phalcon_Mvc_Model_Validator_Numericality);
	ZEPHIR_INIT(Phalcon_Mvc_Model_Validator_PresenceOf);
	ZEPHIR_INIT(Phalcon_Mvc_Model_Validator_Regex);
	ZEPHIR_INIT(Phalcon_Mvc_Model_Validator_StringLength);
	ZEPHIR_INIT(Phalcon_Mvc_Model_Validator_Uniqueness);
	ZEPHIR_INIT(Phalcon_Mvc_Model_Validator_Url);
	ZEPHIR_INIT(Phalcon_Mvc_Router_Annotations);
	ZEPHIR_INIT(Phalcon_Mvc_Router_Exception);
	ZEPHIR_INIT(Phalcon_Mvc_Router_Group);
	ZEPHIR_INIT(Phalcon_Mvc_Router_Route);
	ZEPHIR_INIT(Phalcon_Mvc_Url);
	ZEPHIR_INIT(Phalcon_Mvc_Url_Exception);
	ZEPHIR_INIT(Phalcon_Mvc_User_Component);
	ZEPHIR_INIT(Phalcon_Mvc_User_Module);
	ZEPHIR_INIT(Phalcon_Mvc_User_Plugin);
	ZEPHIR_INIT(Phalcon_Mvc_View);
	ZEPHIR_INIT(Phalcon_Mvc_View_Engine_Php);
	ZEPHIR_INIT(Phalcon_Mvc_View_Engine_Volt);
	ZEPHIR_INIT(Phalcon_Mvc_View_Engine_Volt_Compiler);
	ZEPHIR_INIT(Phalcon_Mvc_View_Exception);
	ZEPHIR_INIT(Phalcon_Mvc_View_Simple);
	ZEPHIR_INIT(Phalcon_Paginator_Adapter_Model);
	ZEPHIR_INIT(Phalcon_Paginator_Adapter_NativeArray);
	ZEPHIR_INIT(Phalcon_Paginator_Adapter_QueryBuilder);
	ZEPHIR_INIT(Phalcon_Paginator_Exception);
	ZEPHIR_INIT(Phalcon_Queue_Beanstalk);
	ZEPHIR_INIT(Phalcon_Queue_Beanstalk_Job);
	ZEPHIR_INIT(Phalcon_Registry);
	ZEPHIR_INIT(Phalcon_Security);
	ZEPHIR_INIT(Phalcon_Security_Exception);
	ZEPHIR_INIT(Phalcon_Session);
	ZEPHIR_INIT(Phalcon_Session_Adapter_Files);
	ZEPHIR_INIT(Phalcon_Session_Adapter_Libmemcached);
	ZEPHIR_INIT(Phalcon_Session_Adapter_Memcache);
	ZEPHIR_INIT(Phalcon_Session_Adapter_Redis);
	ZEPHIR_INIT(Phalcon_Session_Bag);
	ZEPHIR_INIT(Phalcon_Session_Exception);
	ZEPHIR_INIT(Phalcon_Tag);
	ZEPHIR_INIT(Phalcon_Tag_Exception);
	ZEPHIR_INIT(Phalcon_Tag_Select);
	ZEPHIR_INIT(Phalcon_Text);
	ZEPHIR_INIT(Phalcon_Translate);
	ZEPHIR_INIT(Phalcon_Translate_Adapter_Csv);
	ZEPHIR_INIT(Phalcon_Translate_Adapter_Gettext);
	ZEPHIR_INIT(Phalcon_Translate_Adapter_NativeArray);
	ZEPHIR_INIT(Phalcon_Translate_Exception);
	ZEPHIR_INIT(Phalcon_Translate_Interpolator_AssociativeArray);
	ZEPHIR_INIT(Phalcon_Translate_Interpolator_IndexedArray);
	ZEPHIR_INIT(Phalcon_Validation);
	ZEPHIR_INIT(Phalcon_Validation_Exception);
	ZEPHIR_INIT(Phalcon_Validation_Message);
	ZEPHIR_INIT(Phalcon_Validation_Message_Group);
	ZEPHIR_INIT(Phalcon_Validation_Validator_Alnum);
	ZEPHIR_INIT(Phalcon_Validation_Validator_Alpha);
	ZEPHIR_INIT(Phalcon_Validation_Validator_Between);
	ZEPHIR_INIT(Phalcon_Validation_Validator_Confirmation);
	ZEPHIR_INIT(Phalcon_Validation_Validator_Digit);
	ZEPHIR_INIT(Phalcon_Validation_Validator_Email);
	ZEPHIR_INIT(Phalcon_Validation_Validator_ExclusionIn);
	ZEPHIR_INIT(Phalcon_Validation_Validator_File);
	ZEPHIR_INIT(Phalcon_Validation_Validator_Identical);
	ZEPHIR_INIT(Phalcon_Validation_Validator_InclusionIn);
	ZEPHIR_INIT(Phalcon_Validation_Validator_Numericality);
	ZEPHIR_INIT(Phalcon_Validation_Validator_PresenceOf);
	ZEPHIR_INIT(Phalcon_Validation_Validator_Regex);
	ZEPHIR_INIT(Phalcon_Validation_Validator_StringLength);
	ZEPHIR_INIT(Phalcon_Validation_Validator_Uniqueness);
	ZEPHIR_INIT(Phalcon_Validation_Validator_Url);
	ZEPHIR_INIT(Phalcon_Version);
	ZEPHIR_INIT(phalcon_0__closure);

#if PHP_VERSION_ID < 50500
	setlocale(LC_ALL, old_lc_all);
	free(old_lc_all);
#endif
	return SUCCESS;
}
Пример #11
0
static PHP_MINIT_FUNCTION(dotphp)
{
#if PHP_VERSION_ID < 50500
	char* old_lc_all = setlocale(LC_ALL, NULL);
	if (old_lc_all) {
		size_t len = strlen(old_lc_all);
		char *tmp  = calloc(len+1, 1);
		if (UNEXPECTED(!tmp)) {
			return FAILURE;
		}

		memcpy(tmp, old_lc_all, len);
		old_lc_all = tmp;
	}

	setlocale(LC_ALL, "C");
#endif
	REGISTER_INI_ENTRIES();
	ZEPHIR_INIT(DotPHP_Interfaces_IController);
	ZEPHIR_INIT(DotPHP_Interfaces_IDb);
	ZEPHIR_INIT(DotPHP_Interfaces_IEncoder);
	ZEPHIR_INIT(DotPHP_Interfaces_ILogger);
	ZEPHIR_INIT(DotPHP_Interfaces_ISwooleEventDispatcher);
	ZEPHIR_INIT(DotPHP_Interfaces_IProcess);
	ZEPHIR_INIT(DotPHP_Interfaces_IRouteParser);
	ZEPHIR_INIT(DotPHP_Interfaces_ITemplate);
	ZEPHIR_INIT(DotPHP_BaseException);
	ZEPHIR_INIT(DotPHP_Base_DotBase);
	ZEPHIR_INIT(DotPHP_AbstractBootstrap);
	ZEPHIR_INIT(DotPHP_Base_ProcessBase);
	ZEPHIR_INIT(DotPHP_Bean_AbstractResponseMessage);
	ZEPHIR_INIT(DotPHP_ArgumentException);
	ZEPHIR_INIT(DotPHP_Base_MultiProcessBase);
	ZEPHIR_INIT(DotPHP_Base_SwooleBase);
	ZEPHIR_INIT(DotPHP_Base_WebControllerBase);
	ZEPHIR_INIT(DotPHP_Bean_CacheParameter);
	ZEPHIR_INIT(DotPHP_Bean_DbParameter);
	ZEPHIR_INIT(DotPHP_Bean_ResponseMessage);
	ZEPHIR_INIT(DotPHP_Bean_RouteMessage);
	ZEPHIR_INIT(DotPHP_CliBootstrap);
	ZEPHIR_INIT(DotPHP_ConfigurationException);
	ZEPHIR_INIT(DotPHP_Core_GenericLogger);
	ZEPHIR_INIT(DotPHP_Core_SocketClient);
	ZEPHIR_INIT(DotPHP_Core_SwooleEventDispatcher);
	ZEPHIR_INIT(DotPHP_DB_DbPdo);
	ZEPHIR_INIT(DotPHP_DataException);
	ZEPHIR_INIT(DotPHP_DbException);
	ZEPHIR_INIT(DotPHP_Dot);
	ZEPHIR_INIT(DotPHP_FileNotFoundException);
	ZEPHIR_INIT(DotPHP_HttpException);
	ZEPHIR_INIT(DotPHP_NotImplementedException);
	ZEPHIR_INIT(DotPHP_ParseException);
	ZEPHIR_INIT(DotPHP_PermissionException);
	ZEPHIR_INIT(DotPHP_RuntimeException);
	ZEPHIR_INIT(DotPHP_SocketException);
	ZEPHIR_INIT(DotPHP_SwooleBootstrap);
	ZEPHIR_INIT(DotPHP_Utils_ArrayUtil);
	ZEPHIR_INIT(DotPHP_Utils_Encoder);
	ZEPHIR_INIT(DotPHP_Utils_Number);
	ZEPHIR_INIT(DotPHP_Utils_Path);
	ZEPHIR_INIT(DotPHP_Utils_Probability);
	ZEPHIR_INIT(DotPHP_Utils_StringUtil);
	ZEPHIR_INIT(DotPHP_ValidateException);
	ZEPHIR_INIT(DotPHP_WebBootstrap);

#if PHP_VERSION_ID < 50500
	setlocale(LC_ALL, old_lc_all);
	free(old_lc_all);
#endif
	return SUCCESS;
}
Пример #12
0
static PHP_MINIT_FUNCTION(phalconplus)
{
	REGISTER_INI_ENTRIES();
	zephir_module_init();
	ZEPHIR_INIT(PhalconPlus_Assert_AssertionFailedException);
	ZEPHIR_INIT(PhalconPlus_Base_ProtoBuffer);
	ZEPHIR_INIT(PhalconPlus_Enum_AbstractEnum);
	ZEPHIR_INIT(PhalconPlus_Db_UnitOfWork_AbstractValue);
	ZEPHIR_INIT(PhalconPlus_Logger_Processor_AbstractProcessor);
	ZEPHIR_INIT(PhalconPlus_RPC_Client_AbstractClient);
	ZEPHIR_INIT(PhalconPlus_Base_AbstractRequest);
	ZEPHIR_INIT(PhalconPlus_Base_AbstractResponse);
	ZEPHIR_INIT(PhalconPlus_RPC_Server_AbstractServer);
	ZEPHIR_INIT(PhalconPlus_Assert_Assertion);
	ZEPHIR_INIT(PhalconPlus_Assert_InvalidArgumentException);
	ZEPHIR_INIT(PhalconPlus_Base_AbstractModule);
	ZEPHIR_INIT(PhalconPlus_Base_Exception);
	ZEPHIR_INIT(PhalconPlus_Base_Model);
	ZEPHIR_INIT(PhalconPlus_Base_ModuleDef);
	ZEPHIR_INIT(PhalconPlus_Base_Pagable);
	ZEPHIR_INIT(PhalconPlus_Base_Page);
	ZEPHIR_INIT(PhalconPlus_Base_ProtoOrderBy);
	ZEPHIR_INIT(PhalconPlus_Base_Service);
	ZEPHIR_INIT(PhalconPlus_Base_SimpleRequest);
	ZEPHIR_INIT(PhalconPlus_Base_SimpleResponse);
	ZEPHIR_INIT(PhalconPlus_Base_SimpleServer);
	ZEPHIR_INIT(PhalconPlus_Bootstrap);
	ZEPHIR_INIT(PhalconPlus_Db_Mysql);
	ZEPHIR_INIT(PhalconPlus_Db_UnitOfWork);
	ZEPHIR_INIT(PhalconPlus_Db_UnitOfWork_Field);
	ZEPHIR_INIT(PhalconPlus_Db_UnitOfWork_LastInsertId);
	ZEPHIR_INIT(PhalconPlus_Enum_AssertionCode);
	ZEPHIR_INIT(PhalconPlus_Enum_Exception);
	ZEPHIR_INIT(PhalconPlus_Enum_OrderByDirection);
	ZEPHIR_INIT(PhalconPlus_Enum_RunEnv);
	ZEPHIR_INIT(PhalconPlus_Enum_RunMode);
	ZEPHIR_INIT(PhalconPlus_Enum_Sys);
	ZEPHIR_INIT(PhalconPlus_Logger_Adapter_FilePlus);
	ZEPHIR_INIT(PhalconPlus_Logger_Formatter_LinePlus);
	ZEPHIR_INIT(PhalconPlus_Logger_Processor_Trace);
	ZEPHIR_INIT(PhalconPlus_Logger_Processor_Uid);
	ZEPHIR_INIT(PhalconPlus_RPC_Client_Adapter_Local);
	ZEPHIR_INIT(PhalconPlus_RPC_Client_Adapter_Remote);
	ZEPHIR_INIT(PhalconPlus_Volt_Extension_PhpFunction);
	ZEPHIR_INIT(phalconplus_0__closure);
	ZEPHIR_INIT(phalconplus_1__closure);
	ZEPHIR_INIT(phalconplus_2__closure);
	
	return SUCCESS;
}