xref: /PHP-8.4/win32/build/cppcheck.cfg (revision 7aa0632c)
1<?xml version="1.0"?>
2<def format="2">
3	<function name="_zend_mm_realloc">
4		<use-retval/>
5		<noreturn>false</noreturn>
6	</function>
7	<function name="_zend_mm_realloc2">
8		<use-retval/>
9		<noreturn>false</noreturn>
10	</function>
11	<function name="_emalloc,_emalloc_large,_emalloc_huge">
12		<use-retval/>
13		<noreturn>false</noreturn>
14		<arg nr="1">
15			<minsize type="argvalue" arg="1"/>
16		</arg>
17	</function>
18	<function name="_safe_emalloc">
19		<use-retval/>
20		<noreturn>false</noreturn>
21		<arg nr="1">
22			<minsize type="argvalue" arg="1"/>
23		</arg>
24		<arg nr="2">
25			<minsize type="argvalue" arg="1"/>
26		</arg>
27		<arg nr="3">
28			<minsize type="argvalue" arg="1"/>
29		</arg>
30	</function>
31	<function name="_ecalloc">
32		<use-retval/>
33		<noreturn>false</noreturn>
34		<arg nr="1">
35			<minsize type="argvalue" arg="1"/>
36		</arg>
37		<arg nr="2">
38			<minsize type="argvalue" arg="1"/>
39		</arg>
40	</function>
41	<function name="_estrdup">
42		<use-retval/>
43		<noreturn>false</noreturn>
44		<arg nr="1">
45			<not-uninit/>
46		</arg>
47	</function>
48	<function name="_efree,_efree_large,_efree_huge">
49		<noreturn>false</noreturn>
50		<arg nr="1">
51			<not-uninit/>
52		</arg>
53	</function>
54	<function name="_zend_mm_free">
55		<noreturn>false</noreturn>
56	</function>
57	<function name="_estrndup">
58		<use-retval/>
59		<noreturn>false</noreturn>
60		<arg nr="1">
61			<not-uninit/>
62		</arg>
63		<arg nr="2">
64			<minsize type="argvalue" arg="1"/>
65		</arg>
66	</function>
67	<function name="_erealloc">
68		<use-retval/>
69		<noreturn>false</noreturn>
70	</function>
71	<function name="_erealloc2">
72		<use-retval/>
73		<noreturn>false</noreturn>
74	</function>
75	<function name="_safe_erealloc">
76		<use-retval/>
77		<noreturn>false</noreturn>
78	</function>
79	<function name="_safe_realloc">
80		<use-retval/>
81		<noreturn>false</noreturn>
82	</function>
83	<function name="__zend_realloc">
84		<use-retval/>
85		<noreturn>false</noreturn>
86	</function>
87	<function name="_zend_hash_real_init">
88		<noreturn>false</noreturn>
89		<arg nr="1"/>
90		<arg nr="2"/>
91	</function>
92	<function name="_zend_hash_init">
93		<noreturn>false</noreturn>
94		<arg nr="1"/>
95		<arg nr="2"/>
96		<arg nr="3"/>
97		<arg nr="4"/>
98	</function>
99	<function name="_zend_hash_init_ex">
100		<noreturn>false</noreturn>
101		<arg nr="1"/>
102		<arg nr="2"/>
103		<arg nr="3"/>
104		<arg nr="4"/>
105		<arg nr="5"/>
106	</function>
107	<function name="_zend_hash_destroy">
108		<noreturn>false</noreturn>
109		<arg nr="1">
110			<not-null/>
111			<not-uninit/>
112		</arg>
113	</function>
114	<function name="_zend_hash_clean">
115		<noreturn>false</noreturn>
116		<arg nr="1">
117			<not-null/>
118			<not-uninit/>
119		</arg>
120	</function>
121	<function name="zend_string_alloc">
122		<use-retval/>
123		<arg nr="1">
124			<minsize type="argvalue" arg="1"/>
125		</arg>
126		<arg nr="2"/>
127	</function>
128	<function name="zend_string_addref">
129		<leak-ignore/>
130		<arg nr="1">
131			<not-null/>
132			<not-uninit/>
133		</arg>
134	</function>
135	<function name="zend_string_delref">
136		<leak-ignore/>
137		<arg nr="1">
138			<not-null/>
139			<not-uninit/>
140		</arg>
141	</function>
142	<function name="zend_string_safe_alloc">
143		<use-retval/>
144		<arg nr="1"/>
145		<arg nr="2"/>
146		<arg nr="3"/>
147		<arg nr="4"/>
148	</function>
149	<function name="zend_string_init">
150		<use-retval/>
151		<arg nr="1">
152			<not-null/>
153			<not-uninit/>
154		</arg>
155		<arg nr="2">
156			<minsize type="argvalue" arg="1"/>
157		</arg>
158		<arg nr="3"/>
159	</function>
160	<function name="zend_string_copy">
161		<use-retval/>
162		<arg nr="1">
163			<not-null/>
164			<not-uninit/>
165		</arg>
166	</function>
167	<function name="zend_string_dup">
168		<use-retval/>
169		<arg nr="1">
170			<not-null/>
171			<not-uninit/>
172		</arg>
173		<arg nr="2"/>
174	</function>
175	<function name="zend_string_realloc">
176		<use-retval/>
177		<arg nr="1">
178			<not-null/>
179			<not-uninit/>
180		</arg>
181		<arg nr="2">
182			<minsize type="argvalue" arg="1"/>
183		</arg>
184		<arg nr="3"/>
185	</function>
186	<function name="zend_string_extend">
187		<use-retval/>
188		<arg nr="1">
189			<not-null/>
190			<not-uninit/>
191		</arg>
192		<arg nr="2">
193			<minsize type="argvalue" arg="1"/>
194		</arg>
195		<arg nr="3"/>
196	</function>
197	<function name="zend_string_truncate">
198		<use-retval/>
199		<arg nr="1">
200			<not-null/>
201			<not-uninit/>
202		</arg>
203		<arg nr="2">
204			<minsize type="argvalue" arg="1"/>
205		</arg>
206		<arg nr="3"/>
207	</function>
208	<function name="zend_string_safe_realloc">
209		<use-retval/>
210		<arg nr="1">
211			<not-null/>
212			<not-uninit/>
213		</arg>
214		<arg nr="2">
215			<minsize type="argvalue" arg="1"/>
216		</arg>
217		<arg nr="3">
218			<minsize type="argvalue" arg="1"/>
219		</arg>
220		<arg nr="4">
221			<minsize type="argvalue" arg="1"/>
222		</arg>
223		<arg nr="5"/>
224	</function>
225	<function name="zend_string_free">
226		<arg nr="1">
227			<not-null/>
228			<not-uninit/>
229		</arg>
230	</function>
231	<function name="zend_string_release">
232		<arg nr="1">
233			<not-null/>
234			<not-uninit/>
235		</arg>
236	</function>
237	<function name="zend_string_equals">
238		<use-retval/>
239		<arg nr="1">
240			<not-null/>
241			<not-uninit/>
242		</arg>
243		<arg nr="2">
244			<not-null/>
245			<not-uninit/>
246		</arg>
247	</function>
248	<memory>
249		<alloc init="false">_emalloc</alloc>
250		<alloc init="true">_safe_emalloc</alloc>
251		<alloc init="true">_ecalloc</alloc>
252		<alloc init="true">_estrdup</alloc>
253		<alloc init="true">_estrndup</alloc>
254		<dealloc>_efree</dealloc>
255	</memory>
256	<memory>
257		<alloc init="true">_emalloc_large</alloc>
258		<dealloc>_efree_large</dealloc>
259	</memory>
260	<memory>
261		<alloc init="true">_emalloc_huge</alloc>
262		<dealloc>_efree_huge</dealloc>
263	</memory>
264	<memory>
265		<alloc init="true">__zend_malloc</alloc>
266		<alloc init="true">__zend_calloc</alloc>
267		<alloc init="true">_safe_malloc</alloc>
268		<alloc init="true">zend_strndup</alloc>
269		<dealloc>free</dealloc>
270	</memory>
271	<memory>
272		<alloc init="true">_zend_mm_malloc</alloc>
273		<alloc init="true">_zend_mm_calloc</alloc>
274		<dealloc>_zend_mm_free</dealloc>
275	</memory>
276<!--
277	<resource>
278		<alloc init="true">_zend_hash_init</alloc>
279		<alloc init="true">_zend_hash_init_ex</alloc>
280		<alloc init="true">_zend_hash_real_init_ex</alloc>
281		<dealloc>_zend_hash_destroy</dealloc>
282	</resource>
283	<resource>
284		<alloc init="true">zend_string_alloc</alloc>
285		<alloc init="true">zend_string_safe_alloc</alloc>
286		<dealloc>zend_string_free</dealloc>
287		<dealloc>zend_string_release</dealloc>
288	</resource>
289-->
290	<function name="zend_error_noreturn">
291		<noreturn>true</noreturn>
292		<leak-ignore/>
293	</function>
294	<function name="zend_mm_panic">
295		<noreturn>true</noreturn>
296		<leak-ignore/>
297	</function>
298	<function name="zend_mm_safe_error">
299		<noreturn>true</noreturn>
300		<leak-ignore/>
301	</function>
302	<function name="zend_out_of_memory">
303		<noreturn>true</noreturn>
304		<leak-ignore/>
305	</function>
306	<function name="zend_out_of_memory">
307		<noreturn>true</noreturn>
308		<leak-ignore/>
309	</function>
310	<function name="_zend_mm_alloc">
311		<use-retval/>
312		<noreturn>false</noreturn>
313		<arg nr="1">
314			<not-null/>
315			<not-uninit/>
316		</arg>
317		<arg nr="2">
318			<minsize type="argvalue" arg="1"/>
319		</arg>
320	</function>
321	<function name="_zend_mm_free">
322		<noreturn>false</noreturn>
323		<arg nr="1">
324			<not-null/>
325			<not-uninit/>
326		</arg>
327		<arg nr="2"/>
328	</function>
329	<function name="smart_str_alloc">
330		<noreturn>false</noreturn>
331		<arg nr="1"/>
332		<arg nr="2"/>
333		<arg nr="3"/>
334	</function>
335	<function name="smart_str_appendl_ex">
336		<noreturn>false</noreturn>
337		<arg nr="1">
338			<not-null/>
339			<not-uninit/>
340		</arg>
341		<arg nr="2">
342			<not-null/>
343			<not-uninit/>
344		</arg>
345		<arg nr="3"/>
346		<arg nr="4"/>
347	</function>
348	<function name="smart_str_free">
349		<noreturn>false</noreturn>
350		<arg nr="1"/>
351	</function>
352	<resource>
353		<alloc init="true">zend_str_alloc</alloc>
354		<dealloc>zend_str_free</dealloc>
355	</resource>
356	<function name="_php_stream_alloc">
357		<noreturn>false</noreturn>
358		<arg nr="1"/>
359		<arg nr="2"/>
360		<arg nr="3"/>
361		<arg nr="4"/>
362	</function>
363	<function name="_php_stream_free">
364		<noreturn>false</noreturn>
365		<arg nr="1">
366			<not-null/>
367			<not-uninit/>
368		</arg>
369		<arg nr="2"/>
370	</function>
371	<resource>
372		<alloc init="true">_php_stream_alloc</alloc>
373		<dealloc>_php_stream_free</dealloc>
374	</resource>
375	<function name="zend_init_rsrc_list">
376		<noreturn>false</noreturn>
377	</function>
378	<function name="zend_init_rsrc_plist">
379		<noreturn>false</noreturn>
380	</function>
381	<function name="zend_close_rsrc_plist">
382		<noreturn>false</noreturn>
383		<arg nr="1">
384			<not-null/>
385			<not-uninit/>
386		</arg>
387	</function>
388	<function name="zend_destroy_rsrc_plist">
389		<noreturn>false</noreturn>
390		<arg nr="1">
391			<not-null/>
392			<not-uninit/>
393		</arg>
394	</function>
395	<resource>
396		<alloc init="true">zend_init_rsrc_list</alloc>
397		<alloc init="true">zend_init_rsrc_plist</alloc>
398		<dealloc>zend_close_rsrc_plist</dealloc>
399		<dealloc>zend_destroy_rsrc_plist</dealloc>
400	</resource>
401	<function name="zend_init_rsrc_list_dtors">
402		<noreturn>false</noreturn>
403	</function>
404	<function name="zend_destroy_rsrc_list_dtors">
405		<noreturn>false</noreturn>
406	</function>
407	<resource>
408		<alloc init="true">zend_init_rsrc_list_dtors</alloc>
409		<dealloc>zend_destroy_rsrc_list_dtors</dealloc>
410	</resource>
411	<function name="zend_list_insert,zend_register_resource">
412		<noreturn>false</noreturn>
413		<arg nr="1">
414			<not-null/>
415			<not-uninit/>
416		</arg>
417		<arg nr="2"/>
418	</function>
419	<function name="zend_list_close">
420		<noreturn>false</noreturn>
421		<arg nr="1">
422			<not-null/>
423			<not-uninit/>
424		</arg>
425	</function>
426	<resource>
427		<alloc init="true">zend_list_insert</alloc>
428		<dealloc>zend_list_close</dealloc>
429	</resource>
430	<function name="zend_bailout">
431		<noreturn>true</noreturn>
432		<leak-ignore/>
433	</function>
434	<function name="php_hashcontext_dtor">
435		<noreturn>false</noreturn>
436		<arg nr="1">
437			<not-null/>
438			<not-uninit/>
439		</arg>
440	</function>
441	<function name="php_hashcontext_create">
442		<noreturn>false</noreturn>
443		<arg nr="1">
444			<not-null/>
445			<not-uninit/>
446		</arg>
447	</function>
448	<resource>
449		<alloc init="true">php_hashcontext_create</alloc>
450		<dealloc>php_hashcontext_dtor</dealloc>
451	</resource>
452</def>
453