1--TEST-- 2Bug #73679 DOTNET read access violation using invalid codepage 3--SKIPIF-- 4<?php 5if (!extension_loaded("com_dotnet")) print "skip COM/.Net support not present"; 6if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platforms only"); 7?> 8--FILE-- 9<?php 10 11$stack = new DOTNET("mscorlib", "System.Collections.Stack", -2200000000); 12$stack->Push(".Net"); 13$stack->Push("Hello "); 14echo $stack->Pop() . $stack->Pop(); 15 16?> 17--EXPECTF-- 18Fatal error: Uncaught com_exception: Could not create .Net object - invalid codepage! in %sbug73679.php:%d 19Stack trace: 20#0 %sbug73679.php(%d): dotnet->__construct('mscorlib', 'System.Collecti...', -2200000000) 21#1 {main} 22 thrown in %sbug73679.php on line %d 23