<?php

// print output
if (array_key_exists('output', $_REQUEST)) {
  header("Content-type: text/plain");
  print $_REQUEST['output'];
  exit;
}

// otherwise show bug report
?>
<h1>PHP exit() Bug Example</h1>

This page demonstrates a problem on this server.  Please read it and correct the issue or advise a workaround.
<hr/>

This web server outputs a zero ("0") when exit(); is called by PHP but no content is sent.  This interferes with AJAX
scripting and is not proper behaviour for PHP.  The PHP exit() function should not output any content unless that content is passed as an argument.

<p><b>Examples</b><br/>
<a href="?output=Hello+World">print "Hello World" and exit</a> - prints "Hello World";<br/>
<a href="?output=">print nothing and exit</a> - Should print nothing, prints zero ("0") instead.<br/>

<br/>
<div style="color: #C00; font-weight: bold">Please fix this bug or let us know a workaround.  Thanks!</div>
