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()
264 if (c->flags & CONST_CS) { in zend_get_constant_str()
285 if (c->flags & CONST_CS) { in zend_get_constant()
297 ZEND_API zval *zend_get_constant_ex(zend_string *cname, zend_class_entry *scope, zend_ulong flags) in zend_get_constant_ex() argument
351 ce = zend_fetch_class(class_name, flags); in zend_get_constant_ex()
356 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_constant *zend_quick_get_constant(const zval *key, zend_ulong 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()
471 if (!(c->flags & CONST_CS)) { in zend_register_constant()
472 lowercase_name = zend_string_alloc(ZSTR_LEN(c->name), c->flags & CONST_PERSISTENT); in zend_register_constant()
479 …lowercase_name = zend_string_init(ZSTR_VAL(c->name), ZSTR_LEN(c->name), c->flags & CONST_PERSISTEN… in zend_register_constant()
499 if (!(c->flags & CONST_PERSISTENT)) { in zend_register_constant()