Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8068947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T12:51:07+00:00 2026-06-05T12:51:07+00:00

I am running PHP 5.3.8 non-thread-safe version with IIS 7 on windows server 2008

  • 0

I am running PHP 5.3.8 non-thread-safe version with IIS 7 on windows server 2008 . I have the following code

<?php
echo "Started..<br/>";

$outStr = "";
 $stack = new DOTNET("mscorlib", "System.Collections.Stack");
 $stack->Push(".Net");
 $stack->Push("Hello ");
 echo $stack->Pop() . $stack->Pop();
 echo "<br/>".$_SERVER['REQUEST_TIME']."<br/>";
?>

It will crash every other time ( work , crash , work , crash, …. etc ).
The error reported to the web browser is :

HTTP Error 500.0 – Internal Server Error
c:\php\php-cgi.exe – The FastCGI process exited unexpectedly

I tried other .net assemblies (I wrote with C#) and get the same crashing behaviour (every other time).

Please help.

I am using .net 4 . In my c:\php directory I have a php-cgi.exe.config file as follow:

<?xml version="1.0"?>
<configuration>
  <startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
  </startup>
</configuration>

But even with .net 3.5 I get the same crashing behaviour.

If I run the php script in command line as follow , it seems to work everytimes, but I really need my php web app to work without crashes ( I have NO php.exe.config .. none )

\php\php.exe  testscript.php
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T12:51:09+00:00Added an answer on June 5, 2026 at 12:51 pm

    This behaviour appears to be a known bug:
    https://bugs.php.net/bug.php?id=53140&edit=1

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web server that is running PHP 5.3.6 non thread safe (VC9),
We are running PHP on a Windows server (a source of many problems indeed,
I have the following code in a PHP script: <?php if (!in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', '::1')))
I am running following PHP code to interact with a MS Access database. $odbc_con
Running PHP under IIS on my Win XP Pro system. I cannot debug my
I have installed WAMP and running PHP scripts on localhost. I have enabled cURL.
I have php running on apache. I have downloaded what I think to be
I'm running a php script from the command line against SQL server 2005 using
I have a long running php script which is basically an infinite loop listening
I have PHP 5.2.10 and PHP 5.2.14 (x86 non-threadsafe Win32 builds) installed on a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.