Lines Matching refs:CONST_PERSISTENT

35 	if (!(c->flags & CONST_PERSISTENT)) {  in free_zend_constant()
43 pefree(c, c->flags & CONST_PERSISTENT); in free_zend_constant()
51 Z_PTR_P(zv) = pemalloc(sizeof(zend_constant), c->flags & CONST_PERSISTENT); in copy_zend_constant()
56 if (!(c->flags & CONST_PERSISTENT)) { in copy_zend_constant()
75 return (c->flags & CONST_PERSISTENT) ? ZEND_HASH_APPLY_STOP : ZEND_HASH_APPLY_REMOVE; in clean_non_persistent_constant()
82 return (c->flags & CONST_PERSISTENT) ? 0 : 1; in clean_non_persistent_constant_full()
117 REGISTER_MAIN_LONG_CONSTANT("E_ERROR", E_ERROR, CONST_PERSISTENT | CONST_CS); in zend_register_standard_constants()
118 …REGISTER_MAIN_LONG_CONSTANT("E_RECOVERABLE_ERROR", E_RECOVERABLE_ERROR, CONST_PERSISTENT | CONST_C… in zend_register_standard_constants()
119 REGISTER_MAIN_LONG_CONSTANT("E_WARNING", E_WARNING, CONST_PERSISTENT | CONST_CS); in zend_register_standard_constants()
120 REGISTER_MAIN_LONG_CONSTANT("E_PARSE", E_PARSE, CONST_PERSISTENT | CONST_CS); in zend_register_standard_constants()
121 REGISTER_MAIN_LONG_CONSTANT("E_NOTICE", E_NOTICE, CONST_PERSISTENT | CONST_CS); in zend_register_standard_constants()
122 REGISTER_MAIN_LONG_CONSTANT("E_STRICT", E_STRICT, CONST_PERSISTENT | CONST_CS); in zend_register_standard_constants()
123 REGISTER_MAIN_LONG_CONSTANT("E_DEPRECATED", E_DEPRECATED, CONST_PERSISTENT | CONST_CS); in zend_register_standard_constants()
124 REGISTER_MAIN_LONG_CONSTANT("E_CORE_ERROR", E_CORE_ERROR, CONST_PERSISTENT | CONST_CS); in zend_register_standard_constants()
125 REGISTER_MAIN_LONG_CONSTANT("E_CORE_WARNING", E_CORE_WARNING, CONST_PERSISTENT | CONST_CS); in zend_register_standard_constants()
126 REGISTER_MAIN_LONG_CONSTANT("E_COMPILE_ERROR", E_COMPILE_ERROR, CONST_PERSISTENT | CONST_CS); in zend_register_standard_constants()
127 REGISTER_MAIN_LONG_CONSTANT("E_COMPILE_WARNING", E_COMPILE_WARNING, CONST_PERSISTENT | CONST_CS); in zend_register_standard_constants()
128 REGISTER_MAIN_LONG_CONSTANT("E_USER_ERROR", E_USER_ERROR, CONST_PERSISTENT | CONST_CS); in zend_register_standard_constants()
129 REGISTER_MAIN_LONG_CONSTANT("E_USER_WARNING", E_USER_WARNING, CONST_PERSISTENT | CONST_CS); in zend_register_standard_constants()
130 REGISTER_MAIN_LONG_CONSTANT("E_USER_NOTICE", E_USER_NOTICE, CONST_PERSISTENT | CONST_CS); in zend_register_standard_constants()
131 REGISTER_MAIN_LONG_CONSTANT("E_USER_DEPRECATED", E_USER_DEPRECATED, CONST_PERSISTENT | CONST_CS); in zend_register_standard_constants()
133 REGISTER_MAIN_LONG_CONSTANT("E_ALL", E_ALL, CONST_PERSISTENT | CONST_CS); in zend_register_standard_constants()
135 …ANT("DEBUG_BACKTRACE_PROVIDE_OBJECT", DEBUG_BACKTRACE_PROVIDE_OBJECT, CONST_PERSISTENT | CONST_CS); in zend_register_standard_constants()
136 …_CONSTANT("DEBUG_BACKTRACE_IGNORE_ARGS", DEBUG_BACKTRACE_IGNORE_ARGS, CONST_PERSISTENT | CONST_CS); in zend_register_standard_constants()
139 REGISTER_MAIN_BOOL_CONSTANT("TRUE", 1, CONST_PERSISTENT | CONST_CT_SUBST); in zend_register_standard_constants()
140 REGISTER_MAIN_BOOL_CONSTANT("FALSE", 0, CONST_PERSISTENT | CONST_CT_SUBST); in zend_register_standard_constants()
141 REGISTER_MAIN_BOOL_CONSTANT("ZEND_THREAD_SAFE", ZTS_V, CONST_PERSISTENT | CONST_CS); in zend_register_standard_constants()
142 REGISTER_MAIN_BOOL_CONSTANT("ZEND_DEBUG_BUILD", ZEND_DEBUG, CONST_PERSISTENT | CONST_CS); in zend_register_standard_constants()
144 REGISTER_MAIN_NULL_CONSTANT("NULL", CONST_PERSISTENT | CONST_CT_SUBST); in zend_register_standard_constants()
171 c.name = zend_string_init(name, name_len, flags & CONST_PERSISTENT); in zend_register_null_constant()
182 c.name = zend_string_init(name, name_len, flags & CONST_PERSISTENT); in zend_register_bool_constant()
193 c.name = zend_string_init(name, name_len, flags & CONST_PERSISTENT); in zend_register_long_constant()
205 c.name = zend_string_init(name, name_len, flags & CONST_PERSISTENT); in zend_register_double_constant()
215 ZVAL_NEW_STR(&c.value, zend_string_init(strval, strlen, flags & CONST_PERSISTENT)); in zend_register_stringl_constant()
217 c.name = zend_string_init(name, name_len, flags & CONST_PERSISTENT); in zend_register_stringl_constant()
451 zend_constant *copy = pemalloc(sizeof(zend_constant), c->flags & CONST_PERSISTENT); in zend_hash_add_constant()
456 pefree(copy, c->flags & CONST_PERSISTENT); in zend_hash_add_constant()
472 lowercase_name = zend_string_alloc(ZSTR_LEN(c->name), c->flags & CONST_PERSISTENT); in zend_register_constant()
479 …wercase_name = zend_string_init(ZSTR_VAL(c->name), ZSTR_LEN(c->name), c->flags & CONST_PERSISTENT); in zend_register_constant()
499 if (!(c->flags & CONST_PERSISTENT)) { in zend_register_constant()