mirror of
https://github.com/php/php-src.git
synced 2026-04-21 06:51:18 +02:00
We have to make sure that the variant is of type `VT_DISPATCH` before we access it as such. Closes GH-6372.
15 lines
344 B
PHP
15 lines
344 B
PHP
--TEST--
|
|
Bug #62474 (com_event_sink crashes on certain arguments)
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('com_dotnet')) die('skip com_dotnet extension not available');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
var_dump(com_event_sink(new variant, function() {}, array()));
|
|
var_dump(com_event_sink(new variant, new variant, 'a'));
|
|
?>
|
|
--EXPECT--
|
|
bool(false)
|
|
bool(false)
|