Lines Matching refs:intern

375 static void xmlreader_free_resources(xmlreader_object *intern) {  in ZEND_GET_MODULE()
376 if (intern->input) { in ZEND_GET_MODULE()
377 xmlFreeParserInputBuffer(intern->input); in ZEND_GET_MODULE()
378 intern->input = NULL; in ZEND_GET_MODULE()
381 if (intern->ptr) { in ZEND_GET_MODULE()
382 xmlFreeTextReader(intern->ptr); in ZEND_GET_MODULE()
383 intern->ptr = NULL; in ZEND_GET_MODULE()
386 if (intern->schema) { in ZEND_GET_MODULE()
387 xmlRelaxNGFree((xmlRelaxNGPtr) intern->schema); in ZEND_GET_MODULE()
388 intern->schema = NULL; in ZEND_GET_MODULE()
397 xmlreader_object *intern = php_xmlreader_fetch_object(object); in xmlreader_objects_free_storage() local
399 zend_object_std_dtor(&intern->std); in xmlreader_objects_free_storage()
401 xmlreader_free_resources(intern); in xmlreader_objects_free_storage()
408 xmlreader_object *intern; in xmlreader_objects_new() local
410 intern = zend_object_alloc(sizeof(xmlreader_object), class_type); in xmlreader_objects_new()
411 zend_object_std_init(&intern->std, class_type); in xmlreader_objects_new()
412 object_properties_init(&intern->std, class_type); in xmlreader_objects_new()
414 return &intern->std; in xmlreader_objects_new()
423 xmlreader_object *intern; in php_xmlreader_string_arg() local
437 intern = Z_XMLREADER_P(id); in php_xmlreader_string_arg()
438 if (intern->ptr) { in php_xmlreader_string_arg()
439 retchar = (char *)internal_function(intern->ptr, (const unsigned char *)name); in php_xmlreader_string_arg()
455 xmlreader_object *intern; in php_xmlreader_no_arg() local
463 intern = Z_XMLREADER_P(id); in php_xmlreader_no_arg()
464 if (intern->ptr) { in php_xmlreader_no_arg()
465 retval = internal_function(intern->ptr); in php_xmlreader_no_arg()
479 xmlreader_object *intern; in php_xmlreader_no_arg_string() local
487 intern = Z_XMLREADER_P(id); in php_xmlreader_no_arg_string()
488 if (intern->ptr) { in php_xmlreader_no_arg_string()
489 retchar = (char *)internal_function(intern->ptr); in php_xmlreader_no_arg_string()
507 xmlreader_object *intern; in php_xmlreader_set_relaxng_schema() local
522 intern = Z_XMLREADER_P(id); in php_xmlreader_set_relaxng_schema()
523 if (intern->ptr) { in php_xmlreader_set_relaxng_schema()
527 retval = xmlTextReaderRelaxNGSetSchema(intern->ptr, schema); in php_xmlreader_set_relaxng_schema()
531 retval = xmlTextReaderRelaxNGSetSchema(intern->ptr, NULL); in php_xmlreader_set_relaxng_schema()
535 if (intern->schema) { in php_xmlreader_set_relaxng_schema()
536 xmlRelaxNGFree((xmlRelaxNGPtr) intern->schema); in php_xmlreader_set_relaxng_schema()
539 intern->schema = schema; in php_xmlreader_set_relaxng_schema()
561 xmlreader_object *intern; in PHP_METHOD() local
568 intern = Z_XMLREADER_P(id); in PHP_METHOD()
572 xmlreader_free_resources(intern); in PHP_METHOD()
591 xmlreader_object *intern; in PHP_METHOD() local
599 intern = Z_XMLREADER_P(id); in PHP_METHOD()
600 if (intern->ptr) { in PHP_METHOD()
601 retchar = (char *)xmlTextReaderGetAttributeNo(intern->ptr, attr_pos); in PHP_METHOD()
615 xmlreader_object *intern; in PHP_METHOD() local
634 intern = Z_XMLREADER_P(id); in PHP_METHOD()
635 if (intern->ptr) { in PHP_METHOD()
636 retchar = (char *)xmlTextReaderGetAttributeNs(intern->ptr, (xmlChar *)name, (xmlChar *)ns_uri); in PHP_METHOD()
650 xmlreader_object *intern; in PHP_METHOD() local
658 intern = Z_XMLREADER_P(id); in PHP_METHOD()
659 if (!intern || !intern->ptr) { in PHP_METHOD()
664 int retval = xmlTextReaderGetParserProp(intern->ptr,property); in PHP_METHOD()
696 xmlreader_object *intern; in PHP_METHOD() local
710 intern = Z_XMLREADER_P(id); in PHP_METHOD()
711 if (intern->ptr) { in PHP_METHOD()
712 retval = xmlTextReaderMoveToAttribute(intern->ptr, (xmlChar *)name); in PHP_METHOD()
729 xmlreader_object *intern; in PHP_METHOD() local
737 intern = Z_XMLREADER_P(id); in PHP_METHOD()
738 if (intern->ptr) { in PHP_METHOD()
739 retval = xmlTextReaderMoveToAttributeNo(intern->ptr, attr_pos); in PHP_METHOD()
756 xmlreader_object *intern; in PHP_METHOD() local
775 intern = Z_XMLREADER_P(id); in PHP_METHOD()
776 if (intern->ptr) { in PHP_METHOD()
777 retval = xmlTextReaderMoveToAttributeNs(intern->ptr, (xmlChar *)name, (xmlChar *)ns_uri); in PHP_METHOD()
813 xmlreader_object *intern; in PHP_METHOD() local
820 intern = Z_XMLREADER_P(id); in PHP_METHOD()
821 if (!intern->ptr) { in PHP_METHOD()
826 retval = xmlTextReaderRead(intern->ptr); in PHP_METHOD()
841 xmlreader_object *intern; in PHP_METHOD() local
849 intern = Z_XMLREADER_P(id); in PHP_METHOD()
850 if (intern->ptr) { in PHP_METHOD()
851 retval = xmlTextReaderNext(intern->ptr); in PHP_METHOD()
853 if (xmlStrEqual(xmlTextReaderConstLocalName(intern->ptr), (xmlChar *)name)) { in PHP_METHOD()
856 retval = xmlTextReaderNext(intern->ptr); in PHP_METHOD()
891 xmlreader_object *intern = NULL; in xml_reader_from_uri() local
904 intern = Z_XMLREADER_P(id); in xml_reader_from_uri()
905 xmlreader_free_resources(intern); in xml_reader_from_uri()
941 intern = Z_XMLREADER_P(return_value); in xml_reader_from_uri()
942 intern->ptr = reader; in xml_reader_from_uri()
946 intern->ptr = reader; in xml_reader_from_uri()
1026 xmlreader_object *intern = Z_XMLREADER_P(return_value); in PHP_METHOD() local
1027 intern->ptr = reader; in PHP_METHOD()
1068 xmlreader_object *intern; in PHP_METHOD() local
1082 intern = Z_XMLREADER_P(id); in PHP_METHOD()
1083 if (intern && intern->ptr) { in PHP_METHOD()
1085 retval = xmlTextReaderSchemaValidate(intern->ptr, source); in PHP_METHOD()
1112 xmlreader_object *intern; in PHP_METHOD() local
1120 intern = Z_XMLREADER_P(id); in PHP_METHOD()
1121 if (!intern || !intern->ptr) { in PHP_METHOD()
1126 int retval = xmlTextReaderSetParserProp(intern->ptr,property, value); in PHP_METHOD()
1162 xmlreader_object *intern = NULL; in xml_reader_from_string() local
1176 intern = Z_XMLREADER_P(id); in xml_reader_from_string()
1177 xmlreader_free_resources(intern); in xml_reader_from_string()
1220 intern = Z_XMLREADER_P(return_value); in xml_reader_from_string()
1224 intern->input = inputbfr; in xml_reader_from_string()
1225 intern->ptr = reader; in xml_reader_from_string()
1271 xmlreader_object *intern; in PHP_METHOD() local
1292 intern = Z_XMLREADER_P(id); in PHP_METHOD()
1294 if (intern->ptr) { in PHP_METHOD()
1295 node = xmlTextReaderExpand(intern->ptr); in PHP_METHOD()