]> granicus.if.org Git - php/commit
Enable HT RC assertions with escape-hatch
authorNikita Popov <nikic@php.net>
Thu, 5 May 2016 12:49:08 +0000 (14:49 +0200)
committerJoe Watkins <krakjoe@php.net>
Mon, 23 Jan 2017 17:19:06 +0000 (17:19 +0000)
commitfd4025069d561b4196851c2e9a85b5bfdfe1465a
treef309186bf9c935c0f29446d87481f396f40efdea
parent5c6bf3598a41d7acefe6a8adf592aedc50b4bf2d
Enable HT RC assertions with escape-hatch

HT functions that modify the array now assert that rc=1. As we don't
respect this COW constraint everywhere, either for a good reason or
because fixing it would take more work, we provide an escape hatch
in the form of HT_ALLOW_COW_VIOLATION(ht). If this macro is called
assertions on this ht are disabled. The macro is a no-op in release
mode.
Zend/zend_gc.c
Zend/zend_hash.c
Zend/zend_hash.h
ext/standard/var_unserializer.c
ext/standard/var_unserializer.re
main/php_variables.c