]> granicus.if.org Git - php/commitdiff
Fix build
authorChristoph M. Becker <cmbecker69@gmx.de>
Wed, 22 Jul 2020 20:57:05 +0000 (22:57 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Wed, 22 Jul 2020 20:57:58 +0000 (22:57 +0200)
MSVC is pretty picky there, so we add the `ZEND_VOIDP` cast.

Zend/zend.c

index 33d58fd390b2ad620e7744c8171dc77f3d985582..aef5a398b1b6e04b60efb00e7ad9bf7fcab3b133 100644 (file)
@@ -1106,7 +1106,7 @@ void zend_shutdown(void) /* {{{ */
                CG(map_ptr_size) = 0;
        }
        if (CG(script_encoding_list)) {
-               free(CG(script_encoding_list));
+               free(ZEND_VOIDP(CG(script_encoding_list)));
                CG(script_encoding_list) = NULL;
                CG(script_encoding_list_size) = 0;
        }