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()
141 ZEND_API void zend_register_null_constant(const char *name, size_t name_len, int flags, int module_… in zend_register_null_constant() argument
146 c.flags = flags; in zend_register_null_constant()
147 c.name = zend_string_init(name, name_len, flags & CONST_PERSISTENT); in zend_register_null_constant()
152 …ster_bool_constant(const char *name, size_t name_len, zend_bool bval, int flags, int module_number) in zend_register_bool_constant() argument
157 c.flags = flags; in zend_register_bool_constant()
158 c.name = zend_string_init(name, name_len, flags & CONST_PERSISTENT); in zend_register_bool_constant()
163 …ster_long_constant(const char *name, size_t name_len, zend_long lval, int flags, int module_number) in zend_register_long_constant() argument
168 c.flags = flags; in zend_register_long_constant()
169 c.name = zend_string_init(name, name_len, flags & CONST_PERSISTENT); in zend_register_long_constant()
175 …ister_double_constant(const char *name, size_t name_len, double dval, int flags, int module_number) in zend_register_double_constant() argument
180 c.flags = flags; in zend_register_double_constant()
181 c.name = zend_string_init(name, name_len, flags & CONST_PERSISTENT); in zend_register_double_constant()
187 …stant(const char *name, size_t name_len, char *strval, size_t strlen, int flags, int module_number) in zend_register_stringl_constant() argument
191 ZVAL_NEW_STR(&c.value, zend_string_init(strval, strlen, flags & CONST_PERSISTENT)); in zend_register_stringl_constant()
192 c.flags = flags; in zend_register_stringl_constant()
193 c.name = zend_string_init(name, name_len, flags & CONST_PERSISTENT); in zend_register_stringl_constant()
199 …ster_string_constant(const char *name, size_t name_len, char *strval, int flags, int module_number) in zend_register_string_constant() argument
201 zend_register_stringl_constant(name, name_len, strval, strlen(strval), flags, module_number); in zend_register_string_constant()
252 if (c->flags & CONST_CS) { in zend_get_constant_str()
273 if (c->flags & CONST_CS) { in zend_get_constant()
285 ZEND_API zval *zend_get_constant_ex(zend_string *cname, zend_class_entry *scope, uint32_t flags) in zend_get_constant_ex() argument
332 ce = zend_fetch_class(class_name, flags); in zend_get_constant_ex()
337 if ((flags & ZEND_FETCH_CLASS_SILENT) == 0) { in zend_get_constant_ex()
344 if ((flags & ZEND_FETCH_CLASS_SILENT) == 0) { in zend_get_constant_ex()
397 if ((c->flags & CONST_CS) != 0) { in zend_get_constant_ex()
407 if ((flags & IS_CONSTANT_UNQUALIFIED) != 0) { in zend_get_constant_ex()
420 ZEND_API zend_constant* ZEND_FASTCALL zend_quick_get_constant(const zval *key, uint32_t flags) in zend_quick_get_constant() argument
427 (c->flags & CONST_CS) != 0) { in zend_quick_get_constant()
428 …if ((flags & (IS_CONSTANT_IN_NAMESPACE|IS_CONSTANT_UNQUALIFIED)) == (IS_CONSTANT_IN_NAMESPACE|IS_C… in zend_quick_get_constant()
433 (c->flags & CONST_CS) != 0) { in zend_quick_get_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()
475 if (!(c->flags & CONST_CS)) { in zend_register_constant()
476 lowercase_name = zend_string_alloc(ZSTR_LEN(c->name), c->flags & CONST_PERSISTENT); in zend_register_constant()
483 …lowercase_name = zend_string_init(ZSTR_VAL(c->name), ZSTR_LEN(c->name), c->flags & CONST_PERSISTEN… in zend_register_constant()
503 if (!(c->flags & CONST_PERSISTENT)) { in zend_register_constant()