Lines Matching refs:LIBXML
362 …context = php_stream_context_from_zval(Z_ISUNDEF(LIBXML(stream_context))? NULL : &LIBXML(stream_co… in php_libxml_streams_IO_open_wrapper()
406 if (LIBXML(entity_loader_disabled)) { in php_libxml_input_buffer_create_filename()
516 zend_llist_add_element(LIBXML(error_list), &error_copy); in _php_list_set_error_structure()
537 if (LIBXML(error_list)) { in php_libxml_issue_error()
559 smart_str_appendl(&LIBXML(error_buffer), buf, len); in php_libxml_internal_error_handler()
564 if (LIBXML(error_list)) { in php_libxml_internal_error_handler()
565 _php_list_set_error_structure(NULL, ZSTR_VAL(LIBXML(error_buffer).s)); in php_libxml_internal_error_handler()
569 php_libxml_ctx_error_level(E_WARNING, ctx, ZSTR_VAL(LIBXML(error_buffer).s)); in php_libxml_internal_error_handler()
572 php_libxml_ctx_error_level(E_NOTICE, ctx, ZSTR_VAL(LIBXML(error_buffer).s)); in php_libxml_internal_error_handler()
575 php_error_docref(NULL, E_WARNING, "%s", ZSTR_VAL(LIBXML(error_buffer).s)); in php_libxml_internal_error_handler()
578 smart_str_free(&LIBXML(error_buffer)); in php_libxml_internal_error_handler()
592 fci = &LIBXML(entity_loader).fci; in _php_libxml_external_entity_loader()
632 status = zend_call_function(fci, &LIBXML(entity_loader).fcc); in _php_libxml_external_entity_loader()
791 ZVAL_COPY_VALUE(oldcontext, &LIBXML(stream_context)); in php_libxml_switch_context()
794 ZVAL_COPY_VALUE(&LIBXML(stream_context), context); in php_libxml_switch_context()
896 LIBXML(entity_loader_disabled) = 0; in PHP_RINIT_FUNCTION()
903 _php_libxml_destroy_fci(&LIBXML(entity_loader).fci, &LIBXML(entity_loader).object); in PHP_RSHUTDOWN_FUNCTION()
933 ZVAL_UNDEF(&LIBXML(stream_context)); in php_libxml_post_deactivate()
934 smart_str_free(&LIBXML(error_buffer)); in php_libxml_post_deactivate()
935 if (LIBXML(error_list)) { in php_libxml_post_deactivate()
936 zend_llist_destroy(LIBXML(error_list)); in php_libxml_post_deactivate()
937 efree(LIBXML(error_list)); in php_libxml_post_deactivate()
938 LIBXML(error_list) = NULL; in php_libxml_post_deactivate()
967 if (!Z_ISUNDEF(LIBXML(stream_context))) { in PHP_FUNCTION()
968 zval_ptr_dtor(&LIBXML(stream_context)); in PHP_FUNCTION()
969 ZVAL_UNDEF(&LIBXML(stream_context)); in PHP_FUNCTION()
971 ZVAL_COPY(&LIBXML(stream_context), arg); in PHP_FUNCTION()
1000 if (LIBXML(error_list)) { in PHP_FUNCTION()
1001 zend_llist_destroy(LIBXML(error_list)); in PHP_FUNCTION()
1002 efree(LIBXML(error_list)); in PHP_FUNCTION()
1003 LIBXML(error_list) = NULL; in PHP_FUNCTION()
1007 if (LIBXML(error_list) == NULL) { in PHP_FUNCTION()
1008 LIBXML(error_list) = (zend_llist *) emalloc(sizeof(zend_llist)); in PHP_FUNCTION()
1009 …zend_llist_init(LIBXML(error_list), sizeof(xmlError), (llist_dtor_func_t) _php_libxml_free_error, … in PHP_FUNCTION()
1053 if (LIBXML(error_list)) { in PHP_FUNCTION()
1056 error = zend_llist_get_first(LIBXML(error_list)); in PHP_FUNCTION()
1078 error = zend_llist_get_next(LIBXML(error_list)); in PHP_FUNCTION()
1091 if (LIBXML(error_list)) { in PHP_FUNCTION()
1092 zend_llist_clean(LIBXML(error_list)); in PHP_FUNCTION()
1099 zend_bool old = LIBXML(entity_loader_disabled); in php_libxml_disable_entity_loader()
1101 LIBXML(entity_loader_disabled) = disable; in php_libxml_disable_entity_loader()
1131 _php_libxml_destroy_fci(&LIBXML(entity_loader).fci, &LIBXML(entity_loader).object); in PHP_FUNCTION()
1134 LIBXML(entity_loader).fci = fci; in PHP_FUNCTION()
1137 ZVAL_OBJ(&LIBXML(entity_loader).object, fci.object); in PHP_FUNCTION()
1138 Z_ADDREF(LIBXML(entity_loader).object); in PHP_FUNCTION()
1140 LIBXML(entity_loader).fcc = fcc; in PHP_FUNCTION()