Bug #53140 [Com]: PHP-CGI (FastCGI IIS) crashes when creating DOTNET instance every second time

From: Date: Fri, 30 Oct 2015 11:49:50 +0000
Subject: Bug #53140 [Com]: PHP-CGI (FastCGI IIS) crashes when creating DOTNET instance every second time
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-196921@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=53140&edit=1

 ID:                 53140
 Comment by:         nicholas dot owens at Seiko dot co dot uk
 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 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?


Previous Comments:
------------------------------------------------------------------------
[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.

------------------------------------------------------------------------
[2013-01-08 09:35:22] xandra_18ro at yahoo dot com

Is there a hotfix for this problem? Or a workaround perhaps.
thanks!

------------------------------------------------------------------------


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


Thread (15 messages)

« previous php.bugs (#196921) next »