Bug #79123 [Fbk->Asn]: Failed to init .Net runtime
| From: | v-altruo at microsoft dot com | Date: | Fri, 17 Jan 2020 18:00:00 +0000 |
| Subject: | Bug #79123 [Fbk->Asn]: Failed to init .Net runtime | ||
| References: | 1 | Groups: | php.bugs php.qa |
| Request: | Send a blank email to php-bugs+get-224967@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=79123&edit=1
ID: 79123
User updated by: v-altruo at microsoft dot com
Reported by: v-altruo at microsoft dot com
Summary: Failed to init .Net runtime
-Status: Feedback
+Status: Assigned
Type: Bug
Package: Testing related
Operating System: Windows Server 2012 R2
PHP Version: 7.3.14RC1
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
I searched each OS and all of them have that key in their registry.
Previous Comments:
------------------------------------------------------------------------
[2020-01-17 15:42:55] cmb@php.net
Okay, but the error message hints at CLRMetaData.CorRuntimeHost
not being registered. Please search the registry's
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID hive for the key
{CB2F6723-AB3A-11d2-9C40-00C04FA30A3E}
------------------------------------------------------------------------
[2020-01-16 17:48:24] v-altruo at microsoft dot com
The test also fails for Windows Server 2016 and 2019.
All 3 of these OS have .NET framework installed. The versions installed are:
1.0.3705
1.1.4322
2.0.50727
4.0.30319
------------------------------------------------------------------------
[2020-01-16 08:13:27] cmb@php.net
Related To: Bug #79124
------------------------------------------------------------------------
[2020-01-16 08:12:41] cmb@php.net
Is .NET Framework installed on that machine? If so, which
version(s)?
------------------------------------------------------------------------
[2020-01-15 18:09:21] v-altruo at microsoft dot com
Description:
------------
Test fails for x64 builds (did not have x86 machine to test this) regardless of nts/ts and opcache
on/off. It also fails for php-7.4.2RC1.
Failed Test Location: ext\com_dotnet\tests\bug73679.phpt
Test script:
---------------
<?php
$stack = new DOTNET("mscorlib", "System.Collections.Stack", -2200000000);
$stack->Push(".Net");
$stack->Push("Hello ");
echo $stack->Pop() . $stack->Pop();
?>
Expected result:
----------------
Fatal error: Uncaught com_exception: Could not create .Net object - invalid codepage! in
%sbug73679.php:%d
Stack trace:
#0 %sbug73679.php(%d): dotnet->dotnet('mscorlib', 'System.Collecti...',
-2200000000)
#1 {main}
thrown in %sbug73679.php on line %d
Actual result:
--------------
Fatal error: Uncaught com_exception: Failed to init .Net runtime [CoCreateInstance] Class not
registered
in C:\..\php-test-pack-7.4.2RC1\ext\com_dotnet\tests\bug73679.php:3
Stack trace:
#0 C:\..\php-test-pack-7.4.2RC1\ext\com_dotnet\tests\bug73679.php(3):
dotnet->dotnet('mscorlib', 'System.Collecti...', -2200000000)
#1 {main}
thrown in C:\..\php-test-pack-7.4.2RC1\ext\com_dotnet\tests\bug73679.php on line 3
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=79123&edit=1