php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48067 Class 'DOTNET' not found
Submitted: 2009-04-24 10:43 UTC Modified: 2009-06-18 15:11 UTC
Votes:8
Avg. Score:4.5 ± 1.3
Reproduced:7 of 7 (100.0%)
Same Version:5 (71.4%)
Same OS:1 (14.3%)
From: lunter at interia dot pl Assigned: pajoye (profile)
Status: Wont fix Package: COM related
PHP Version: 5.3CVS-2009-04-24 (snap) OS: winXP
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 — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
44 - 23 = ?
Subscribe to this entry?

 
 [2009-04-24 10:43 UTC] lunter at interia dot pl
Description:
------------
Class 'DOTNET' not found
introduced in PHP 5.3

Reproduce code:
---------------
<?php
 $stack = new DOTNET("mscorlib", "System.Collections.Stack");
 $stack->Push(".Net");
 $stack->Push("Hello ");
 echo $stack->Pop() . $stack->Pop();
?>

Expected result:
----------------
Fatal error: Class 'DOTNET' not found in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\1.php on line 2

Actual result:
--------------
Hello .Net

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-04-24 11:58 UTC] pajoye@php.net
It is not available with the platform SDK 2003/02. 5.2 had a hack by manually copying the mscoree files to enable the DOTNET class. However 5.3 does not have this trick, you can use the VC9 builds for now as they use modern SDKs and support DOTNET. VC9's apache can be found at http://apachelounge.com
 [2009-06-18 15:11 UTC] pajoye@php.net
We can't fix the 2003/02 SDK. You can use the VC9 builds with FastCGI or apache as described in the previous comment.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 04 16:01:31 2024 UTC