Lines Matching refs:zend_constant

37 static zend_constant *null_const, *true_const, *false_const;
41 zend_constant *c = Z_PTR_P(zv); in free_zend_constant()
62 zend_constant *c = Z_PTR_P(zv); in copy_zend_constant()
65 Z_PTR_P(zv) = pemalloc(sizeof(zend_constant), 1); in copy_zend_constant()
66 memcpy(Z_PTR_P(zv), c, sizeof(zend_constant)); in copy_zend_constant()
85 zend_constant *c = (zend_constant *)Z_PTR_P(el); in clean_module_constant()
153 zend_constant c; in zend_register_null_constant()
163 zend_constant c; in zend_register_bool_constant()
173 zend_constant c; in zend_register_long_constant()
184 zend_constant c; in zend_register_double_constant()
195 zend_constant c; in zend_register_stringl_constant()
209 static zend_constant *zend_get_halt_offset_constant(const char *name, size_t name_len) in zend_get_halt_offset_constant()
211 zend_constant *c; in zend_get_halt_offset_constant()
235 ZEND_API zend_constant *_zend_get_special_const(const char *name, size_t len) /* {{{ */ in _zend_get_special_const()
279 static zend_constant *zend_get_constant_str_impl(const char *name, size_t name_len) in zend_get_constant_str_impl()
281 zend_constant *c = zend_hash_str_find_ptr(EG(zend_constants), name, name_len); in zend_get_constant_str_impl()
296 zend_constant *c = zend_get_constant_str_impl(name, name_len); in zend_get_constant_str()
303 static zend_constant *zend_get_constant_impl(zend_string *name) in zend_get_constant_impl()
305 zend_constant *c = zend_hash_find_ptr(EG(zend_constants), name); in zend_get_constant_impl()
320 zend_constant *c = zend_get_constant_impl(name); in zend_get_constant()
329 zend_constant *c; in zend_get_constant_ex()
467 static void* zend_hash_add_constant(HashTable *ht, zend_string *key, zend_constant *c) in zend_hash_add_constant()
470 zend_constant *copy = pemalloc(sizeof(zend_constant), ZEND_CONSTANT_FLAGS(c) & CONST_PERSISTENT); in zend_hash_add_constant()
472 memcpy(copy, c, sizeof(zend_constant)); in zend_hash_add_constant()
480 ZEND_API zend_result zend_register_constant(zend_constant *c) in zend_register_constant()