fix switch for void function
replace void_ptr with zval support