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(); nusphere_dbg_present = (zend_get_extension("DBG") != NULL); /* 1. Register exceptions */ PHALCON_INIT(Phalcon_Exception); PHALCON_INIT(Phalcon_Acl_Exception); PHALCON_INIT(Phalcon_Annotations_Exception); PHALCON_INIT(Phalcon_Assets_Exception); PHALCON_INIT(Phalcon_Cache_Exception); PHALCON_INIT(Phalcon_Crypt_Exception); PHALCON_INIT(Phalcon_CLI_Console_Exception); PHALCON_INIT(Phalcon_CLI_Dispatcher_Exception); PHALCON_INIT(Phalcon_CLI_Router_Exception); PHALCON_INIT(Phalcon_Db_Exception); PHALCON_INIT(Phalcon_DI_Exception); PHALCON_INIT(Phalcon_Escaper_Exception); PHALCON_INIT(Phalcon_Events_Exception); PHALCON_INIT(Phalcon_Filter_Exception); PHALCON_INIT(Phalcon_Flash_Exception); PHALCON_INIT(Phalcon_Forms_Exception); PHALCON_INIT(Phalcon_Http_Cookie_Exception); PHALCON_INIT(Phalcon_Http_Request_Exception); PHALCON_INIT(Phalcon_Http_Response_Exception); PHALCON_INIT(Phalcon_Http_Client_Exception); PHALCON_INIT(Phalcon_Image_Exception); PHALCON_INIT(Phalcon_Mvc_Application_Exception); PHALCON_INIT(Phalcon_Mvc_Collection_Exception); PHALCON_INIT(Phalcon_Mvc_Dispatcher_Exception); PHALCON_INIT(Phalcon_Mvc_Model_Exception); PHALCON_INIT(Phalcon_Mvc_Model_Transaction_Exception); PHALCON_INIT(Phalcon_Mvc_Router_Exception); PHALCON_INIT(Phalcon_Mvc_Url_Exception); PHALCON_INIT(Phalcon_Mvc_View_Exception); PHALCON_INIT(Phalcon_Paginator_Exception); PHALCON_INIT(Phalcon_Tag_Exception); PHALCON_INIT(Phalcon_Validation_Exception); PHALCON_INIT(Phalcon_Security_Exception); PHALCON_INIT(Phalcon_Session_Exception); PHALCON_INIT(Phalcon_Config_Exception); PHALCON_INIT(Phalcon_Loader_Exception); PHALCON_INIT(Phalcon_Logger_Exception); PHALCON_INIT(Phalcon_Translate_Exception); PHALCON_INIT(Phalcon_Mvc_Micro_Exception); PHALCON_INIT(Phalcon_Mvc_JsonRpc_Exception); PHALCON_INIT(Phalcon_JsonRpc_Client_Exception); PHALCON_INIT(Phalcon_Chart_Exception); /* 2. Register interfaces */ PHALCON_INIT(Phalcon_DiInterface); PHALCON_INIT(Phalcon_DI_InjectionAwareInterface); PHALCON_INIT(Phalcon_Events_EventsAwareInterface); PHALCON_INIT(Phalcon_Acl_AdapterInterface); PHALCON_INIT(Phalcon_Acl_ResourceInterface); PHALCON_INIT(Phalcon_Acl_RoleInterface); PHALCON_INIT(Phalcon_Annotations_AdapterInterface); PHALCON_INIT(Phalcon_Annotations_ReaderInterface); PHALCON_INIT(Phalcon_Assets_FilterInterface); PHALCON_INIT(Phalcon_Cache_BackendInterface); PHALCON_INIT(Phalcon_Cache_FrontendInterface); PHALCON_INIT(Phalcon_CryptInterface); PHALCON_INIT(Phalcon_Db_AdapterInterface); PHALCON_INIT(Phalcon_Db_ColumnInterface); PHALCON_INIT(Phalcon_Db_DialectInterface); PHALCON_INIT(Phalcon_Db_IndexInterface); PHALCON_INIT(Phalcon_Db_ReferenceInterface); PHALCON_INIT(Phalcon_Db_ResultInterface); PHALCON_INIT(Phalcon_DispatcherInterface); PHALCON_INIT(Phalcon_DI_ServiceInterface); PHALCON_INIT(Phalcon_EscaperInterface); PHALCON_INIT(Phalcon_Events_ManagerInterface); PHALCON_INIT(Phalcon_FlashInterface); PHALCON_INIT(Phalcon_FilterInterface); PHALCON_INIT(Phalcon_Filter_UserFilterInterface); PHALCON_INIT(Phalcon_Forms_ElementInterface); PHALCON_INIT(Phalcon_Http_RequestInterface); PHALCON_INIT(Phalcon_Http_Request_FileInterface); PHALCON_INIT(Phalcon_Http_ResponseInterface); PHALCON_INIT(Phalcon_Http_Response_CookiesInterface); PHALCON_INIT(Phalcon_Http_Response_HeadersInterface); PHALCON_INIT(Phalcon_Http_Client_AdapterInterface); PHALCON_INIT(Phalcon_Image_AdapterInterface); PHALCON_INIT(Phalcon_Logger_AdapterInterface); PHALCON_INIT(Phalcon_Logger_FormatterInterface); PHALCON_INIT(Phalcon_Mvc_CollectionInterface); PHALCON_INIT(Phalcon_Mvc_Collection_ManagerInterface); PHALCON_INIT(Phalcon_Mvc_Collection_MessageInterface); PHALCON_INIT(Phalcon_Mvc_ControllerInterface); PHALCON_INIT(Phalcon_Mvc_DispatcherInterface); PHALCON_INIT(Phalcon_Mvc_Micro_CollectionInterface); PHALCON_INIT(Phalcon_Mvc_Micro_MiddlewareInterface); PHALCON_INIT(Phalcon_Mvc_ModelInterface); PHALCON_INIT(Phalcon_Mvc_Model_BehaviorInterface); PHALCON_INIT(Phalcon_Mvc_Model_CriteriaInterface); PHALCON_INIT(Phalcon_Mvc_Model_ManagerInterface); PHALCON_INIT(Phalcon_Mvc_Model_MessageInterface); PHALCON_INIT(Phalcon_Mvc_Model_MetaDataInterface); PHALCON_INIT(Phalcon_Mvc_Model_QueryInterface); PHALCON_INIT(Phalcon_Mvc_Model_Query_BuilderInterface); PHALCON_INIT(Phalcon_Mvc_Model_Query_StatusInterface); PHALCON_INIT(Phalcon_Mvc_Model_RelationInterface); PHALCON_INIT(Phalcon_Mvc_Model_ResultInterface); PHALCON_INIT(Phalcon_Mvc_Model_ResultsetInterface); PHALCON_INIT(Phalcon_Mvc_Model_TransactionInterface); PHALCON_INIT(Phalcon_Mvc_Model_Transaction_ManagerInterface); PHALCON_INIT(Phalcon_Mvc_Model_ValidatorInterface); PHALCON_INIT(Phalcon_Mvc_ModuleDefinitionInterface); PHALCON_INIT(Phalcon_Mvc_RouterInterface); PHALCON_INIT(Phalcon_Mvc_Router_RouteInterface); PHALCON_INIT(Phalcon_Mvc_UrlInterface); PHALCON_INIT(Phalcon_Mvc_ViewInterface); PHALCON_INIT(Phalcon_Mvc_View_EngineInterface); PHALCON_INIT(Phalcon_Paginator_AdapterInterface); PHALCON_INIT(Phalcon_Session_AdapterInterface); PHALCON_INIT(Phalcon_Session_BagInterface); PHALCON_INIT(Phalcon_Translate_AdapterInterface); PHALCON_INIT(Phalcon_Validation_ValidatorInterface); PHALCON_INIT(Phalcon_Validation_MessageInterface); /* 3. Register PSR-3 classes */ if (PHALCON_GLOBAL(register_psr3_classes)) { PHALCON_INIT(Psr_Log_LoggerAwareInterface); PHALCON_INIT(Psr_Log_LoggerInterface); PHALCON_INIT(Psr_Log_InvalidArgumentException); PHALCON_INIT(Psr_Log_LogLevel); PHALCON_INIT(Psr_Log_AbstractLogger); PHALCON_INIT(Psr_Log_NullLogger); PHALCON_INIT(Psr_Log_LoggerAwareTrait); PHALCON_INIT(Psr_Log_LoggerTrait); } /* 4. Register everything else */ PHALCON_INIT(Phalcon_Db_Adapter); PHALCON_INIT(Phalcon_DI_Injectable); PHALCON_INIT(Phalcon_DI); PHALCON_INIT(Phalcon_Forms_Element); PHALCON_INIT(Phalcon_Validation_Validator); PHALCON_INIT(Phalcon_Mvc_Model_Validator); PHALCON_INIT(Phalcon_Cache_Backend); PHALCON_INIT(Phalcon_Mvc_Model_MetaData); PHALCON_INIT(Phalcon_Db_Adapter_Pdo); PHALCON_INIT(Phalcon_Db_Dialect); PHALCON_INIT(Phalcon_Annotations_Adapter); PHALCON_INIT(Phalcon_Logger_Adapter); PHALCON_INIT(Phalcon_Logger_Formatter); PHALCON_INIT(Phalcon_Mvc_Model_Resultset); PHALCON_INIT(Phalcon_Mvc_Model_Behavior); PHALCON_INIT(Phalcon_Assets_Resource); PHALCON_INIT(Phalcon_Flash); PHALCON_INIT(Phalcon_Dispatcher); PHALCON_INIT(Phalcon_Mvc_View_Engine); PHALCON_INIT(Phalcon_Translate_Adapter); PHALCON_INIT(Phalcon_Cache_Frontend_Data); PHALCON_INIT(Phalcon_DI_FactoryDefault); PHALCON_INIT(Phalcon_Config); PHALCON_INIT(Phalcon_Mvc_Router); PHALCON_INIT(Phalcon_Acl_Adapter); PHALCON_INIT(Phalcon_Session_Adapter); PHALCON_INIT(Phalcon_Db); PHALCON_INIT(Phalcon_Acl); PHALCON_INIT(Phalcon_Tag); PHALCON_INIT(Phalcon_Cache_Multiple); PHALCON_INIT(Phalcon_Cache_Backend_Apc); PHALCON_INIT(Phalcon_Cache_Backend_File); PHALCON_INIT(Phalcon_Cache_Backend_Memory); PHALCON_INIT(Phalcon_Cache_Backend_Xcache); PHALCON_INIT(Phalcon_Cache_Backend_Mongo); PHALCON_INIT(Phalcon_Cache_Backend_Memcache); PHALCON_INIT(Phalcon_Cache_Backend_Libmemcached); PHALCON_INIT(Phalcon_Cache_Backend_Redis); PHALCON_INIT(Phalcon_Cache_Frontend_Json); PHALCON_INIT(Phalcon_Cache_Frontend_Output); PHALCON_INIT(Phalcon_Cache_Frontend_None); PHALCON_INIT(Phalcon_Cache_Frontend_Base64); PHALCON_INIT(Phalcon_Cache_Frontend_Igbinary); PHALCON_INIT(Phalcon_Tag_Select); PHALCON_INIT(Phalcon_Paginator_Adapter_Model); PHALCON_INIT(Phalcon_Paginator_Adapter_NativeArray); PHALCON_INIT(Phalcon_Paginator_Adapter_QueryBuilder); PHALCON_INIT(Phalcon_Paginator_Adapter_Sql); PHALCON_INIT(Phalcon_Validation); PHALCON_INIT(Phalcon_Validation_Message); PHALCON_INIT(Phalcon_Validation_Message_Group); PHALCON_INIT(Phalcon_Validation_Validator_Regex); PHALCON_INIT(Phalcon_Validation_Validator_Email); PHALCON_INIT(Phalcon_Validation_Validator_Between); PHALCON_INIT(Phalcon_Validation_Validator_Identical); PHALCON_INIT(Phalcon_Validation_Validator_PresenceOf); PHALCON_INIT(Phalcon_Validation_Validator_InclusionIn); PHALCON_INIT(Phalcon_Validation_Validator_StringLength); PHALCON_INIT(Phalcon_Validation_Validator_ExclusionIn); PHALCON_INIT(Phalcon_Validation_Validator_Confirmation); PHALCON_INIT(Phalcon_Validation_Validator_Url); PHALCON_INIT(Phalcon_Validation_Validator_File); PHALCON_INIT(Phalcon_Db_Index); PHALCON_INIT(Phalcon_Db_Column); PHALCON_INIT(Phalcon_Db_Adapter_Pdo_Sqlite); PHALCON_INIT(Phalcon_Db_Adapter_Pdo_Mysql); PHALCON_INIT(Phalcon_Db_Adapter_Pdo_Oracle); PHALCON_INIT(Phalcon_Db_Adapter_Pdo_Postgresql); PHALCON_INIT(Phalcon_Db_Dialect_Sqlite); PHALCON_INIT(Phalcon_Db_Dialect_Mysql); PHALCON_INIT(Phalcon_Db_Dialect_Oracle); PHALCON_INIT(Phalcon_Db_Dialect_Postgresql); PHALCON_INIT(Phalcon_Db_Profiler); PHALCON_INIT(Phalcon_Db_Profiler_Item); PHALCON_INIT(Phalcon_Db_RawValue); PHALCON_INIT(Phalcon_Db_Reference); PHALCON_INIT(Phalcon_Db_Result_Pdo); PHALCON_INIT(Phalcon_Acl_Role); PHALCON_INIT(Phalcon_Acl_Resource); PHALCON_INIT(Phalcon_Acl_Adapter_Memory); PHALCON_INIT(Phalcon_Kernel); PHALCON_INIT(Phalcon_Debug); PHALCON_INIT(Phalcon_Text); PHALCON_INIT(Phalcon_Date); PHALCON_INIT(Phalcon_Security); PHALCON_INIT(Phalcon_Version); PHALCON_INIT(Phalcon_Session_Bag); PHALCON_INIT(Phalcon_Session_Adapter_Files); PHALCON_INIT(Phalcon_Session_Adapter_Memcache); PHALCON_INIT(Phalcon_Session_Adapter_Libmemcached); PHALCON_INIT(Phalcon_Filter); PHALCON_INIT(Phalcon_DI_FactoryDefault_CLI); PHALCON_INIT(Phalcon_DI_Service); PHALCON_INIT(Phalcon_DI_Service_Builder); PHALCON_INIT(Phalcon_Flash_Direct); PHALCON_INIT(Phalcon_Flash_Session); PHALCON_INIT(Phalcon_CLI_Task); PHALCON_INIT(Phalcon_CLI_Router); PHALCON_INIT(Phalcon_CLI_Console); PHALCON_INIT(Phalcon_CLI_Dispatcher); PHALCON_INIT(Phalcon_Annotations_Reader); PHALCON_INIT(Phalcon_Annotations_Annotation); PHALCON_INIT(Phalcon_Annotations_Adapter_Apc); PHALCON_INIT(Phalcon_Annotations_Collection); PHALCON_INIT(Phalcon_Annotations_Reflection); PHALCON_INIT(Phalcon_Annotations_Adapter_Xcache); PHALCON_INIT(Phalcon_Annotations_Adapter_Files); PHALCON_INIT(Phalcon_Annotations_Adapter_Memory); PHALCON_INIT(Phalcon_Loader); PHALCON_INIT(Phalcon_Logger); PHALCON_INIT(Phalcon_Logger_Item); PHALCON_INIT(Phalcon_Logger_Multiple); PHALCON_INIT(Phalcon_Logger_Formatter_Json); PHALCON_INIT(Phalcon_Logger_Formatter_Line); PHALCON_INIT(Phalcon_Logger_Formatter_Firephp); PHALCON_INIT(Phalcon_Logger_Adapter_Stream); PHALCON_INIT(Phalcon_Logger_Adapter_Syslog); PHALCON_INIT(Phalcon_Logger_Adapter_File); PHALCON_INIT(Phalcon_Logger_Adapter_Firephp); PHALCON_INIT(Phalcon_Logger_Formatter_Syslog); PHALCON_INIT(Phalcon_Config_Adapter_Ini); PHALCON_INIT(Phalcon_Config_Adapter_Json); PHALCON_INIT(Phalcon_Config_Adapter_Php); PHALCON_INIT(Phalcon_Config_Adapter_Yaml); PHALCON_INIT(Phalcon_Forms_Form); PHALCON_INIT(Phalcon_Forms_Manager); PHALCON_INIT(Phalcon_Forms_Element_Text); PHALCON_INIT(Phalcon_Forms_Element_Date); PHALCON_INIT(Phalcon_Forms_Element_File); PHALCON_INIT(Phalcon_Forms_Element_Hidden); PHALCON_INIT(Phalcon_Forms_Element_Select); PHALCON_INIT(Phalcon_Forms_Element_Check); PHALCON_INIT(Phalcon_Forms_Element_Numeric); PHALCON_INIT(Phalcon_Forms_Element_Email); PHALCON_INIT(Phalcon_Forms_Element_Submit); PHALCON_INIT(Phalcon_Forms_Element_Password); PHALCON_INIT(Phalcon_Forms_Element_TextArea); PHALCON_INIT(Phalcon_Forms_Element_Radio); PHALCON_INIT(Phalcon_Crypt); PHALCON_INIT(Phalcon_Translate_Adapter_NativeArray); PHALCON_INIT(Phalcon_Translate_Adapter_Gettext); PHALCON_INIT(Phalcon_Escaper); PHALCON_INIT(Phalcon_Assets_Manager); PHALCON_INIT(Phalcon_Assets_Resource_Js); PHALCON_INIT(Phalcon_Assets_Collection); PHALCON_INIT(Phalcon_Assets_Filters_None); PHALCON_INIT(Phalcon_Assets_Filters_Cssmin); PHALCON_INIT(Phalcon_Assets_Filters_Jsmin); PHALCON_INIT(Phalcon_Assets_Resource_Css); PHALCON_INIT(Phalcon_Http_Request); PHALCON_INIT(Phalcon_Http_Cookie); PHALCON_INIT(Phalcon_Http_Response); PHALCON_INIT(Phalcon_Http_Request_File); PHALCON_INIT(Phalcon_Http_Response_Cookies); PHALCON_INIT(Phalcon_Http_Response_Headers); PHALCON_INIT(Phalcon_Http_Uri); PHALCON_INIT(Phalcon_Http_Client_Header); PHALCON_INIT(Phalcon_Http_Client_Response); PHALCON_INIT(Phalcon_Http_Client_Adapter); PHALCON_INIT(Phalcon_Http_Client_Adapter_Curl); PHALCON_INIT(Phalcon_Http_Client_Adapter_Stream); PHALCON_INIT(Phalcon_Mvc_JsonRpc); PHALCON_INIT(Phalcon_JsonRpc_Client); PHALCON_INIT(Phalcon_JsonRpc_Client_Response); PHALCON_INIT(Phalcon_Queue_Beanstalk); PHALCON_INIT(Phalcon_Queue_Beanstalk_Job); PHALCON_INIT(Phalcon_Mvc_View); PHALCON_INIT(Phalcon_Mvc_Url); PHALCON_INIT(Phalcon_Mvc_Model); PHALCON_INIT(Phalcon_Mvc_Micro); PHALCON_INIT(Phalcon_Mvc_Application); PHALCON_INIT(Phalcon_Mvc_Collection); PHALCON_INIT(Phalcon_Mvc_Controller); PHALCON_INIT(Phalcon_Mvc_Collection_Document); PHALCON_INIT(Phalcon_Mvc_Collection_Manager); PHALCON_INIT(Phalcon_Mvc_Collection_Message); PHALCON_INIT(Phalcon_Mvc_Dispatcher); PHALCON_INIT(Phalcon_Mvc_Model_Row); PHALCON_INIT(Phalcon_Mvc_Model_Query); PHALCON_INIT(Phalcon_Mvc_Micro_Collection); PHALCON_INIT(Phalcon_Mvc_Micro_Exception); PHALCON_INIT(Phalcon_Mvc_Micro_LazyLoader); PHALCON_INIT(Phalcon_Mvc_Model_Criteria); PHALCON_INIT(Phalcon_Mvc_Model_Manager); PHALCON_INIT(Phalcon_Mvc_Model_Message); PHALCON_INIT(Phalcon_Mvc_Model_Relation); PHALCON_INIT(Phalcon_Mvc_Model_Transaction); PHALCON_INIT(Phalcon_Mvc_Model_Query_Lang); PHALCON_INIT(Phalcon_Mvc_Model_Validator_Url); PHALCON_INIT(Phalcon_Mvc_Model_Query_Status); PHALCON_INIT(Phalcon_Mvc_Model_MetaData_Apc); PHALCON_INIT(Phalcon_Mvc_Model_MetaData_Files); PHALCON_INIT(Phalcon_Mvc_Model_Query_Builder); PHALCON_INIT(Phalcon_Mvc_Model_Validator_Regex); PHALCON_INIT(Phalcon_Mvc_Model_ValidationFailed); PHALCON_INIT(Phalcon_Mvc_Model_Resultset_Simple); PHALCON_INIT(Phalcon_Mvc_Model_Resultset_Complex); PHALCON_INIT(Phalcon_Mvc_Model_MetaData_Memory); PHALCON_INIT(Phalcon_Mvc_Model_MetaData_Xcache); PHALCON_INIT(Phalcon_Mvc_Model_Validator_Email); PHALCON_INIT(Phalcon_Mvc_Model_MetaData_Session); PHALCON_INIT(Phalcon_Mvc_Model_MetaData_Memcache); PHALCON_INIT(Phalcon_Mvc_Model_MetaData_Libmemcached); PHALCON_INIT(Phalcon_Mvc_Model_Validator_Uniqueness); PHALCON_INIT(Phalcon_Mvc_Model_Validator_PresenceOf); PHALCON_INIT(Phalcon_Mvc_Model_Transaction_Failed); PHALCON_INIT(Phalcon_Mvc_Model_Behavior_SoftDelete); PHALCON_INIT(Phalcon_Mvc_Model_Transaction_Manager); PHALCON_INIT(Phalcon_Mvc_Model_Behavior_Timestampable); PHALCON_INIT(Phalcon_Mvc_Model_MetaData_Strategy_Annotations); PHALCON_INIT(Phalcon_Mvc_Model_MetaData_Strategy_Introspection); PHALCON_INIT(Phalcon_Mvc_Model_Validator_Inclusionin); PHALCON_INIT(Phalcon_Mvc_Model_Validator_Numericality); PHALCON_INIT(Phalcon_Mvc_Model_Validator_Exclusionin); PHALCON_INIT(Phalcon_Mvc_Model_Validator_StringLength); PHALCON_INIT(Phalcon_Mvc_Router_Route); PHALCON_INIT(Phalcon_Mvc_Router_Group); PHALCON_INIT(Phalcon_Mvc_Router_Annotations); PHALCON_INIT(Phalcon_Mvc_User_Module); PHALCON_INIT(Phalcon_Mvc_User_Plugin); PHALCON_INIT(Phalcon_Mvc_User_Component); PHALCON_INIT(Phalcon_Mvc_View_Simple); PHALCON_INIT(Phalcon_Mvc_View_Engine_Volt); PHALCON_INIT(Phalcon_Mvc_View_Engine_Php); PHALCON_INIT(Phalcon_Mvc_View_Engine_Volt_Compiler); PHALCON_INIT(Phalcon_Events_Event); PHALCON_INIT(Phalcon_Events_Manager); PHALCON_INIT(Phalcon_Image); PHALCON_INIT(Phalcon_Image_Adapter); PHALCON_INIT(Phalcon_Image_Adapter_GD); PHALCON_INIT(Phalcon_Image_Adapter_Imagick); PHALCON_INIT(Phalcon_Amf); PHALCON_INIT(Phalcon_Amf_Header); PHALCON_INIT(Phalcon_Amf_Message); PHALCON_INIT(Phalcon_Amf_Packet); PHALCON_INIT(Phalcon_Amf_Deserializer); PHALCON_INIT(Phalcon_Amf_Serializer); PHALCON_INIT(Phalcon_Amf_Exception); PHALCON_INIT(Phalcon_Mvc_Amf); PHALCON_INIT(Phalcon_Mvc_Amf_Exception); PHALCON_INIT(Phalcon_Registry); PHALCON_INIT(Phalcon_Mvc_Model_Validator_Json); PHALCON_INIT(Phalcon_Arr); PHALCON_INIT(Phalcon_Chart_QRcode); PHALCON_INIT(Phalcon_Scws); #if PHP_VERSION_ID < 50500 setlocale(LC_ALL, old_lc_all); free(old_lc_all); #endif orig_execute_internal = zend_execute_internal; if (!zend_execute_internal && !getenv("PHALCON_NO_RVO")) { zend_execute_internal = phalcon_execute_internal; } #if 0 { zend_module_entry *entry; if (zend_hash_find(&module_registry, ZEND_STRS("mbstring"), (void**)&entry) == SUCCESS) { #ifdef ZTS mbstring_globals_id = *(entry->globals_id_ptr); #else mbstring_globals = ((zend_mbstring_globals*)(entry->globals_ptr)); #endif } } #endif return SUCCESS; }
static PHP_MINIT_FUNCTION(phalcon){ if (!spl_ce_Countable) { fprintf(stderr, "Phalcon Error: Interface Countable was not found"); return FAILURE; } if (!zend_ce_iterator) { fprintf(stderr, "Phalcon Error: Interface Iterator was not found"); return FAILURE; } if (!zend_ce_arrayaccess) { fprintf(stderr, "Phalcon Error: Interface ArrayAccess was not found"); return FAILURE; } if (!zend_ce_serializable) { fprintf(stderr, "Phalcon Error: Interface Serializable was not found"); return FAILURE; } if (!spl_ce_SeekableIterator) { fprintf(stderr, "Phalcon Error: Interface SeekableIterator was not found"); return FAILURE; } PHALCON_INIT(Phalcon_DI_InjectionAwareInterface); PHALCON_INIT(Phalcon_Forms_ElementInterface); PHALCON_INIT(Phalcon_Mvc_Model_ValidatorInterface); PHALCON_INIT(Phalcon_Validation_ValidatorInterface); PHALCON_INIT(Phalcon_Events_EventsAwareInterface); PHALCON_INIT(Phalcon_Cache_BackendInterface); PHALCON_INIT(Phalcon_Cache_FrontendInterface); PHALCON_INIT(Phalcon_Mvc_Model_MetaDataInterface); PHALCON_INIT(Phalcon_Db_DialectInterface); PHALCON_INIT(Phalcon_Db_AdapterInterface); PHALCON_INIT(Phalcon_Annotations_AdapterInterface); PHALCON_INIT(Phalcon_Logger_AdapterInterface); PHALCON_INIT(Phalcon_Logger_FormatterInterface); PHALCON_INIT(Phalcon_Paginator_AdapterInterface); PHALCON_INIT(Phalcon_Mvc_View_EngineInterface); PHALCON_INIT(Phalcon_Mvc_Model_ResultsetInterface); PHALCON_INIT(Phalcon_Mvc_Model_BehaviorInterface); PHALCON_INIT(Phalcon_FlashInterface); PHALCON_INIT(Phalcon_Mvc_Model_ResultInterface); PHALCON_INIT(Phalcon_Exception); PHALCON_INIT(Phalcon_Db_Adapter); PHALCON_INIT(Phalcon_DispatcherInterface); PHALCON_INIT(Phalcon_DI_Injectable); PHALCON_INIT(Phalcon_Mvc_DispatcherInterface); PHALCON_INIT(Phalcon_Mvc_Model_QueryInterface); PHALCON_INIT(Phalcon_Mvc_Router_RouteInterface); PHALCON_INIT(Phalcon_Mvc_Model_Query_StatusInterface); PHALCON_INIT(Phalcon_Mvc_Model_Query_BuilderInterface); PHALCON_INIT(Phalcon_Mvc_CollectionInterface); PHALCON_INIT(Phalcon_Mvc_Model_TransactionInterface); PHALCON_INIT(Phalcon_Mvc_UrlInterface); PHALCON_INIT(Phalcon_Mvc_ViewInterface); PHALCON_INIT(Phalcon_Http_RequestInterface); PHALCON_INIT(Phalcon_Http_ResponseInterface); PHALCON_INIT(Phalcon_Db_ReferenceInterface); PHALCON_INIT(Phalcon_Db_ColumnInterface); PHALCON_INIT(Phalcon_Db_IndexInterface); PHALCON_INIT(Phalcon_Http_Request_FileInterface); PHALCON_INIT(Phalcon_Http_Response_CookiesInterface); PHALCON_INIT(Phalcon_Mvc_ModelInterface); PHALCON_INIT(Phalcon_Mvc_Micro_CollectionInterface); PHALCON_INIT(Phalcon_Mvc_RouterInterface); PHALCON_INIT(Phalcon_Http_Response_HeadersInterface); PHALCON_INIT(Phalcon_DiInterface); PHALCON_INIT(Phalcon_Mvc_Model_RelationInterface); PHALCON_INIT(Phalcon_Acl_ResourceInterface); PHALCON_INIT(Phalcon_Mvc_Model_ManagerInterface); PHALCON_INIT(Phalcon_FilterInterface); PHALCON_INIT(Phalcon_CryptInterface); PHALCON_INIT(Phalcon_Acl_RoleInterface); PHALCON_INIT(Phalcon_Session_BagInterface); PHALCON_INIT(Phalcon_Session_AdapterInterface); PHALCON_INIT(Phalcon_DI_ServiceInterface); PHALCON_INIT(Phalcon_Annotations_ReaderInterface); PHALCON_INIT(Phalcon_Events_ManagerInterface); PHALCON_INIT(Phalcon_EscaperInterface); PHALCON_INIT(Phalcon_Acl_AdapterInterface); PHALCON_INIT(Phalcon_Mvc_Model_Transaction_ManagerInterface); PHALCON_INIT(Phalcon_Mvc_Model_CriteriaInterface); PHALCON_INIT(Phalcon_Translate_AdapterInterface); PHALCON_INIT(Phalcon_Mvc_Model_MessageInterface); PHALCON_INIT(Phalcon_Mvc_Model_Exception); PHALCON_INIT(Phalcon_DI); PHALCON_INIT(Phalcon_Forms_Element); PHALCON_INIT(Phalcon_Validation_Validator); PHALCON_INIT(Phalcon_Mvc_Model_Validator); PHALCON_INIT(Phalcon_Cache_Backend); PHALCON_INIT(Phalcon_Mvc_Model_MetaData); PHALCON_INIT(Phalcon_Db_Adapter_Pdo); PHALCON_INIT(Phalcon_Db_Dialect); PHALCON_INIT(Phalcon_Annotations_Adapter); PHALCON_INIT(Phalcon_Logger_Adapter); PHALCON_INIT(Phalcon_Logger_Formatter); PHALCON_INIT(Phalcon_Mvc_Model_Resultset); PHALCON_INIT(Phalcon_Mvc_Model_Behavior); PHALCON_INIT(Phalcon_Assets_Resource); PHALCON_INIT(Phalcon_Flash); PHALCON_INIT(Phalcon_Dispatcher); PHALCON_INIT(Phalcon_Mvc_View_Engine); PHALCON_INIT(Phalcon_Translate_Adapter); PHALCON_INIT(Phalcon_Cache_Frontend_Data); PHALCON_INIT(Phalcon_DI_FactoryDefault); PHALCON_INIT(Phalcon_Config); PHALCON_INIT(Phalcon_Mvc_Model_Transaction_Exception); PHALCON_INIT(Phalcon_Mvc_Router); PHALCON_INIT(Phalcon_Acl_Adapter); PHALCON_INIT(Phalcon_Session_Adapter); PHALCON_INIT(Phalcon_Db); PHALCON_INIT(Phalcon_Acl); PHALCON_INIT(Phalcon_Tag); PHALCON_INIT(Phalcon_Cache_Exception); PHALCON_INIT(Phalcon_Cache_Multiple); PHALCON_INIT(Phalcon_Cache_Backend_Apc); PHALCON_INIT(Phalcon_Cache_Backend_File); PHALCON_INIT(Phalcon_Cache_Backend_Memory); PHALCON_INIT(Phalcon_Cache_Backend_Xcache); PHALCON_INIT(Phalcon_Cache_Backend_Mongo); PHALCON_INIT(Phalcon_Cache_Backend_Memcache); PHALCON_INIT(Phalcon_Cache_Frontend_Json); PHALCON_INIT(Phalcon_Cache_Frontend_Output); PHALCON_INIT(Phalcon_Cache_Frontend_None); PHALCON_INIT(Phalcon_Cache_Frontend_Base64); PHALCON_INIT(Phalcon_Cache_Frontend_Igbinary); PHALCON_INIT(Phalcon_Tag_Select); PHALCON_INIT(Phalcon_Tag_Exception); PHALCON_INIT(Phalcon_Paginator_Exception); PHALCON_INIT(Phalcon_Paginator_Adapter_Model); PHALCON_INIT(Phalcon_Paginator_Adapter_NativeArray); PHALCON_INIT(Phalcon_Paginator_Adapter_QueryBuilder); PHALCON_INIT(Phalcon_Validation); PHALCON_INIT(Phalcon_Validation_Message); PHALCON_INIT(Phalcon_Validation_Exception); PHALCON_INIT(Phalcon_Validation_Message_Group); PHALCON_INIT(Phalcon_Validation_Validator_Regex); PHALCON_INIT(Phalcon_Validation_Validator_Email); PHALCON_INIT(Phalcon_Validation_Validator_Between); PHALCON_INIT(Phalcon_Validation_Validator_Identical); PHALCON_INIT(Phalcon_Validation_Validator_PresenceOf); PHALCON_INIT(Phalcon_Validation_Validator_InclusionIn); PHALCON_INIT(Phalcon_Validation_Validator_StringLength); PHALCON_INIT(Phalcon_Validation_Validator_ExclusionIn); PHALCON_INIT(Phalcon_Validation_Validator_Confirmation); PHALCON_INIT(Phalcon_Db_Index); PHALCON_INIT(Phalcon_Db_Column); PHALCON_INIT(Phalcon_Db_Adapter_Pdo_Sqlite); PHALCON_INIT(Phalcon_Db_Adapter_Pdo_Mysql); PHALCON_INIT(Phalcon_Db_Adapter_Pdo_Oracle); PHALCON_INIT(Phalcon_Db_Adapter_Pdo_Postgresql); PHALCON_INIT(Phalcon_Db_Dialect_Sqlite); PHALCON_INIT(Phalcon_Db_Dialect_Mysql); PHALCON_INIT(Phalcon_Db_Dialect_Oracle); PHALCON_INIT(Phalcon_Db_Dialect_Postgresql); PHALCON_INIT(Phalcon_Db_Exception); PHALCON_INIT(Phalcon_Db_Profiler); PHALCON_INIT(Phalcon_Db_Profiler_Item); PHALCON_INIT(Phalcon_Db_RawValue); PHALCON_INIT(Phalcon_Db_Reference); PHALCON_INIT(Phalcon_Db_Result_Pdo); PHALCON_INIT(Phalcon_Db_ResultInterface); PHALCON_INIT(Phalcon_Acl_Role); PHALCON_INIT(Phalcon_Acl_Resource); PHALCON_INIT(Phalcon_Acl_Adapter_Memory); PHALCON_INIT(Phalcon_Acl_Exception); PHALCON_INIT(Phalcon_Kernel); PHALCON_INIT(Phalcon_Debug); PHALCON_INIT(Phalcon_Text); PHALCON_INIT(Phalcon_Security); PHALCON_INIT(Phalcon_Security_Exception); PHALCON_INIT(Phalcon_Version); PHALCON_INIT(Phalcon_Session); PHALCON_INIT(Phalcon_Session_Bag); PHALCON_INIT(Phalcon_Session_Exception); PHALCON_INIT(Phalcon_Session_Adapter_Files); PHALCON_INIT(Phalcon_Filter); PHALCON_INIT(Phalcon_DI_Exception); PHALCON_INIT(Phalcon_DI_FactoryDefault_CLI); PHALCON_INIT(Phalcon_DI_Service); PHALCON_INIT(Phalcon_DI_Service_Builder); PHALCON_INIT(Phalcon_Filter_Exception); PHALCON_INIT(Phalcon_Filter_UserFilterInterface); PHALCON_INIT(Phalcon_Flash_Direct); PHALCON_INIT(Phalcon_Flash_Exception); PHALCON_INIT(Phalcon_Flash_Session); PHALCON_INIT(Phalcon_CLI_Task); PHALCON_INIT(Phalcon_CLI_Router); PHALCON_INIT(Phalcon_CLI_Console); PHALCON_INIT(Phalcon_CLI_Console_Exception); PHALCON_INIT(Phalcon_CLI_Dispatcher); PHALCON_INIT(Phalcon_CLI_Dispatcher_Exception); PHALCON_INIT(Phalcon_CLI_Router_Exception); PHALCON_INIT(Phalcon_Annotations_Reader); PHALCON_INIT(Phalcon_Annotations_Exception); PHALCON_INIT(Phalcon_Annotations_Annotation); PHALCON_INIT(Phalcon_Annotations_Adapter_Apc); PHALCON_INIT(Phalcon_Annotations_Collection); PHALCON_INIT(Phalcon_Annotations_Reflection); PHALCON_INIT(Phalcon_Annotations_Adapter_Xcache); PHALCON_INIT(Phalcon_Annotations_Adapter_Files); PHALCON_INIT(Phalcon_Annotations_Adapter_Memory); PHALCON_INIT(Phalcon_Loader); PHALCON_INIT(Phalcon_Logger); PHALCON_INIT(Phalcon_Loader_Exception); PHALCON_INIT(Phalcon_Logger_Item); PHALCON_INIT(Phalcon_Logger_Multiple); PHALCON_INIT(Phalcon_Logger_Exception); PHALCON_INIT(Phalcon_Logger_Formatter_Json); PHALCON_INIT(Phalcon_Logger_Formatter_Line); PHALCON_INIT(Phalcon_Logger_Formatter_Firephp); PHALCON_INIT(Phalcon_Logger_Adapter_Stream); PHALCON_INIT(Phalcon_Logger_Adapter_Syslog); PHALCON_INIT(Phalcon_Logger_Adapter_File); PHALCON_INIT(Phalcon_Logger_Adapter_Firephp); PHALCON_INIT(Phalcon_Logger_Formatter_Syslog); PHALCON_INIT(Phalcon_Config_Adapter_Ini); PHALCON_INIT(Phalcon_Config_Adapter_Json); PHALCON_INIT(Phalcon_Config_Exception); PHALCON_INIT(Phalcon_Forms_Form); PHALCON_INIT(Phalcon_Forms_Manager); PHALCON_INIT(Phalcon_Forms_Exception); PHALCON_INIT(Phalcon_Forms_Element_Text); PHALCON_INIT(Phalcon_Forms_Element_Date); PHALCON_INIT(Phalcon_Forms_Element_File); PHALCON_INIT(Phalcon_Forms_Element_Hidden); PHALCON_INIT(Phalcon_Forms_Element_Select); PHALCON_INIT(Phalcon_Forms_Element_Check); PHALCON_INIT(Phalcon_Forms_Element_Numeric); PHALCON_INIT(Phalcon_Forms_Element_Email); PHALCON_INIT(Phalcon_Forms_Element_Submit); PHALCON_INIT(Phalcon_Forms_Element_Password); PHALCON_INIT(Phalcon_Forms_Element_TextArea); PHALCON_INIT(Phalcon_Crypt); PHALCON_INIT(Phalcon_Translate); PHALCON_INIT(Phalcon_Translate_Exception); PHALCON_INIT(Phalcon_Translate_Adapter_NativeArray); PHALCON_INIT(Phalcon_Crypt_Exception); PHALCON_INIT(Phalcon_Escaper); PHALCON_INIT(Phalcon_Escaper_Exception); PHALCON_INIT(Phalcon_Assets_Manager); PHALCON_INIT(Phalcon_Assets_Resource_Js); PHALCON_INIT(Phalcon_Assets_Collection); PHALCON_INIT(Phalcon_Assets_Exception); PHALCON_INIT(Phalcon_Assets_Filters_None); PHALCON_INIT(Phalcon_Assets_Filters_Cssmin); PHALCON_INIT(Phalcon_Assets_Filters_Jsmin); PHALCON_INIT(Phalcon_Assets_Resource_Css); PHALCON_INIT(Phalcon_Assets_FilterInterface); PHALCON_INIT(Phalcon_Http_Request); PHALCON_INIT(Phalcon_Http_Cookie); PHALCON_INIT(Phalcon_Http_Response); PHALCON_INIT(Phalcon_Http_Cookie_Exception); PHALCON_INIT(Phalcon_Http_Request_File); PHALCON_INIT(Phalcon_Http_Response_Cookies); PHALCON_INIT(Phalcon_Http_Response_Headers); PHALCON_INIT(Phalcon_Http_Request_Exception); PHALCON_INIT(Phalcon_Http_Response_Exception); PHALCON_INIT(Phalcon_Queue_Beanstalk); PHALCON_INIT(Phalcon_Queue_Beanstalk_Job); PHALCON_INIT(Phalcon_Mvc_View); PHALCON_INIT(Phalcon_Mvc_Url); PHALCON_INIT(Phalcon_Mvc_Model); PHALCON_INIT(Phalcon_Mvc_Micro); PHALCON_INIT(Phalcon_Mvc_Application); PHALCON_INIT(Phalcon_Mvc_Application_Exception); PHALCON_INIT(Phalcon_Mvc_Collection); PHALCON_INIT(Phalcon_Mvc_Controller); PHALCON_INIT(Phalcon_Mvc_Collection_Exception); PHALCON_INIT(Phalcon_Mvc_Collection_Document); PHALCON_INIT(Phalcon_Mvc_Collection_Manager); PHALCON_INIT(Phalcon_Mvc_Collection_ManagerInterface); PHALCON_INIT(Phalcon_Mvc_ControllerInterface); PHALCON_INIT(Phalcon_Mvc_Dispatcher); PHALCON_INIT(Phalcon_Mvc_Dispatcher_Exception); PHALCON_INIT(Phalcon_Mvc_Model_Row); PHALCON_INIT(Phalcon_Mvc_Model_Query); PHALCON_INIT(Phalcon_Mvc_Micro_Collection); PHALCON_INIT(Phalcon_Mvc_Micro_Exception); PHALCON_INIT(Phalcon_Mvc_Micro_LazyLoader); PHALCON_INIT(Phalcon_Mvc_Micro_MiddlewareInterface); PHALCON_INIT(Phalcon_Mvc_Model_Criteria); PHALCON_INIT(Phalcon_Mvc_Model_Manager); PHALCON_INIT(Phalcon_Mvc_Model_Message); PHALCON_INIT(Phalcon_Mvc_Model_Relation); PHALCON_INIT(Phalcon_Mvc_Model_Transaction); PHALCON_INIT(Phalcon_Mvc_Model_Query_Lang); PHALCON_INIT(Phalcon_Mvc_Model_Validator_Url); PHALCON_INIT(Phalcon_Mvc_Model_Query_Status); PHALCON_INIT(Phalcon_Mvc_Model_MetaData_Apc); PHALCON_INIT(Phalcon_Mvc_Model_MetaData_Files); PHALCON_INIT(Phalcon_Mvc_Model_Query_Builder); PHALCON_INIT(Phalcon_Mvc_Model_Validator_Regex); PHALCON_INIT(Phalcon_Mvc_Model_ValidationFailed); PHALCON_INIT(Phalcon_Mvc_Model_Resultset_Simple); PHALCON_INIT(Phalcon_Mvc_Model_Resultset_Complex); PHALCON_INIT(Phalcon_Mvc_Model_MetaData_Memory); PHALCON_INIT(Phalcon_Mvc_Model_MetaData_Xcache); PHALCON_INIT(Phalcon_Mvc_Model_Validator_Email); PHALCON_INIT(Phalcon_Mvc_Model_MetaData_Session); PHALCON_INIT(Phalcon_Mvc_Model_Validator_Uniqueness); PHALCON_INIT(Phalcon_Mvc_Model_Validator_PresenceOf); PHALCON_INIT(Phalcon_Mvc_Model_Transaction_Failed); PHALCON_INIT(Phalcon_Mvc_Model_Behavior_SoftDelete); PHALCON_INIT(Phalcon_Mvc_Model_Transaction_Manager); PHALCON_INIT(Phalcon_Mvc_Model_Behavior_Timestampable); PHALCON_INIT(Phalcon_Mvc_Model_MetaData_Strategy_Annotations); PHALCON_INIT(Phalcon_Mvc_Model_MetaData_Strategy_Introspection); PHALCON_INIT(Phalcon_Mvc_Model_Validator_Inclusionin); PHALCON_INIT(Phalcon_Mvc_Model_Validator_Numericality); PHALCON_INIT(Phalcon_Mvc_Model_Validator_Exclusionin); PHALCON_INIT(Phalcon_Mvc_Model_Validator_StringLength); PHALCON_INIT(Phalcon_Mvc_ModuleDefinitionInterface); PHALCON_INIT(Phalcon_Mvc_Router_Route); PHALCON_INIT(Phalcon_Mvc_Router_Group); PHALCON_INIT(Phalcon_Mvc_Router_Exception); PHALCON_INIT(Phalcon_Mvc_Router_Annotations); PHALCON_INIT(Phalcon_Mvc_User_Module); PHALCON_INIT(Phalcon_Mvc_User_Plugin); PHALCON_INIT(Phalcon_Mvc_Url_Exception); PHALCON_INIT(Phalcon_Mvc_User_Component); PHALCON_INIT(Phalcon_Mvc_View_Simple); PHALCON_INIT(Phalcon_Mvc_View_Exception); PHALCON_INIT(Phalcon_Mvc_View_Engine_Volt); PHALCON_INIT(Phalcon_Mvc_View_Engine_Php); PHALCON_INIT(Phalcon_Mvc_View_Engine_Volt_Compiler); PHALCON_INIT(Phalcon_Events_Event); PHALCON_INIT(Phalcon_Events_Manager); PHALCON_INIT(Phalcon_Events_Exception); old_error_cb = zend_error_cb; zend_error_cb = phalcon_error_cb; return SUCCESS; }