Lines Matching refs:name_len
128 ZEND_API void zend_register_null_constant(const char *name, size_t name_len, int flags, int module_… in zend_register_null_constant() argument
134 c.name = zend_string_init_interned(name, name_len, flags & CONST_PERSISTENT); in zend_register_null_constant()
138 ZEND_API void zend_register_bool_constant(const char *name, size_t name_len, bool bval, int flags, … in zend_register_bool_constant() argument
144 c.name = zend_string_init_interned(name, name_len, flags & CONST_PERSISTENT); in zend_register_bool_constant()
148 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
154 c.name = zend_string_init_interned(name, name_len, flags & CONST_PERSISTENT); in zend_register_long_constant()
159 ZEND_API void zend_register_double_constant(const char *name, size_t name_len, double dval, int fla… in zend_register_double_constant() argument
165 c.name = zend_string_init_interned(name, name_len, flags & CONST_PERSISTENT); in zend_register_double_constant()
170 ZEND_API void zend_register_stringl_constant(const char *name, size_t name_len, const char *strval,… in zend_register_stringl_constant() argument
176 c.name = zend_string_init_interned(name, name_len, flags & CONST_PERSISTENT); in zend_register_stringl_constant()
181 ZEND_API void zend_register_string_constant(const char *name, size_t name_len, const char *strval, … in zend_register_string_constant() argument
183 zend_register_stringl_constant(name, name_len, strval, strlen(strval), flags, module_number); in zend_register_string_constant()
186 static zend_constant *zend_get_halt_offset_constant(const char *name, size_t name_len) in zend_get_halt_offset_constant() argument
193 } else if (name_len == sizeof("__COMPILER_HALT_OFFSET__")-1 && in zend_get_halt_offset_constant()
256 static zend_constant *zend_get_constant_str_impl(const char *name, size_t name_len) in zend_get_constant_str_impl() argument
258 zend_constant *c = zend_hash_str_find_ptr(EG(zend_constants), name, name_len); in zend_get_constant_str_impl()
263 c = zend_get_halt_offset_constant(name, name_len); in zend_get_constant_str_impl()
268 return zend_get_special_const(name, name_len); in zend_get_constant_str_impl()
271 ZEND_API zval *zend_get_constant_str(const char *name, size_t name_len) in zend_get_constant_str() argument
273 zend_constant *c = zend_get_constant_str_impl(name, name_len); in zend_get_constant_str()
403 size_t name_len = ZSTR_LEN(cname); in zend_get_constant_ex() local
408 name_len -= 1; in zend_get_constant_ex()
412 if ((colon = zend_memrchr(name, ':', name_len)) && in zend_get_constant_ex()
415 size_t const_name_len = name_len - class_name_len - 2; in zend_get_constant_ex()
426 if ((colon = zend_memrchr(name, '\\', name_len)) != NULL) { in zend_get_constant_ex()
429 size_t const_name_len = name_len - prefix_len - 1; in zend_get_constant_ex()
456 c = zend_get_constant_str_impl(name, name_len); in zend_get_constant_ex()