--TEST-- Bug GH-8750 (Can not create VT_ERROR variant type) - cast and conversion --EXTENSIONS-- com_dotnet --FILE-- getMessage(), PHP_EOL; } // we can retrieve the type echo variant_get_type($error), PHP_EOL; // and change it via variant_set_type() variant_set_type($error, VT_I4); echo variant_get_type($error), PHP_EOL; ?> --EXPECTF-- -2147352572 Warning: Object of class variant could not be converted to int in %s on line %d 1 Unsupported operand types: int + variant 10 3