|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78214 Class DOTNET not found with PHP 7.4.0alpha1
Submitted: 2019-06-25 18:40 UTC Modified: 2019-06-26 16:24 UTC
From: v-altruo at microsoft dot com Assigned: cmb (profile)
Status: Closed Package: Testing related
PHP Version: 7.4.0alpha1 OS: Windows
Private report: No CVE-ID: None
 [2019-06-25 18:40 UTC] v-altruo at microsoft dot com
Could only test for x64 builds, where it failed for both NTS and TS regardless of opcache on/off. 

Failed Test File: ext\com_dotnet\tests\bug73679.phpt

Test script:
$stack = new DOTNET("mscorlib", "System.Collections.Stack", -2200000000);
$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 Error: Class 'DOTNET' not found in C:\...\php-test-pack-7.4.0alpha1\ext\com_dotnet\tests\bug73679.php:3
Stack trace:
#0 {main}
  thrown in C:\...\php-test-pack-7.4.0alpha1\ext\com_dotnet\tests\bug73679.php on line 3


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2019-06-25 18:42 UTC] v-altruo at microsoft dot com
Similar issue for ext\com_dotnet\tests\bug77177.phpt
 [2019-06-26 15:13 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2019-06-26 15:13 UTC]
Thanks!  This is not supposed to happen, though.  For some reason
the build bot didn't find the installed Net SDK, which is fixed
now for the snapshots[1] starting with r36b7021 and also for the
upcoming PHP 7.4.0alpha2.
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Aug 10 00:01:25 2020 UTC