Lines Matching refs:ns
2124 zval **ns; in zend_resolve_non_class_name() local
2146 if (zend_hash_find(current_import_sub, lookup_name, len, (void**)&ns) == SUCCESS) { in zend_resolve_non_class_name()
2148 element_name->u.constant = **ns; in zend_resolve_non_class_name()
2162 if (zend_hash_find(CG(current_import), lookup_name, len+1, (void**)&ns) == SUCCESS) { in zend_resolve_non_class_name()
2165 tmp.u.constant = **ns; in zend_resolve_non_class_name()
2267 zval **ns; in zend_resolve_class_name() local
2290 if (zend_hash_find(CG(current_import), lcname, len+1, (void**)&ns) == SUCCESS) { in zend_resolve_class_name()
2293 tmp.u.constant = **ns; in zend_resolve_class_name()
2319 …zend_hash_find(CG(current_import), lcname, Z_STRLEN(class_name->u.constant)+1, (void**)&ns) == SUC… in zend_resolve_class_name()
2322 class_name->u.constant = **ns; in zend_resolve_class_name()
7166 zval *name, *ns, tmp; in zend_do_use() local
7175 MAKE_STD_ZVAL(ns); in zend_do_use()
7176 ZVAL_ZVAL(ns, &ns_name->u.constant, 0, 0); in zend_do_use()
7185 p = zend_memrchr(Z_STRVAL_P(ns), '\\', Z_STRLEN_P(ns)); in zend_do_use()
7189 ZVAL_ZVAL(name, ns, 1, 0); in zend_do_use()
7200 …OR, "Cannot use %s as %s because '%s' is a special class name", Z_STRVAL_P(ns), Z_STRVAL_P(name), … in zend_do_use()
7211 char *tmp2 = zend_str_tolower_dup(Z_STRVAL_P(ns), Z_STRLEN_P(ns)); in zend_do_use()
7213 if (Z_STRLEN_P(ns) != Z_STRLEN_P(CG(current_namespace)) + 1 + Z_STRLEN_P(name) || in zend_do_use()
7214 memcmp(tmp2, c_ns_name, Z_STRLEN_P(ns))) { in zend_do_use()
7215 …ERROR, "Cannot use %s as %s because the name is already in use", Z_STRVAL_P(ns), Z_STRVAL_P(name)); in zend_do_use()
7223 char *c_tmp = zend_str_tolower_dup(Z_STRVAL_P(ns), Z_STRLEN_P(ns)); in zend_do_use()
7225 if (Z_STRLEN_P(ns) != Z_STRLEN_P(name) || in zend_do_use()
7226 memcmp(c_tmp, lcname, Z_STRLEN_P(ns))) { in zend_do_use()
7227 …ERROR, "Cannot use %s as %s because the name is already in use", Z_STRVAL_P(ns), Z_STRVAL_P(name)); in zend_do_use()
7232 …if (zend_hash_add(CG(current_import), lcname, Z_STRLEN_P(name)+1, &ns, sizeof(zval*), NULL) != SUC… in zend_do_use()
7233 …ERROR, "Cannot use %s as %s because the name is already in use", Z_STRVAL_P(ns), Z_STRVAL_P(name)); in zend_do_use()
7249 zval *name, *ns, tmp; in zend_do_use_non_class() local
7252 MAKE_STD_ZVAL(ns); in zend_do_use_non_class()
7253 ZVAL_ZVAL(ns, &ns_name->u.constant, 0, 0); in zend_do_use_non_class()
7262 p = zend_memrchr(Z_STRVAL_P(ns), '\\', Z_STRLEN_P(ns)); in zend_do_use_non_class()
7266 ZVAL_ZVAL(name, ns, 1, 0); in zend_do_use_non_class()
7285 char *tmp2 = zend_str_tolower_dup(Z_STRVAL_P(ns), Z_STRLEN_P(ns)); in zend_do_use_non_class()
7287 if (Z_STRLEN_P(ns) != Z_STRLEN_P(CG(current_namespace)) + 1 + Z_STRLEN_P(name) || in zend_do_use_non_class()
7288 memcmp(tmp2, c_ns_name, Z_STRLEN_P(ns))) { in zend_do_use_non_class()
7289 …the name is already in use", is_function ? "function" : "const", Z_STRVAL_P(ns), Z_STRVAL_P(name)); in zend_do_use_non_class()
7298 char *c_tmp = zend_str_tolower_dup(Z_STRVAL_P(ns), Z_STRLEN_P(ns)); in zend_do_use_non_class()
7300 if (Z_STRLEN_P(ns) != Z_STRLEN_P(name) || in zend_do_use_non_class()
7301 memcmp(c_tmp, lookup_name, Z_STRLEN_P(ns))) { in zend_do_use_non_class()
7302 …annot use function %s as %s because the name is already in use", Z_STRVAL_P(ns), Z_STRVAL_P(name)); in zend_do_use_non_class()
7310 char *c_tmp = zend_str_tolower_dup(Z_STRVAL_P(ns), Z_STRLEN_P(ns)); in zend_do_use_non_class()
7312 if (Z_STRLEN_P(ns) != Z_STRLEN_P(name) || in zend_do_use_non_class()
7313 memcmp(c_tmp, lookup_name, Z_STRLEN_P(ns))) { in zend_do_use_non_class()
7314 … "Cannot use const %s as %s because the name is already in use", Z_STRVAL_P(ns), Z_STRVAL_P(name)); in zend_do_use_non_class()
7320 …if (zend_hash_add(current_import_sub, lookup_name, Z_STRLEN_P(name)+1, &ns, sizeof(zval*), NULL) !… in zend_do_use_non_class()
7321 …the name is already in use", is_function ? "function" : "const", Z_STRVAL_P(ns), Z_STRVAL_P(name)); in zend_do_use_non_class()