forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4b0e5d6
committed
xml2: Replace deprecated routines with recommended ones
Some functions are used in the tree and are currently marked asdeprecated by upstream. This commit refreshes the code to use therecommended functions, leading to the following changes:- xmlSubstituteEntitiesDefault() is gone, and needs to be replaced withXML_PARSE_NOENT for the paths doing the parsing.- xmlParseMemory() -> xmlReadMemory().These functions, as well as more functions setting global states, havebeen officially marked as deprecated by upstream in August 2022. Theirreplacements exist since the 2001-ish area, as far as I have checked,so that should be safe.This has been originally applied as65c5864 without a backpatch,and this has come up as well when working on400928b. Per requestfrom Tom Lane, for new buildfarm member indri that is able to seedeprecation warnings with xmlSubstituteEntitiesDefault() in 16 and olderstable branches.Author: Dmitry KovalDiscussion:https://postgr.es/m/18274-98d16bc03520665f@postgresql.orgDiscussion:https://postgr.es/m/1012981.1713222862@sss.pgh.pa.usBakpatch-through: 121 parente097086 commit4b0e5d6
2 files changed
+14
-10
lines changedLines changed: 8 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
74 | 74 |
| |
75 | 75 |
| |
76 | 76 |
| |
77 |
| - | |
78 |
| - | |
79 | 77 |
| |
80 | 78 |
| |
81 | 79 |
| |
| |||
104 | 102 |
| |
105 | 103 |
| |
106 | 104 |
| |
107 |
| - | |
| 105 | + | |
| 106 | + | |
108 | 107 |
| |
109 | 108 |
| |
110 | 109 |
| |
| |||
424 | 423 |
| |
425 | 424 |
| |
426 | 425 |
| |
427 |
| - | |
428 |
| - | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
429 | 429 |
| |
430 | 430 |
| |
431 | 431 |
| |
| |||
718 | 718 |
| |
719 | 719 |
| |
720 | 720 |
| |
721 |
| - | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
722 | 724 |
| |
723 | 725 |
| |
724 | 726 |
| |
|
Lines changed: 6 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
85 | 85 |
| |
86 | 86 |
| |
87 | 87 |
| |
88 |
| - | |
89 |
| - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
90 | 91 |
| |
91 | 92 |
| |
92 | 93 |
| |
93 | 94 |
| |
94 | 95 |
| |
95 | 96 |
| |
96 |
| - | |
97 |
| - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
98 | 100 |
| |
99 | 101 |
| |
100 | 102 |
| |
|
0 commit comments
Comments
(0)