|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-06-03 15:31 UTC] boen dot robot at gmail dot com
Description:
------------
When I run any PHP file using the DOTNET class, The class is first run as it should (the sample from the documentation does ineed produce "Hello .Net"), but after a page refresh, or if a navigate away from the page and go back, the server crashes.
I have PHP installed locally as an Apache 2.2.4 module.
I tryed turning off my antivirus (NOD32 in case it's relevant), but that didn't helped either.
I have all .NET 1.1, .NET 2.0 and .NET 3.0 with all updates from Microsoft Update.
Reproduce code:
---------------
<?php
$stack = new DOTNET("mscorlib", "System.Collections.Stack") or die('not created');
die('created');
?>
Expected result:
----------------
The file should output "created" every time it's executed, unless perhaps I had an error in the constructor, in which case it should output "not created".
Actual result:
--------------
"created" is only outputted the first time. After that... A server crash with this in the error details:
szAppName : httpd.exe szAppVer : 2.2.4.0 szModName : php5ts.dll
szModVer : 5.2.4.4 offset : 000e622d
Patchesreinitialize-dotnet_domain-struct-member (last revision 2014-03-13 15:12 UTC by a dot kasparas at gmc dot lt)stop_rshutdown_release (last revision 2013-02-19 05:02 UTC by ku at digitaldolphins dot jp) Pull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 03:00:02 2025 UTC |
Is it good idea to disable release action in rshutdown? --- void php_com_dotnet_rshutdown(TSRMLS_D) { struct dotnet_runtime_stuff *stuff = COMG(dotnet_runtime_stuff); if (stuff->dotnet_domain) { // IDispatch_Release(stuff->dotnet_domain); // stuff->dotnet_domain = NULL; } } --- My own php 5.4.11 build works well with this workaround. Any possible side effects? Thanks