Lines Matching refs:LIBXML

314 	context = php_stream_context_from_zval(LIBXML(stream_context), 0);  in php_libxml_streams_IO_open_wrapper()
358 if (LIBXML(entity_loader_disabled)) { in php_libxml_input_buffer_create_filename()
464 zend_llist_add_element(LIBXML(error_list), &error_copy); in _php_list_set_error_structure()
485 if (LIBXML(error_list)) { in php_libxml_issue_error()
508 smart_str_appendl(&LIBXML(error_buffer), buf, len); in php_libxml_internal_error_handler()
513 if (LIBXML(error_list)) { in php_libxml_internal_error_handler()
514 _php_list_set_error_structure(NULL, LIBXML(error_buffer).c); in php_libxml_internal_error_handler()
518 php_libxml_ctx_error_level(E_WARNING, ctx, LIBXML(error_buffer).c TSRMLS_CC); in php_libxml_internal_error_handler()
521 php_libxml_ctx_error_level(E_NOTICE, ctx, LIBXML(error_buffer).c TSRMLS_CC); in php_libxml_internal_error_handler()
524 php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", LIBXML(error_buffer).c); in php_libxml_internal_error_handler()
527 smart_str_free(&LIBXML(error_buffer)); in php_libxml_internal_error_handler()
591 oldcontext = LIBXML(stream_context); in php_libxml_switch_context()
592 LIBXML(stream_context) = context; in php_libxml_switch_context()
668 if (LIBXML(stream_context)) { in php_libxml_post_deactivate()
670 efree(LIBXML(stream_context)); in php_libxml_post_deactivate()
671 LIBXML(stream_context) = NULL; in php_libxml_post_deactivate()
673 smart_str_free(&LIBXML(error_buffer)); in php_libxml_post_deactivate()
674 if (LIBXML(error_list)) { in php_libxml_post_deactivate()
675 zend_llist_destroy(LIBXML(error_list)); in php_libxml_post_deactivate()
676 efree(LIBXML(error_list)); in php_libxml_post_deactivate()
677 LIBXML(error_list) = NULL; in php_libxml_post_deactivate()
705 if (LIBXML(stream_context)) { in PHP_FUNCTION()
706 zval_ptr_dtor(&LIBXML(stream_context)); in PHP_FUNCTION()
707 LIBXML(stream_context) = NULL; in PHP_FUNCTION()
710 LIBXML(stream_context) = arg; in PHP_FUNCTION()
738 if (LIBXML(error_list)) { in PHP_FUNCTION()
739 zend_llist_destroy(LIBXML(error_list)); in PHP_FUNCTION()
740 efree(LIBXML(error_list)); in PHP_FUNCTION()
741 LIBXML(error_list) = NULL; in PHP_FUNCTION()
745 if (LIBXML(error_list) == NULL) { in PHP_FUNCTION()
746 LIBXML(error_list) = (zend_llist *) emalloc(sizeof(zend_llist)); in PHP_FUNCTION()
747 …zend_llist_init(LIBXML(error_list), sizeof(xmlError), (llist_dtor_func_t) _php_libxml_free_error, … in PHP_FUNCTION()
795 if (LIBXML(error_list)) { in PHP_FUNCTION()
797 error = zend_llist_get_first(LIBXML(error_list)); in PHP_FUNCTION()
820 error = zend_llist_get_next(LIBXML(error_list)); in PHP_FUNCTION()
831 if (LIBXML(error_list)) { in PHP_FUNCTION()
832 zend_llist_clean(LIBXML(error_list)); in PHP_FUNCTION()
839 zend_bool old = LIBXML(entity_loader_disabled); in php_libxml_disable_entity_loader()
841 LIBXML(entity_loader_disabled) = disable; in php_libxml_disable_entity_loader()