php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13371 PHP Crashes with weird output sometimes
Submitted: 2001-09-21 03:45 UTC Modified: 2002-06-03 12:18 UTC
Votes:4
Avg. Score:4.5 ± 0.9
Reproduced:4 of 4 (100.0%)
Same Version:3 (75.0%)
Same OS:4 (100.0%)
From: jlp at parodius dot com Assigned:
Status: Not a bug Package: IIS related
PHP Version: 4.0.6 OS: Windows XP Professional
Private report: No CVE-ID: None
 [2001-09-21 03:45 UTC] jlp at parodius dot com
I recently installed PHP 4 on Windows XP with IIS 5...
I coded the following script:

<?php
$temp="$SERVER_SOFTWARE";
?>
<HTML>
<HEAD>
<TITLE>Testing</TITLE>
</HEAD>
<BODY>
<p>
the var is: <? echo $temp ?>!
</BODY>
</HTML>

I tried to run this and it just stalled (kept trying to load the page), no server error or anything.  I clicked "stop" in IE and tried to reload, same thing.
I modified the php source and changed $SERVER_SOFTWARE to aaaaa.  
Then when I reloaded the php script, it gave me this:

the var is: aaaaa! HTTP/1.1 500 Server Error Server: Microsoft-IIS/5.1 Date: Thu, 20 Sep 2001 19:34:24 GMT Content-Type: text/html Content-Length: 44 -2147417842 (0x8001010e)

all on 1 line.

Sometimes, I reload the page and it works fully.  But it never works only in certain circumstances (like in the script above.  Seems that it only works if I have a minimal amount of scripting before the HTML output on the top of the PHP file script.

Weird.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-09-21 03:51 UTC] jlp at parodius dot com
This only happens with ISAPI.  Not with the cgi php.exe (I just changed to use this since I couldn't get things working with ISAPI).
 [2002-06-03 12:18 UTC] mfischer@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately your version of PHP is too old -- the problem
might already be fixed. Please download a new PHP
version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.


 [2002-10-22 00:25 UTC] bugsphp at assid dot com
It seems even the new versions have this problem.

I tried with 4.2.3 last time around, and had to change back to 4.0.6 in CGI mode.

This is funny since I have another server running 4.0.6 ISAPI mode
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 21:01:29 2024 UTC