Lines Matching refs:intern
352 static void xmlreader_free_resources(xmlreader_object *intern) { in xmlreader_free_resources() argument
353 if (intern) { in xmlreader_free_resources()
354 if (intern->input) { in xmlreader_free_resources()
355 xmlFreeParserInputBuffer(intern->input); in xmlreader_free_resources()
356 intern->input = NULL; in xmlreader_free_resources()
359 if (intern->ptr) { in xmlreader_free_resources()
360 xmlFreeTextReader(intern->ptr); in xmlreader_free_resources()
361 intern->ptr = NULL; in xmlreader_free_resources()
364 if (intern->schema) { in xmlreader_free_resources()
365 xmlRelaxNGFree((xmlRelaxNGPtr) intern->schema); in xmlreader_free_resources()
366 intern->schema = NULL; in xmlreader_free_resources()
376 xmlreader_object *intern = php_xmlreader_fetch_object(object); in xmlreader_objects_free_storage() local
378 zend_object_std_dtor(&intern->std); in xmlreader_objects_free_storage()
380 xmlreader_free_resources(intern); in xmlreader_objects_free_storage()
387 xmlreader_object *intern; in xmlreader_objects_new() local
389 intern = ecalloc(1, sizeof(xmlreader_object) + zend_object_properties_size(class_type)); in xmlreader_objects_new()
390 zend_object_std_init(&intern->std, class_type); in xmlreader_objects_new()
391 object_properties_init(&intern->std, class_type); in xmlreader_objects_new()
392 intern->prop_handler = &xmlreader_prop_handlers; in xmlreader_objects_new()
393 intern->std.handlers = &xmlreader_object_handlers; in xmlreader_objects_new()
395 return &intern->std; in xmlreader_objects_new()
404 xmlreader_object *intern; in php_xmlreader_string_arg() local
418 intern = Z_XMLREADER_P(id); in php_xmlreader_string_arg()
419 if (intern && intern->ptr) { in php_xmlreader_string_arg()
420 retchar = (char *)internal_function(intern->ptr, (const unsigned char *)name); in php_xmlreader_string_arg()
436 xmlreader_object *intern; in php_xmlreader_no_arg() local
440 intern = Z_XMLREADER_P(id); in php_xmlreader_no_arg()
441 if (intern && intern->ptr) { in php_xmlreader_no_arg()
442 retval = internal_function(intern->ptr); in php_xmlreader_no_arg()
461 xmlreader_object *intern; in php_xmlreader_no_arg_string() local
465 intern = Z_XMLREADER_P(id); in php_xmlreader_no_arg_string()
466 if (intern && intern->ptr) { in php_xmlreader_no_arg_string()
467 retchar = (char *)internal_function(intern->ptr); in php_xmlreader_no_arg_string()
486 xmlreader_object *intern; in php_xmlreader_set_relaxng_schema() local
501 intern = Z_XMLREADER_P(id); in php_xmlreader_set_relaxng_schema()
502 if (intern && intern->ptr) { in php_xmlreader_set_relaxng_schema()
506 retval = xmlTextReaderRelaxNGSetSchema(intern->ptr, schema); in php_xmlreader_set_relaxng_schema()
510 retval = xmlTextReaderRelaxNGSetSchema(intern->ptr, NULL); in php_xmlreader_set_relaxng_schema()
514 if (intern->schema) { in php_xmlreader_set_relaxng_schema()
515 xmlRelaxNGFree((xmlRelaxNGPtr) intern->schema); in php_xmlreader_set_relaxng_schema()
518 intern->schema = schema; in php_xmlreader_set_relaxng_schema()
540 xmlreader_object *intern; in PHP_METHOD() local
543 intern = Z_XMLREADER_P(id); in PHP_METHOD()
547 xmlreader_free_resources(intern); in PHP_METHOD()
568 xmlreader_object *intern; in PHP_METHOD() local
576 intern = Z_XMLREADER_P(id); in PHP_METHOD()
577 if (intern && intern->ptr) { in PHP_METHOD()
578 retchar = (char *)xmlTextReaderGetAttributeNo(intern->ptr, attr_pos); in PHP_METHOD()
593 xmlreader_object *intern; in PHP_METHOD() local
607 intern = Z_XMLREADER_P(id); in PHP_METHOD()
608 if (intern && intern->ptr) { in PHP_METHOD()
609 retchar = (char *)xmlTextReaderGetAttributeNs(intern->ptr, (xmlChar *)name, (xmlChar *)ns_uri); in PHP_METHOD()
625 xmlreader_object *intern; in PHP_METHOD() local
633 intern = Z_XMLREADER_P(id); in PHP_METHOD()
634 if (intern && intern->ptr) { in PHP_METHOD()
635 retval = xmlTextReaderGetParserProp(intern->ptr,property); in PHP_METHOD()
671 xmlreader_object *intern; in PHP_METHOD() local
685 intern = Z_XMLREADER_P(id); in PHP_METHOD()
686 if (intern && intern->ptr) { in PHP_METHOD()
687 retval = xmlTextReaderMoveToAttribute(intern->ptr, (xmlChar *)name); in PHP_METHOD()
705 xmlreader_object *intern; in PHP_METHOD() local
713 intern = Z_XMLREADER_P(id); in PHP_METHOD()
714 if (intern && intern->ptr) { in PHP_METHOD()
715 retval = xmlTextReaderMoveToAttributeNo(intern->ptr, attr_pos); in PHP_METHOD()
733 xmlreader_object *intern; in PHP_METHOD() local
747 intern = Z_XMLREADER_P(id); in PHP_METHOD()
748 if (intern && intern->ptr) { in PHP_METHOD()
749 retval = xmlTextReaderMoveToAttributeNs(intern->ptr, (xmlChar *)name, (xmlChar *)ns_uri); in PHP_METHOD()
789 xmlreader_object *intern; in PHP_METHOD() local
792 intern = Z_XMLREADER_P(id); in PHP_METHOD()
793 if (intern != NULL && intern->ptr != NULL) { in PHP_METHOD()
794 retval = xmlTextReaderRead(intern->ptr); in PHP_METHOD()
814 xmlreader_object *intern; in PHP_METHOD() local
822 intern = Z_XMLREADER_P(id); in PHP_METHOD()
823 if (intern != NULL && intern->ptr != NULL) { in PHP_METHOD()
826 if (xmlTextReaderNodeType(intern->ptr) == XML_READER_TYPE_END_ELEMENT) { in PHP_METHOD()
827 retval = xmlTextReaderRead(intern->ptr); in PHP_METHOD()
830 retval = xmlTextReaderNext(intern->ptr); in PHP_METHOD()
832 if (xmlStrEqual(xmlTextReaderConstLocalName(intern->ptr), (xmlChar *)name)) { in PHP_METHOD()
835 retval = xmlTextReaderNext(intern->ptr); in PHP_METHOD()
856 xmlreader_object *intern = NULL; in PHP_METHOD() local
871 intern = Z_XMLREADER_P(id); in PHP_METHOD()
872 xmlreader_free_resources(intern); in PHP_METHOD()
894 intern = Z_XMLREADER_P(return_value); in PHP_METHOD()
895 intern->ptr = reader; in PHP_METHOD()
899 intern->ptr = reader; in PHP_METHOD()
946 xmlreader_object *intern; in PHP_METHOD() local
960 intern = Z_XMLREADER_P(id); in PHP_METHOD()
961 if (intern && intern->ptr) { in PHP_METHOD()
962 retval = xmlTextReaderSchemaValidate(intern->ptr, source); in PHP_METHOD()
990 xmlreader_object *intern; in PHP_METHOD() local
998 intern = Z_XMLREADER_P(id); in PHP_METHOD()
999 if (intern && intern->ptr) { in PHP_METHOD()
1000 retval = xmlTextReaderSetParserProp(intern->ptr,property, value); in PHP_METHOD()
1040 xmlreader_object *intern = NULL; in PHP_METHOD() local
1056 intern = Z_XMLREADER_P(id); in PHP_METHOD()
1057 xmlreader_free_resources(intern); in PHP_METHOD()
1091 intern = Z_XMLREADER_P(return_value); in PHP_METHOD()
1095 intern->input = inputbfr; in PHP_METHOD()
1096 intern->ptr = reader; in PHP_METHOD()
1126 xmlreader_object *intern; in PHP_METHOD() local
1140 intern = Z_XMLREADER_P(id); in PHP_METHOD()
1142 if (intern && intern->ptr) { in PHP_METHOD()
1143 node = xmlTextReaderExpand(intern->ptr); in PHP_METHOD()