Skip to content

Commit

Permalink
Verify that PHP.Test.Document does not implement IPersistStreamInit
Browse files Browse the repository at this point in the history
  • Loading branch information
cmb69 committed Jan 31, 2025
1 parent 7a78492 commit 65da2ad
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ext/com_dotnet/tests/gh17658.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ fseek($stream, 0);
$ph->LoadFromStream($stream);
fclose($stream);
echo $doc->Content, "\n";

// verify that PHP.Test.Document does not implement IPersistStreamInit
try {
$ph->InitNew();
} catch (com_exception $ex) {
// supposed to fail with E_NOINTERFACE
echo dechex($ex->getCode()), "\n";
}
?>
--EXPECT--
GH-17658
80004002

0 comments on commit 65da2ad

Please sign in to comment.