summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2016-08-31 12:09:56 +0200
committerAnatol Belski <ab@php.net>2016-08-31 12:10:40 +0200
commite446ec14e568b9c6b0f6bc50030e2ff4af57ebb9 (patch)
tree647f2bae68407bc9b8a7cfec8b2ec0ea9f55a99b
parent4c8e6a2c95bfadee5c4186e0a5afdd5a999ef10a (diff)
downloadphp-git-e446ec14e568b9c6b0f6bc50030e2ff4af57ebb9.tar.gz
add more defs for resource alloc/dealloc
-rw-r--r--win32/build/cppcheck.cfg74
1 files changed, 74 insertions, 0 deletions
diff --git a/win32/build/cppcheck.cfg b/win32/build/cppcheck.cfg
index a59d20ec68..328680aa53 100644
--- a/win32/build/cppcheck.cfg
+++ b/win32/build/cppcheck.cfg
@@ -353,4 +353,78 @@
<alloc init="true">zend_str_alloc</alloc>
<dealloc>zend_str_free</dealloc>
</resource>
+ <function name="_php_stream_alloc">
+ <noreturn>false</noreturn>
+ <arg nr="1"/>
+ <arg nr="2"/>
+ <arg nr="3"/>
+ <arg nr="4"/>
+ </function>
+ <function name="_php_stream_free">
+ <noreturn>false</noreturn>
+ <arg nr="1">
+ <not-null/>
+ <not-uninit/>
+ </arg>
+ <arg nr="2"/>
+ </function>
+ <resource>
+ <alloc init="true">_php_stream_alloc</alloc>
+ <dealloc>_php_stream_free</dealloc>
+ </resource>
+ <function name="zend_init_rsrc_list">
+ <noreturn>false</noreturn>
+ </function>
+ <function name="zend_init_rsrc_plist">
+ <noreturn>false</noreturn>
+ </function>
+ <function name="zend_close_rsrc_plist">
+ <noreturn>false</noreturn>
+ <arg nr="1">
+ <not-null/>
+ <not-uninit/>
+ </arg>
+ </function>
+ <function name="zend_destroy_rsrc_plist">
+ <noreturn>false</noreturn>
+ <arg nr="1">
+ <not-null/>
+ <not-uninit/>
+ </arg>
+ </function>
+ <resource>
+ <alloc init="true">zend_init_rsrc_list</alloc>
+ <alloc init="true">zend_init_rsrc_plist</alloc>
+ <dealloc>zend_close_rsrc_plist</dealloc>
+ <dealloc>zend_destroy_rsrc_plist</dealloc>
+ </resource>
+ <function name="zend_init_rsrc_list_dtors">
+ <noreturn>false</noreturn>
+ </function>
+ <function name="zend_destroy_rsrc_list_dtors">
+ <noreturn>false</noreturn>
+ </function>
+ <resource>
+ <alloc init="true">zend_init_rsrc_list_dtors</alloc>
+ <dealloc>zend_destroy_rsrc_list_dtors</dealloc>
+ </resource>
+ <function name="zend_list_insert,zend_register_resource">
+ <noreturn>false</noreturn>
+ <arg nr="1">
+ <not-null/>
+ <not-uninit/>
+ </arg>
+ <arg nr="2"/>
+ </function>
+ <function name="zend_list_close">
+ <noreturn>false</noreturn>
+ <arg nr="1">
+ <not-null/>
+ <not-uninit/>
+ </arg>
+ </function>
+ <resource>
+ <alloc init="true">zend_list_insert</alloc>
+ <dealloc>zend_list_close</dealloc>
+ </resource>
</def>