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()
887 LIBXML(entity_loader_disabled) = 0; in PHP_RINIT_FUNCTION()
894 _php_libxml_destroy_fci(&LIBXML(entity_loader).fci, &LIBXML(entity_loader).object); in PHP_RSHUTDOWN_FUNCTION()
924 ZVAL_UNDEF(&LIBXML(stream_context)); in php_libxml_post_deactivate()
925 smart_str_free(&LIBXML(error_buffer)); in php_libxml_post_deactivate()
926 if (LIBXML(error_list)) { in php_libxml_post_deactivate()
927 zend_llist_destroy(LIBXML(error_list)); in php_libxml_post_deactivate()
928 efree(LIBXML(error_list)); in php_libxml_post_deactivate()
929 LIBXML(error_list) = NULL; in php_libxml_post_deactivate()
957 if (!Z_ISUNDEF(LIBXML(stream_context))) { in PHP_FUNCTION()
958 zval_ptr_dtor(&LIBXML(stream_context)); in PHP_FUNCTION()
959 ZVAL_UNDEF(&LIBXML(stream_context)); in PHP_FUNCTION()
961 ZVAL_COPY(&LIBXML(stream_context), arg); in PHP_FUNCTION()
989 if (LIBXML(error_list)) { in PHP_FUNCTION()
990 zend_llist_destroy(LIBXML(error_list)); in PHP_FUNCTION()
991 efree(LIBXML(error_list)); in PHP_FUNCTION()
992 LIBXML(error_list) = NULL; in PHP_FUNCTION()
996 if (LIBXML(error_list) == NULL) { in PHP_FUNCTION()
997 LIBXML(error_list) = (zend_llist *) emalloc(sizeof(zend_llist)); in PHP_FUNCTION()
998 …zend_llist_init(LIBXML(error_list), sizeof(xmlError), (llist_dtor_func_t) _php_libxml_free_error, … in PHP_FUNCTION()
1046 if (LIBXML(error_list)) { in PHP_FUNCTION()
1048 error = zend_llist_get_first(LIBXML(error_list)); in PHP_FUNCTION()
1070 error = zend_llist_get_next(LIBXML(error_list)); in PHP_FUNCTION()
1081 if (LIBXML(error_list)) { in PHP_FUNCTION()
1082 zend_llist_clean(LIBXML(error_list)); in PHP_FUNCTION()
1089 zend_bool old = LIBXML(entity_loader_disabled); in php_libxml_disable_entity_loader()
1091 LIBXML(entity_loader_disabled) = disable; in php_libxml_disable_entity_loader()
1120 _php_libxml_destroy_fci(&LIBXML(entity_loader).fci, &LIBXML(entity_loader).object); in PHP_FUNCTION()
1123 LIBXML(entity_loader).fci = fci; in PHP_FUNCTION()
1126 ZVAL_OBJ(&LIBXML(entity_loader).object, fci.object); in PHP_FUNCTION()
1127 Z_ADDREF(LIBXML(entity_loader).object); in PHP_FUNCTION()
1129 LIBXML(entity_loader).fcc = fcc; in PHP_FUNCTION()