Bug #79123 [Asn->Fbk]: Failed to init .Net runtime

[email protected]
Newsgroups php.bugs,php.qa
Message-ID <[email protected]>
Edit report at https://bugs.php.net/bug.php?id=79123&edit=1

 ID:                 79123
 Updated by:         [email protected]
 Reported by:        v-altruo at microsoft dot com
 Summary:            Failed to init .Net runtime
-Status:             Assigned
+Status:             Feedback
 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:

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}


Previous Comments:
------------------------------------------------------------------------
[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] [email protected]

Related To: Bug #79124

------------------------------------------------------------------------
[2020-01-16 08:12:41] [email protected]

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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.