Lines Matching refs:LIBXML
464 …context = php_stream_context_from_zval(Z_ISUNDEF(LIBXML(stream_context))? NULL : &LIBXML(stream_co… in php_libxml_streams_IO_open_wrapper()
508 if (LIBXML(entity_loader_disabled)) { in php_libxml_input_buffer_create_filename()
660 zend_llist_add_element(LIBXML(error_list), &error_copy); in _php_list_set_error_structure()
683 if (LIBXML(error_list)) { in php_libxml_issue_error()
704 smart_str_appendl(&LIBXML(error_buffer), buf, len); in php_libxml_internal_error_handler()
709 if (LIBXML(error_list)) { in php_libxml_internal_error_handler()
710 _php_list_set_error_structure(NULL, ZSTR_VAL(LIBXML(error_buffer).s)); in php_libxml_internal_error_handler()
715 php_libxml_ctx_error_level(E_WARNING, ctx, ZSTR_VAL(LIBXML(error_buffer).s)); in php_libxml_internal_error_handler()
718 php_libxml_ctx_error_level(E_NOTICE, ctx, ZSTR_VAL(LIBXML(error_buffer).s)); in php_libxml_internal_error_handler()
721 php_error_docref(NULL, E_WARNING, "%s", ZSTR_VAL(LIBXML(error_buffer).s)); in php_libxml_internal_error_handler()
724 smart_str_free(&LIBXML(error_buffer)); in php_libxml_internal_error_handler()
737 if (!ZEND_FCC_INITIALIZED(LIBXML(entity_loader_callback))) { in _php_libxml_external_entity_loader()
769 zend_call_known_fcc(&LIBXML(entity_loader_callback), &retval, 3, params, /* named_params */ NULL); in _php_libxml_external_entity_loader()
774 ZSTR_VAL(LIBXML(entity_loader_callback).function_handler->common.function_name)); in _php_libxml_external_entity_loader()
786 ZSTR_VAL(LIBXML(entity_loader_callback).function_handler->common.function_name)); in _php_libxml_external_entity_loader()
931 ZVAL_COPY_VALUE(oldcontext, &LIBXML(stream_context)); in php_libxml_switch_context()
934 ZVAL_COPY_VALUE(&LIBXML(stream_context), context); in php_libxml_switch_context()
986 LIBXML(entity_loader_disabled) = 0; in PHP_RINIT_FUNCTION()
993 if (ZEND_FCC_INITIALIZED(LIBXML(entity_loader_callback))) { in PHP_RSHUTDOWN_FUNCTION()
994 zend_fcc_dtor(&LIBXML(entity_loader_callback)); in PHP_RSHUTDOWN_FUNCTION()
1025 ZVAL_UNDEF(&LIBXML(stream_context)); in php_libxml_post_deactivate()
1026 smart_str_free(&LIBXML(error_buffer)); in php_libxml_post_deactivate()
1027 if (LIBXML(error_list)) { in php_libxml_post_deactivate()
1028 zend_llist_destroy(LIBXML(error_list)); in php_libxml_post_deactivate()
1029 efree(LIBXML(error_list)); in php_libxml_post_deactivate()
1030 LIBXML(error_list) = NULL; in php_libxml_post_deactivate()
1058 if (!Z_ISUNDEF(LIBXML(stream_context))) { in PHP_FUNCTION()
1059 zval_ptr_dtor(&LIBXML(stream_context)); in PHP_FUNCTION()
1060 ZVAL_UNDEF(&LIBXML(stream_context)); in PHP_FUNCTION()
1062 ZVAL_COPY(&LIBXML(stream_context), arg); in PHP_FUNCTION()
1090 if (LIBXML(error_list)) { in PHP_FUNCTION()
1091 zend_llist_destroy(LIBXML(error_list)); in PHP_FUNCTION()
1092 efree(LIBXML(error_list)); in PHP_FUNCTION()
1093 LIBXML(error_list) = NULL; in PHP_FUNCTION()
1097 if (LIBXML(error_list) == NULL) { in PHP_FUNCTION()
1098 LIBXML(error_list) = (zend_llist *) emalloc(sizeof(zend_llist)); in PHP_FUNCTION()
1099 zend_llist_init(LIBXML(error_list), sizeof(xmlError), _php_libxml_free_error, 0); in PHP_FUNCTION()
1143 if (LIBXML(error_list)) { in PHP_FUNCTION()
1146 error = zend_llist_get_first(LIBXML(error_list)); in PHP_FUNCTION()
1168 error = zend_llist_get_next(LIBXML(error_list)); in PHP_FUNCTION()
1182 if (LIBXML(error_list)) { in PHP_FUNCTION()
1183 zend_llist_clean(LIBXML(error_list)); in PHP_FUNCTION()
1190 bool old = LIBXML(entity_loader_disabled); in php_libxml_disable_entity_loader()
1192 LIBXML(entity_loader_disabled) = disable; in php_libxml_disable_entity_loader()
1221 if (ZEND_FCC_INITIALIZED(LIBXML(entity_loader_callback))) { in PHP_FUNCTION()
1222 zend_fcc_dtor(&LIBXML(entity_loader_callback)); in PHP_FUNCTION()
1231 zend_fcc_dup(&LIBXML(entity_loader_callback), &fcc); in PHP_FUNCTION()
1242 if (ZEND_FCC_INITIALIZED(LIBXML(entity_loader_callback))) { in PHP_FUNCTION()
1244 zend_get_callable_zval_from_fcc(&LIBXML(entity_loader_callback), &tmp); in PHP_FUNCTION()