Lines Matching refs:nsptr
783 xmlNsPtr nsptr = NULL; in PHP_METHOD() local
786 nsptr = xmlSearchNsByHref (nodep->doc, root, nodep->ns->href); in PHP_METHOD()
787 if (nsptr == NULL || nsptr->prefix == NULL) { in PHP_METHOD()
789 nsptr = dom_get_ns(root, (char *) nodep->ns->href, &errorcode, (char *) nodep->ns->prefix); in PHP_METHOD()
792 if (nsptr != NULL && root == NULL) { in PHP_METHOD()
793 php_libxml_set_old_ns(nodep->doc, nsptr); in PHP_METHOD()
796 retnodep->ns = nsptr; in PHP_METHOD()
880 xmlNsPtr nsptr = xmlSearchNsByHref(nodep->doc, nodep, BAD_CAST ZSTR_VAL(uri)); in PHP_METHOD() local
881 if (nsptr == NULL) { in PHP_METHOD()
882 nsptr = dom_get_ns(nodep, ZSTR_VAL(uri), &errorcode, prefix); in PHP_METHOD()
884 nodep->ns = nsptr; in PHP_METHOD()
956 xmlNsPtr nsptr; in PHP_METHOD() local
989 …nsptr = php_dom_libxml_ns_mapper_get_ns_raw_prefix_string(ns_mapper, prefix, xmlStrlen(prefix), ur… in PHP_METHOD()
991 nsptr = xmlSearchNsByHref(docp, root, BAD_CAST ZSTR_VAL(uri)); in PHP_METHOD()
994 if (nsptr == NULL) { in PHP_METHOD()
995 nsptr = xmlNewNs(NULL, BAD_CAST ZSTR_VAL(uri), BAD_CAST prefix); in PHP_METHOD()
996 php_libxml_set_old_ns(docp, nsptr); in PHP_METHOD()
999 if (nsptr == NULL || nsptr->prefix == NULL) { in PHP_METHOD()
1000 nsptr = dom_get_ns_unchecked(root, ZSTR_VAL(uri), prefix ? (char *) prefix : "default"); in PHP_METHOD()
1001 if (UNEXPECTED(nsptr == NULL)) { in PHP_METHOD()
1007 nodep->ns = nsptr; in PHP_METHOD()