Lines Matching refs:name_len
126 ZEND_API void zend_register_null_constant(const char *name, size_t name_len, int flags, int module_… in zend_register_null_constant() argument
132 c.name = zend_string_init_interned(name, name_len, flags & CONST_PERSISTENT); in zend_register_null_constant()
136 ZEND_API void zend_register_bool_constant(const char *name, size_t name_len, bool bval, int flags, … in zend_register_bool_constant() argument
142 c.name = zend_string_init_interned(name, name_len, flags & CONST_PERSISTENT); in zend_register_bool_constant()
146 ZEND_API void zend_register_long_constant(const char *name, size_t name_len, zend_long lval, int fl… in zend_register_long_constant() argument
152 c.name = zend_string_init_interned(name, name_len, flags & CONST_PERSISTENT); in zend_register_long_constant()
157 ZEND_API void zend_register_double_constant(const char *name, size_t name_len, double dval, int fla… in zend_register_double_constant() argument
163 c.name = zend_string_init_interned(name, name_len, flags & CONST_PERSISTENT); in zend_register_double_constant()
168 ZEND_API void zend_register_stringl_constant(const char *name, size_t name_len, const char *strval,… in zend_register_stringl_constant() argument
174 c.name = zend_string_init_interned(name, name_len, flags & CONST_PERSISTENT); in zend_register_stringl_constant()
179 ZEND_API void zend_register_string_constant(const char *name, size_t name_len, const char *strval, … in zend_register_string_constant() argument
181 zend_register_stringl_constant(name, name_len, strval, strlen(strval), flags, module_number); in zend_register_string_constant()
184 static zend_constant *zend_get_halt_offset_constant(const char *name, size_t name_len) in zend_get_halt_offset_constant() argument
191 } else if (name_len == sizeof("__COMPILER_HALT_OFFSET__")-1 && in zend_get_halt_offset_constant()
254 static zend_constant *zend_get_constant_str_impl(const char *name, size_t name_len) in zend_get_constant_str_impl() argument
256 zend_constant *c = zend_hash_str_find_ptr(EG(zend_constants), name, name_len); in zend_get_constant_str_impl()
261 c = zend_get_halt_offset_constant(name, name_len); in zend_get_constant_str_impl()
266 return zend_get_special_const(name, name_len); in zend_get_constant_str_impl()
269 ZEND_API zval *zend_get_constant_str(const char *name, size_t name_len) in zend_get_constant_str() argument
271 zend_constant *c = zend_get_constant_str_impl(name, name_len); in zend_get_constant_str()
401 size_t name_len = ZSTR_LEN(cname); in zend_get_constant_ex() local
406 name_len -= 1; in zend_get_constant_ex()
410 if ((colon = zend_memrchr(name, ':', name_len)) && in zend_get_constant_ex()
413 size_t const_name_len = name_len - class_name_len - 2; in zend_get_constant_ex()
496 if ((colon = zend_memrchr(name, '\\', name_len)) != NULL) { in zend_get_constant_ex()
499 size_t const_name_len = name_len - prefix_len - 1; in zend_get_constant_ex()
526 c = zend_get_constant_str_impl(name, name_len); in zend_get_constant_ex()