Lines Matching refs:name_len

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
171 c.name = zend_string_init(name, name_len, flags & CONST_PERSISTENT); in zend_register_null_constant()
176 ZEND_API void zend_register_bool_constant(const char *name, size_t name_len, zend_bool bval, int fl… in zend_register_bool_constant() argument
182 c.name = zend_string_init(name, name_len, flags & CONST_PERSISTENT); in zend_register_bool_constant()
187 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
193 c.name = zend_string_init(name, name_len, flags & CONST_PERSISTENT); in zend_register_long_constant()
199 ZEND_API void zend_register_double_constant(const char *name, size_t name_len, double dval, int fla… in zend_register_double_constant() argument
205 c.name = zend_string_init(name, name_len, flags & CONST_PERSISTENT); in zend_register_double_constant()
211 ZEND_API void zend_register_stringl_constant(const char *name, size_t name_len, char *strval, size_… in zend_register_stringl_constant() argument
217 c.name = zend_string_init(name, name_len, flags & CONST_PERSISTENT); in zend_register_stringl_constant()
223 ZEND_API void zend_register_string_constant(const char *name, size_t name_len, char *strval, int fl… 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()
228 static zend_constant *zend_get_special_constant(const char *name, size_t name_len) in zend_get_special_constant() argument
235 } else if (name_len == sizeof("__COMPILER_HALT_OFFSET__")-1 && in zend_get_special_constant()
255 ZEND_API zval *zend_get_constant_str(const char *name, size_t name_len) in zend_get_constant_str() argument
260 if ((c = zend_hash_str_find_ptr(EG(zend_constants), name, name_len)) == NULL) { in zend_get_constant_str()
261 char *lcname = do_alloca(name_len + 1, use_heap); in zend_get_constant_str()
262 zend_str_tolower_copy(lcname, name, name_len); in zend_get_constant_str()
263 if ((c = zend_hash_str_find_ptr(EG(zend_constants), lcname, name_len)) != NULL) { in zend_get_constant_str()
268 c = zend_get_special_constant(name, name_len); in zend_get_constant_str()
303 size_t name_len = ZSTR_LEN(cname); in zend_get_constant_ex() local
308 name_len -= 1; in zend_get_constant_ex()
312 if ((colon = zend_memrchr(name, ':', name_len)) && in zend_get_constant_ex()
315 size_t const_name_len = name_len - class_name_len - 2; in zend_get_constant_ex()
376 if ((colon = zend_memrchr(name, '\\', name_len)) != NULL) { in zend_get_constant_ex()
379 size_t const_name_len = name_len - prefix_len - 1; in zend_get_constant_ex()
416 return zend_get_constant_str(name, name_len); in zend_get_constant_ex()