Edit report at https://bugs.php.net/bug.php?id=53140&edit=1
ID: 53140
Comment by: rodman dot tim at gmail dot com
Reported by: jeyb88 at gmail dot com
Summary: PHP-CGI (FastCGI IIS) crashes when creating DOTNET
instance every second time
Status: Open
Type: Bug
Package: COM related
Operating System: XP, Vista, Win 7,Win Server 2008
PHP Version: 5.3.3
Block user comment: N
Private report: N
New Comment:
I also had this issue. My PHP script failed every other time I executed it on FastCGI IIS. I was
able to get around the problem by setting ".NET CLR version" to "No Managed
Code" in the Application Pool like this: https://i.imgur.com/PzWPClD.png
Previous Comments:
------------------------------------------------------------------------
[2015-10-30 11:49:48] nicholas dot owens at Seiko dot co dot uk
I have also experienced this.
I am trying to use the WinSCP .net object.
I am using PHP 5.3 on Windows 2008R2, it crashes exactly every other time.
I avoided the problem by using COM instead of DOTNET.
It is my understanding that any .NET to be used from PHP must be registered in COM anyway so would
this always work?
------------------------------------------------------------------------
[2013-12-01 20:11:30] jzdd at o2 dot pl
This issue still exists on PHP 5.5.6 run on Windows Server 2012/R2 and IIS 7/8.
It makes php_com_dot_net USELESS for production, why can't you fix this?????
------------------------------------------------------------------------
[2013-10-18 05:23:27] igorhmm at gmail dot com
Guys,
I found a poor workaround: on IIS7 I've fixed just one request to recycle
I did this on specific application pool that uses this feature.
Hope this helps :)
Regards
------------------------------------------------------------------------
[2013-03-19 15:34:33] ben at imperialwebdesigns dot com
Any update on getting this resolved?
------------------------------------------------------------------------
[2013-01-08 15:08:16] johnphayes at gmail dot com
You may be able to fix this issue by recompiling PHP with the
void php_com_dotnet_mshutdown()
defined in /ext/com_dotnet/com_dotnet.c. IIRC the problem was that that function
was removed in this revision:
http://svn.php.net/viewvc/php/php-src/trunk/ext/com_dotnet/com_dotnet.c?
r1=137794&r2=146718.
So if you can download the latest source, put that function back into
com_dotnet.c, and recompile you should be good to go.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=53140
--
Edit this bug report at https://bugs.php.net/bug.php?id=53140&edit=1