Lines Matching refs:level
105 int level; local
371 for (inx = 0; ((inx < parser->level) && (inx < XML_MAXLEVEL)); inx++) in xml_parser_free_obj()
636 parser->level++; in _xml_startElementHandler()
664 if (parser->level <= XML_MAXLEVEL) { in _xml_startElementHandler()
675 add_assoc_long(&tag, "level", parser->level); in _xml_startElementHandler()
677 parser->ltags[parser->level-1] = estrdup(ZSTR_VAL(tag_name)); in _xml_startElementHandler()
704 } else if (parser->level == (XML_MAXLEVEL + 1)) { in _xml_startElementHandler()
744 add_assoc_long(&tag, "level", parser->level); in _xml_endElementHandler()
754 if ((parser->ltags) && (parser->level <= XML_MAXLEVEL)) { in _xml_endElementHandler()
755 efree(parser->ltags[parser->level-1]); in _xml_endElementHandler()
758 parser->level--; in _xml_endElementHandler()
839 if (parser->level <= XML_MAXLEVEL && parser->level > 0 && (doprint || (! parser->skipwhite))) { in _xml_characterDataHandler()
842 _xml_add_to_info(parser,SKIP_TAGSTART(parser->ltags[parser->level-1])); in _xml_characterDataHandler()
844 add_assoc_string(&tag, "tag", SKIP_TAGSTART(parser->ltags[parser->level-1])); in _xml_characterDataHandler()
847 add_assoc_long(&tag, "level", parser->level); in _xml_characterDataHandler()
850 } else if (parser->level == (XML_MAXLEVEL + 1)) { in _xml_characterDataHandler()
1310 parser->level = 0; in PHP_FUNCTION()