]> granicus.if.org Git - php/commitdiff
array_merge() may return argument with incremented reference counter
authorDmitry Stogov <dmitry@zend.com>
Tue, 2 Apr 2019 21:44:31 +0000 (00:44 +0300)
committerDmitry Stogov <dmitry@zend.com>
Tue, 2 Apr 2019 21:44:31 +0000 (00:44 +0300)
ext/opcache/Optimizer/zend_func_info.c

index 918422027e273b19019eaae049e60e78cbf38595..ef6e40e2f3e4fe83ccd4731c9a6c053e746ef43d 100644 (file)
@@ -812,7 +812,7 @@ static const func_info_t func_infos[] = {
        F0("array_unshift",                MAY_BE_NULL | MAY_BE_LONG),
        F1("array_splice",                 MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_REF | MAY_BE_ARRAY_OF_ANY),
        F1("array_slice",                  MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_REF | MAY_BE_ARRAY_OF_ANY),
-       F1("array_merge",                  MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_REF | MAY_BE_ARRAY_OF_ANY),
+       FN("array_merge",                  MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_REF | MAY_BE_ARRAY_OF_ANY),
        F1("array_merge_recursive",        MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_REF | MAY_BE_ARRAY_OF_ANY),
        F1("array_replace",                MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_REF | MAY_BE_ARRAY_OF_ANY),
        F1("array_replace_recursive",      MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_REF | MAY_BE_ARRAY_OF_ANY),