Lines Matching refs:flags

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()
165 ZEND_API void zend_register_null_constant(const char *name, size_t name_len, int flags, int module_… in zend_register_null_constant() argument
170 c.flags = flags; in zend_register_null_constant()
171 c.name = zend_string_init(name, name_len, flags & CONST_PERSISTENT); in zend_register_null_constant()
176 …ster_bool_constant(const char *name, size_t name_len, zend_bool bval, int flags, int module_number) in zend_register_bool_constant() argument
181 c.flags = flags; in zend_register_bool_constant()
182 c.name = zend_string_init(name, name_len, flags & CONST_PERSISTENT); in zend_register_bool_constant()
187 …ster_long_constant(const char *name, size_t name_len, zend_long lval, int flags, int module_number) in zend_register_long_constant() argument
192 c.flags = flags; in zend_register_long_constant()
193 c.name = zend_string_init(name, name_len, flags & CONST_PERSISTENT); in zend_register_long_constant()
199 …ister_double_constant(const char *name, size_t name_len, double dval, int flags, int module_number) in zend_register_double_constant() argument
204 c.flags = flags; in zend_register_double_constant()
205 c.name = zend_string_init(name, name_len, flags & CONST_PERSISTENT); in zend_register_double_constant()
211 …stant(const char *name, size_t name_len, char *strval, size_t strlen, int flags, int module_number) in zend_register_stringl_constant() argument
215 ZVAL_NEW_STR(&c.value, zend_string_init(strval, strlen, flags & CONST_PERSISTENT)); in zend_register_stringl_constant()
216 c.flags = flags; in zend_register_stringl_constant()
217 c.name = zend_string_init(name, name_len, flags & CONST_PERSISTENT); in zend_register_stringl_constant()
223 …ster_string_constant(const char *name, size_t name_len, char *strval, int flags, int module_number) in zend_register_string_constant() argument
225 zend_register_stringl_constant(name, name_len, strval, strlen(strval), flags, module_number); in zend_register_string_constant()
276 if (c->flags & CONST_CS) { in zend_get_constant_str()
297 if (c->flags & CONST_CS) { in zend_get_constant()
309 ZEND_API zval *zend_get_constant_ex(zend_string *cname, zend_class_entry *scope, uint32_t flags) in zend_get_constant_ex() argument
356 ce = zend_fetch_class(class_name, flags); in zend_get_constant_ex()
361 if ((flags & ZEND_FETCH_CLASS_SILENT) == 0) { in zend_get_constant_ex()
419 if ((c->flags & CONST_CS) != 0) { in zend_get_constant_ex()
429 if ((flags & IS_CONSTANT_UNQUALIFIED) != 0) { in zend_get_constant_ex()
442 zend_constant *zend_quick_get_constant(const zval *key, uint32_t flags) in zend_quick_get_constant() argument
449 (c->flags & CONST_CS) != 0) { in zend_quick_get_constant()
450 …if ((flags & (IS_CONSTANT_IN_NAMESPACE|IS_CONSTANT_UNQUALIFIED)) == (IS_CONSTANT_IN_NAMESPACE|IS_C… in zend_quick_get_constant()
455 (c->flags & CONST_CS) != 0) { in zend_quick_get_constant()
473 zend_constant *copy = pemalloc(sizeof(zend_constant), c->flags & CONST_PERSISTENT); in zend_hash_add_constant()
478 pefree(copy, c->flags & CONST_PERSISTENT); in zend_hash_add_constant()
493 if (!(c->flags & CONST_CS)) { in zend_register_constant()
494 lowercase_name = zend_string_alloc(ZSTR_LEN(c->name), c->flags & CONST_PERSISTENT); in zend_register_constant()
501 …lowercase_name = zend_string_init(ZSTR_VAL(c->name), ZSTR_LEN(c->name), c->flags & CONST_PERSISTEN… in zend_register_constant()
521 if (!(c->flags & CONST_PERSISTENT)) { in zend_register_constant()