Lines Matching refs:pglobals

64 static int _php_mb_regex_globals_ctor(zend_mb_regex_globals *pglobals)  in _php_mb_regex_globals_ctor()  argument
66 pglobals->default_mbctype = ONIG_ENCODING_UTF8; in _php_mb_regex_globals_ctor()
67 pglobals->current_mbctype = ONIG_ENCODING_UTF8; in _php_mb_regex_globals_ctor()
68 zend_hash_init(&(pglobals->ht_rc), 0, NULL, php_mb_regex_free_cache, 1); in _php_mb_regex_globals_ctor()
69 ZVAL_UNDEF(&pglobals->search_str); in _php_mb_regex_globals_ctor()
70 pglobals->search_re = (php_mb_regex_t*)NULL; in _php_mb_regex_globals_ctor()
71 pglobals->search_pos = 0; in _php_mb_regex_globals_ctor()
72 pglobals->search_regs = (OnigRegion*)NULL; in _php_mb_regex_globals_ctor()
73 pglobals->regex_default_options = ONIG_OPTION_MULTILINE | ONIG_OPTION_SINGLELINE; in _php_mb_regex_globals_ctor()
74 pglobals->regex_default_syntax = ONIG_SYNTAX_RUBY; in _php_mb_regex_globals_ctor()
80 static void _php_mb_regex_globals_dtor(zend_mb_regex_globals *pglobals) in _php_mb_regex_globals_dtor() argument
82 zend_hash_destroy(&pglobals->ht_rc); in _php_mb_regex_globals_dtor()
89 zend_mb_regex_globals *pglobals = pemalloc( in php_mb_regex_globals_alloc() local
91 if (!pglobals) { in php_mb_regex_globals_alloc()
94 if (SUCCESS != _php_mb_regex_globals_ctor(pglobals)) { in php_mb_regex_globals_alloc()
95 pefree(pglobals, 1); in php_mb_regex_globals_alloc()
98 return pglobals; in php_mb_regex_globals_alloc()
103 void php_mb_regex_globals_free(zend_mb_regex_globals *pglobals) in php_mb_regex_globals_free() argument
105 if (!pglobals) { in php_mb_regex_globals_free()
108 _php_mb_regex_globals_dtor(pglobals); in php_mb_regex_globals_free()
109 pefree(pglobals, 1); in php_mb_regex_globals_free()