php.net |  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
44 - 12 = ?
Subscribe to this entry?

 
 [2019-06-25 18:40 UTC] v-altruo at microsoft dot com
Description:
------------
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(".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 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2019-06-26 15:13 UTC] cmb@php.net
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-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 02:01:30 2024 UTC