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

Reply via email to