Lines Matching refs:LIBXML
360 …context = php_stream_context_from_zval(Z_ISUNDEF(LIBXML(stream_context))? NULL : &LIBXML(stream_co… in php_libxml_streams_IO_open_wrapper()
403 if (LIBXML(entity_loader_disabled)) { in php_libxml_input_buffer_create_filename()
508 zend_llist_add_element(LIBXML(error_list), &error_copy); in _php_list_set_error_structure()
529 if (LIBXML(error_list)) { in php_libxml_issue_error()
551 smart_str_appendl(&LIBXML(error_buffer), buf, len); in php_libxml_internal_error_handler()
556 if (LIBXML(error_list)) { in php_libxml_internal_error_handler()
557 _php_list_set_error_structure(NULL, ZSTR_VAL(LIBXML(error_buffer).s)); in php_libxml_internal_error_handler()
561 php_libxml_ctx_error_level(E_WARNING, ctx, ZSTR_VAL(LIBXML(error_buffer).s)); in php_libxml_internal_error_handler()
564 php_libxml_ctx_error_level(E_NOTICE, ctx, ZSTR_VAL(LIBXML(error_buffer).s)); in php_libxml_internal_error_handler()
567 php_error_docref(NULL, E_WARNING, "%s", ZSTR_VAL(LIBXML(error_buffer).s)); in php_libxml_internal_error_handler()
570 smart_str_free(&LIBXML(error_buffer)); in php_libxml_internal_error_handler()
584 fci = &LIBXML(entity_loader).fci; in _php_libxml_external_entity_loader()
624 status = zend_call_function(fci, &LIBXML(entity_loader).fcc); in _php_libxml_external_entity_loader()
783 ZVAL_COPY_VALUE(oldcontext, &LIBXML(stream_context)); in php_libxml_switch_context()
786 ZVAL_COPY_VALUE(&LIBXML(stream_context), context); in php_libxml_switch_context()
888 LIBXML(entity_loader_disabled) = 0; in PHP_RINIT_FUNCTION()
895 _php_libxml_destroy_fci(&LIBXML(entity_loader).fci, &LIBXML(entity_loader).object); in PHP_RSHUTDOWN_FUNCTION()
925 ZVAL_UNDEF(&LIBXML(stream_context)); in php_libxml_post_deactivate()
926 smart_str_free(&LIBXML(error_buffer)); in php_libxml_post_deactivate()
927 if (LIBXML(error_list)) { in php_libxml_post_deactivate()
928 zend_llist_destroy(LIBXML(error_list)); in php_libxml_post_deactivate()
929 efree(LIBXML(error_list)); in php_libxml_post_deactivate()
930 LIBXML(error_list) = NULL; in php_libxml_post_deactivate()
959 if (!Z_ISUNDEF(LIBXML(stream_context))) { in PHP_FUNCTION()
960 zval_ptr_dtor(&LIBXML(stream_context)); in PHP_FUNCTION()
961 ZVAL_UNDEF(&LIBXML(stream_context)); in PHP_FUNCTION()
963 ZVAL_COPY(&LIBXML(stream_context), arg); in PHP_FUNCTION()
992 if (LIBXML(error_list)) { in PHP_FUNCTION()
993 zend_llist_destroy(LIBXML(error_list)); in PHP_FUNCTION()
994 efree(LIBXML(error_list)); in PHP_FUNCTION()
995 LIBXML(error_list) = NULL; in PHP_FUNCTION()
999 if (LIBXML(error_list) == NULL) { in PHP_FUNCTION()
1000 LIBXML(error_list) = (zend_llist *) emalloc(sizeof(zend_llist)); in PHP_FUNCTION()
1001 …zend_llist_init(LIBXML(error_list), sizeof(xmlError), (llist_dtor_func_t) _php_libxml_free_error, … in PHP_FUNCTION()
1049 if (LIBXML(error_list)) { in PHP_FUNCTION()
1051 error = zend_llist_get_first(LIBXML(error_list)); in PHP_FUNCTION()
1073 error = zend_llist_get_next(LIBXML(error_list)); in PHP_FUNCTION()
1084 if (LIBXML(error_list)) { in PHP_FUNCTION()
1085 zend_llist_clean(LIBXML(error_list)); in PHP_FUNCTION()
1092 zend_bool old = LIBXML(entity_loader_disabled); in php_libxml_disable_entity_loader()
1094 LIBXML(entity_loader_disabled) = disable; in php_libxml_disable_entity_loader()
1124 _php_libxml_destroy_fci(&LIBXML(entity_loader).fci, &LIBXML(entity_loader).object); in PHP_FUNCTION()
1127 LIBXML(entity_loader).fci = fci; in PHP_FUNCTION()
1130 ZVAL_OBJ(&LIBXML(entity_loader).object, fci.object); in PHP_FUNCTION()
1131 Z_ADDREF(LIBXML(entity_loader).object); in PHP_FUNCTION()
1133 LIBXML(entity_loader).fcc = fcc; in PHP_FUNCTION()