[PHP-BUG] Bug #79124 [NEW]: Failed to init .Net runtime

[email protected] ("v-altruo at microsoft dot com")
Newsgroups php.bugs,php.qa
Message-ID <[email protected]>
From:             v-altruo at microsoft dot com
Operating system: Windows Server 2016
PHP version:      7.3.14RC1
Package:          Testing related
Bug Type:         Bug
Bug description:Failed to init .Net runtime

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\bug77177.phpt


Same output as: https://bugs.php.net/bug.php?id=79123

Expected result:
----------------
Exception: Serialization of 'com' is not allowed
Exception: Serialization of 'dotnet' is not allowed
Exception: Serialization of 'variant' is not allowed
Exception: Unserialization of 'com' is not allowed
Exception: Unserialization of 'dotnet' is not allowed
Exception: Unserialization of 'variant' is not allowed

Warning: Erroneous data format for unserializing 'com' in %s on line %d

Notice: unserialize(): Error at offset 13 of 14 bytes in %s on line %d
bool(false)

Warning: Erroneous data format for unserializing 'dotnet' in %s on line
%d

Notice: unserialize(): Error at offset 16 of 17 bytes in %s on line %d
bool(false)

Warning: Erroneous data format for unserializing 'variant' in %s on line
%d

Notice: unserialize(): Error at offset 17 of 18 bytes in %s on line %d
bool(false)
===DONE===

Actual result:
--------------
Fatal error: Uncaught com_exception: Failed to init .Net runtime
[CoCreateInstance] Class not registered
 in C:\..\php-test-pack-7.3.14RC1\ext\com_dotnet\tests\bug77177.php:3
Stack trace:
#0 C:\..\php-test-pack-7.3.14RC1\ext\com_dotnet\tests\bug77177.php(3):
dotnet->dotnet('mscorlib', 'System.Collecti...')
#1 {main}
  thrown in
C:\..\php-test-pack-7.3.14RC1\ext\com_dotnet\tests\bug77177.php on line
3

-- 
Edit bug report at https://bugs.php.net/bug.php?id=79124&edit=1
-- 
Fix committed:                    https://bugs.php.net/fix.php?id=79124&r=fixed
Fixed in release:                 https://bugs.php.net/fix.php?id=79124&r=alreadyfixed
Need backtrace:                   https://bugs.php.net/fix.php?id=79124&r=needtrace
Need Reproduce Script:            https://bugs.php.net/fix.php?id=79124&r=needscript
Try newer version:                https://bugs.php.net/fix.php?id=79124&r=oldversion
Not developer issue:              https://bugs.php.net/fix.php?id=79124&r=support
Expected behavior:                https://bugs.php.net/fix.php?id=79124&r=notwrong
Not enough info:                  https://bugs.php.net/fix.php?id=79124&r=notenoughinfo
Submitted twice:                  https://bugs.php.net/fix.php?id=79124&r=submittedtwice
register_globals:                 https://bugs.php.net/fix.php?id=79124&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=79124&r=phptooold
Daylight Savings:                 https://bugs.php.net/fix.php?id=79124&r=dst
IIS Stability:                    https://bugs.php.net/fix.php?id=79124&r=isapi
Install GNU Sed:                  https://bugs.php.net/fix.php?id=79124&r=gnused
Floating point limitations:       https://bugs.php.net/fix.php?id=79124&r=float
No Zend Extensions:               https://bugs.php.net/fix.php?id=79124&r=nozend
MySQL Configuration Error:        https://bugs.php.net/fix.php?id=79124&r=mysqlcfg
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.