I get error on page loading: "The connection to the server was reset while the page was loading."
<p>Never bumped with such strange error. Not sure even how to describe it correctly. I use Filemaker php distributive. My server downs on page even I do exit</p>

<pre><code>&lt;?php
    // included file dirname(__FILE__) . '/Parser/FMResultSet.php'
    exit;
    // filemaker code ....
class FileMaker_Parser_FMResultSet
{
    var $Vcb5e100e;
    var $Vf5bf48aa;
    var $V1ea7e575;
    var $V9f81f3c0 = array();
    var $Vaae0d98d;
    var $Vae581270 = array();
    var $V6e52c40b = array();
    var $Ve13f1c92;
    var $V43432a31;
    var $V51bc3e3b;
    var $V26005321;
    var $V6468d939;
    var $_fm;
    var $V5431b8d4;
    var $V6de51026 = false;
    var $_result;
    var $_layout;
            // and so on
</code></pre>

<p>I get erorr <code>The connection to the server was reset while the page was loading.</code></p>

<p>but if I remove all the content and just leave </p>

<pre><code>&lt;?php
    exit;
?&gt;
</code></pre>

<p>all works. I can't figure out what is wrong and where to find the problem</p>

<p>php 5.3.15
apache 2.0</p>

<p>If need here is full file content</p>

<pre><code>&lt;?php
exit;
require_once dirname(__FILE__) . '/../../Layout.php';
require_once dirname(__FILE__) . '/../../RelatedSet.php';
require_once dirname(__FILE__) . '/../../Record.php';
require_once dirname(__FILE__) . '/../../Field.php';
class FileMaker_Parser_FMResultSet
{
    var $Vcb5e100e;
    var $Vf5bf48aa;
    var $V1ea7e575;
    var $V9f81f3c0 = array();
    var $Vaae0d98d;
    var $Vae581270 = array();
    var $V6e52c40b = array();
    var $Ve13f1c92;
    var $V43432a31;
    var $V51bc3e3b;
    var $V26005321;
    var $V6468d939;
    var $_fm;
    var $V5431b8d4;
    var $V6de51026 = false;
    var $_result;
    var $_layout;
    function FileMaker_Parser_FMResultSet(&amp;$V0ab34ca9)
    {
        $this-&gt;_fm =&amp; $V0ab34ca9;
    }
    function parse($V0f635d0e)
    {
        if (empty($V0f635d0e)) {
            return new FileMaker_Error($this-&gt;_fm, 'Did not receive an XML document from the server.');
        }
        $this-&gt;V5431b8d4= xml_parser_create('UTF-8');
        xml_set_object($this-&gt;V5431b8d4, $this);
        xml_parser_set_option($this-&gt;V5431b8d4, XML_OPTION_CASE_FOLDING, false);
        xml_parser_set_option($this-&gt;V5431b8d4, XML_OPTION_TARGET_ENCODING, 'UTF-8');
        xml_set_element_handler($this-&gt;V5431b8d4, '_start', '_end');
        xml_set_character_data_handler($this-&gt;V5431b8d4, '_cdata');
        if (!@xml_parse($this-&gt;V5431b8d4, $V0f635d0e)) {
            return new FileMaker_Error($this-&gt;_fm,
            sprintf('XML error: %s at line %d',
            xml_error_string(xml_get_error_code($this-&gt;V5431b8d4)),
            xml_get_current_line_number($this-&gt;V5431b8d4)));
        }
        xml_parser_free($this-&gt;V5431b8d4);
        if (!empty($this-&gt;Vcb5e100e)) {
            return new FileMaker_Error($this-&gt;_fm, null, $this-&gt;Vcb5e100e);
        }
        if (version_compare($this-&gt;Vf5bf48aa['version'], FileMaker::getMinServerVersion(), '&lt;')) {
            return new FileMaker_Error($this-&gt;_fm, 'This API requires at least version ' . FileMaker::getMinServerVersion() . ' of FileMaker Server to run (detected ' . $this-&gt;Vf5bf48aa['version'] . ').');
        }
        $this-&gt;V6de51026= true;
        return true;
    }
    function setResult(&amp;$Vb4a88417, $V561b2299 = 'FileMaker_Record')
    {
        if (!$this-&gt;V6de51026) {
            return new FileMaker_Error($this-&gt;_fm, 'Attempt to get a result object before parsing data.');
        }
        if ($this-&gt;_result) {
            $Vb4a88417 =&amp; $this-&gt;_result;
            return true;
        }
        $Vb4a88417-&gt;_impl-&gt;_layout =&amp; new FileMaker_Layout($this-&gt;_fm);
        $this-&gt;setLayout($Vb4a88417-&gt;_impl-&gt;_layout);
        $Vb4a88417-&gt;_impl-&gt;_tableCount = $this-&gt;V1ea7e575['total-count'];
        $Vb4a88417-&gt;_impl-&gt;_foundSetCount = $this-&gt;Vaae0d98d['count'];
        $Vb4a88417-&gt;_impl-&gt;_fetchCount = $this-&gt;Vaae0d98d['fetch-size'];
        $V6e52c40b = array();
        foreach ($this-&gt;V6e52c40b as $Vde17f0f2) {
            $V4b43b0ae =&amp; new $V561b2299($Vb4a88417-&gt;_impl-&gt;_layout);
            $V4b43b0ae-&gt;_impl-&gt;_fields = $Vde17f0f2['fields'];
            $V4b43b0ae-&gt;_impl-&gt;_recordId = $Vde17f0f2['record-id'];
            $V4b43b0ae-&gt;_impl-&gt;_modificationId = $Vde17f0f2['mod-id'];
            if ($Vde17f0f2['children']) {
                foreach ($Vde17f0f2['children'] as $Vaca007a7 =&gt; $V268184c1) {
                    $V4b43b0ae-&gt;_impl-&gt;_relatedSets[$Vaca007a7] = array();
                    foreach ($V268184c1 as $V1b7d5726) {
                        $V4a8a08f0 =&amp; new $V561b2299($Vb4a88417-&gt;_impl-&gt;_layout-&gt;getRelatedSet($Vaca007a7));
                        $V4a8a08f0-&gt;_impl-&gt;_fields = $V1b7d5726['fields'];
                        $V4a8a08f0-&gt;_impl-&gt;_recordId = $V1b7d5726['record-id'];
                        $V4a8a08f0-&gt;_impl-&gt;_modificationId = $V1b7d5726['mod-id'];
                        $V4a8a08f0-&gt;_impl-&gt;_parent =&amp; $V4b43b0ae;
                        $V4b43b0ae-&gt;_impl-&gt;_relatedSets[$Vaca007a7][] =&amp; $V4a8a08f0;
                    }
                }
            }
            $V6e52c40b[] =&amp; $V4b43b0ae;
        }
        $Vb4a88417-&gt;_impl-&gt;_records =&amp; $V6e52c40b;
        $this-&gt;_result =&amp; $Vb4a88417;
        true;
    }
    function setLayout(&amp;$Vc6140495)
    {
        if (!$this-&gt;V6de51026) {
            return new FileMaker_Error($this-&gt;_fm, 'Attempt to get a layout object before parsing data.');
        }
        if ($this-&gt;_layout) {
            $Vc6140495 =&amp; $this-&gt;_layout;
            return true;
        }
        $Vc6140495-&gt;_impl-&gt;_name = $this-&gt;V1ea7e575['layout'];
        $Vc6140495-&gt;_impl-&gt;_database = $this-&gt;V1ea7e575['database'];
        foreach ($this-&gt;V9f81f3c0 as $V06e3d36f) {
            $V8fa14cdd =&amp; new FileMaker_Field($Vc6140495);
            $V8fa14cdd-&gt;_impl-&gt;_name = $V06e3d36f['name'];
            $V8fa14cdd-&gt;_impl-&gt;_autoEntered = (bool)($V06e3d36f['auto-enter'] == 'yes');
            $V8fa14cdd-&gt;_impl-&gt;_global = (bool)($V06e3d36f['global'] == 'yes');
            $V8fa14cdd-&gt;_impl-&gt;_maxRepeat = (int)$V06e3d36f['max-repeat'];
            $V8fa14cdd-&gt;_impl-&gt;_result = $V06e3d36f['result'];
            $V8fa14cdd-&gt;_impl-&gt;_type = $V06e3d36f['type'];
            if ($V06e3d36f['not-empty'] == 'yes') {
                $V8fa14cdd-&gt;_impl-&gt;_validationRules[FILEMAKER_RULE_NOTEMPTY] = true;
                $V8fa14cdd-&gt;_impl-&gt;_validationMask |= FILEMAKER_RULE_NOTEMPTY;
            }
            if ($V06e3d36f['numeric-only'] == 'yes') {
                $V8fa14cdd-&gt;_impl-&gt;_validationRules[FILEMAKER_RULE_NUMERICONLY] = true;
                $V8fa14cdd-&gt;_impl-&gt;_validationMask |= FILEMAKER_RULE_NUMERICONLY;
            }
            if (array_key_exists('max-characters', $V06e3d36f)) {
                $V8fa14cdd-&gt;_impl-&gt;_maxCharacters = (int) $V06e3d36f['max-characters'];
                $V8fa14cdd-&gt;_impl-&gt;_validationRules[FILEMAKER_RULE_MAXCHARACTERS] = true;
                $V8fa14cdd-&gt;_impl-&gt;_validationMask |= FILEMAKER_RULE_MAXCHARACTERS;
            }
            if ($V06e3d36f['four-digit-year'] == 'yes') {
                $V8fa14cdd-&gt;_impl-&gt;_validationRules[FILEMAKER_RULE_FOURDIGITYEAR] = true;
                $V8fa14cdd-&gt;_impl-&gt;_validationMask |= FILEMAKER_RULE_FOURDIGITYEAR;
            }
            if ($V06e3d36f['time-of-day'] == 'yes') {
                $V8fa14cdd-&gt;_impl-&gt;_validationRules[FILEMAKER_RULE_TIMEOFDAY] = true;
                $V8fa14cdd-&gt;_impl-&gt;_validationMask |= FILEMAKER_RULE_TIMEOFDAY;
            }
            if ($V06e3d36f['four-digit-year'] == 'no' &amp;&amp; $V06e3d36f['result'] == 'timestamp') {
                $V8fa14cdd-&gt;_impl-&gt;_validationRules[FILEMAKER_RULE_TIMESTAMP_FIELD] = true;
                $V8fa14cdd-&gt;_impl-&gt;_validationMask |= FILEMAKER_RULE_TIMESTAMP_FIELD;
            }
            if ($V06e3d36f['four-digit-year'] == 'no' &amp;&amp; $V06e3d36f['result'] == 'date') {
                $V8fa14cdd-&gt;_impl-&gt;_validationRules[FILEMAKER_RULE_DATE_FIELD] = true;
                $V8fa14cdd-&gt;_impl-&gt;_validationMask |= FILEMAKER_RULE_DATE_FIELD;
            }
            if ($V06e3d36f['time-of-day'] == 'no' &amp;&amp; $V06e3d36f['result'] == 'time') {
                $V8fa14cdd-&gt;_impl-&gt;_validationRules[FILEMAKER_RULE_TIME_FIELD] = true;
                $V8fa14cdd-&gt;_impl-&gt;_validationMask |= FILEMAKER_RULE_TIME_FIELD;
            }
            $Vc6140495-&gt;_impl-&gt;_fields[$V8fa14cdd-&gt;getName()] =&amp; $V8fa14cdd;
        }
        foreach ($this-&gt;Vae581270 as $Vaca007a7 =&gt; $V53256610) {
            $V4b43b0ae =&amp; new FileMaker_RelatedSet($Vc6140495);
            $V4b43b0ae-&gt;_impl-&gt;_name = $Vaca007a7;
            foreach ($V53256610 as $V06e3d36f) {
                $V8fa14cdd =&amp; new FileMaker_Field($V4b43b0ae);
                $V8fa14cdd-&gt;_impl-&gt;_name = $V06e3d36f['name'];
                $V8fa14cdd-&gt;_impl-&gt;_autoEntered = (bool)($V06e3d36f['auto-enter'] == 'yes');
                $V8fa14cdd-&gt;_impl-&gt;_global = (bool)($V06e3d36f['global'] == 'yes');
                $V8fa14cdd-&gt;_impl-&gt;_maxRepeat = (int)$V06e3d36f['max-repeat'];
                $V8fa14cdd-&gt;_impl-&gt;_result = $V06e3d36f['result'];
                $V8fa14cdd-&gt;_impl-&gt;_type = $V06e3d36f['type'];
                if ($V06e3d36f['not-empty'] == 'yes') {
                    $V8fa14cdd-&gt;_impl-&gt;_validationRules[FILEMAKER_RULE_NOTEMPTY] = true;
                    $V8fa14cdd-&gt;_impl-&gt;_validationMask |= FILEMAKER_RULE_NOTEMPTY;
                }
                if ($V06e3d36f['numeric-only'] == 'yes') {
                    $V8fa14cdd-&gt;_impl-&gt;_validationRules[FILEMAKER_RULE_NUMERICONLY] = true;
                    $V8fa14cdd-&gt;_impl-&gt;_validationMask |= FILEMAKER_RULE_NUMERICONLY;
                }
                if (array_key_exists('max-characters', $V06e3d36f)) {
                    $V8fa14cdd-&gt;_impl-&gt;_maxCharacters = (int) $V06e3d36f['max-characters'];
                    $V8fa14cdd-&gt;_impl-&gt;_validationRules[FILEMAKER_RULE_MAXCHARACTERS] = true;
                    $V8fa14cdd-&gt;_impl-&gt;_validationMask |= FILEMAKER_RULE_MAXCHARACTERS;
                }
                if ($V06e3d36f['four-digit-year'] == 'yes') {
                    $V8fa14cdd-&gt;_impl-&gt;_validationRules[FILEMAKER_RULE_FOURDIGITYEAR] = true;
                    $V8fa14cdd-&gt;_impl-&gt;_validationMask |= FILEMAKER_RULE_FOURDIGITYEAR;
                }
                if ($V06e3d36f['time-of-day'] == 'yes' || $V06e3d36f['result'] == 'time') {
                    $V8fa14cdd-&gt;_impl-&gt;_validationRules[FILEMAKER_RULE_TIMEOFDAY] = true;
                    $V8fa14cdd-&gt;_impl-&gt;_validationMask |= FILEMAKER_RULE_TIMEOFDAY;
                }
                if ($V06e3d36f['four-digit-year'] == 'no' &amp;&amp; $V06e3d36f['result'] == 'timestamp') {
                    $V8fa14cdd-&gt;_impl-&gt;_validationRules[FILEMAKER_RULE_TIMESTAMP_FIELD] = true;
                    $V8fa14cdd-&gt;_impl-&gt;_validationMask |= FILEMAKER_RULE_TIMESTAMP_FIELD;
                }
                if ($V06e3d36f['four-digit-year'] == 'no' &amp;&amp; $V06e3d36f['result'] == 'date') {
                    $V8fa14cdd-&gt;_impl-&gt;_validationRules[FILEMAKER_RULE_DATE_FIELD] = true;
                    $V8fa14cdd-&gt;_impl-&gt;_validationMask |= FILEMAKER_RULE_DATE_FIELD;
                }
                if ($V06e3d36f['time-of-day'] == 'no' &amp;&amp; $V06e3d36f['result'] == 'time') {
                    $V8fa14cdd-&gt;_impl-&gt;_validationRules[FILEMAKER_RULE_TIME_FIELD] = true;
                    $V8fa14cdd-&gt;_impl-&gt;_validationMask |= FILEMAKER_RULE_TIME_FIELD;
                }
                $V4b43b0ae-&gt;_impl-&gt;_fields[$V8fa14cdd-&gt;getName()] =&amp; $V8fa14cdd;
            }
            $Vc6140495-&gt;_impl-&gt;_relatedSets[$V4b43b0ae-&gt;getName()] =&amp; $V4b43b0ae;
        }
        $this-&gt;_layout =&amp; $Vc6140495;
        return true;
    }
    function _start($V3643b863, $Vb068931c, $V5d06e8a3)
    {
        $V5d06e8a3 = $this-&gt;_fm-&gt;toOutputCharset($V5d06e8a3);
        switch ($Vb068931c) {
            case 'error':
                $this-&gt;Vcb5e100e= $V5d06e8a3['code'];
                break;
            case 'product':
                $this-&gt;Vf5bf48aa= $V5d06e8a3;
                break;
            case 'datasource':
                $this-&gt;V1ea7e575= $V5d06e8a3;
                break;
            case 'relatedset-definition':
                $this-&gt;Vae581270[$V5d06e8a3['table']] = array();
                $this-&gt;Ve13f1c92= $V5d06e8a3['table'];
                break;
            case 'field-definition':
                if ($this-&gt;Ve13f1c92) {
                    $this-&gt;Vae581270[$this-&gt;Ve13f1c92][] = $V5d06e8a3;
                } else {
                    $this-&gt;V9f81f3c0[] = $V5d06e8a3;
                }
                break;
            case 'resultset':
                $this-&gt;Vaae0d98d= $V5d06e8a3;
                break;
            case 'relatedset':
                $this-&gt;Ve13f1c92= $V5d06e8a3['table'];
                $this-&gt;V51bc3e3b= $this-&gt;V43432a31;
                $this-&gt;V51bc3e3b['children'][$this-&gt;Ve13f1c92] = array();
                $this-&gt;V43432a31= null;
                break;
            case 'record':
                $this-&gt;V43432a31=
                array('record-id' =&gt; $V5d06e8a3['record-id'],
                'mod-id' =&gt; $V5d06e8a3['mod-id'],
                'fields' =&gt; array(),
                'children' =&gt; array());
                break;
            case 'field':
                $this-&gt;V26005321= $V5d06e8a3['name'];
                $this-&gt;V43432a31['fields'][$this-&gt;V26005321] = array();
                break;
            case 'data':
                $this-&gt;V6468d939= '';
                break;
        }
    }
    function _end($V3643b863, $Vb068931c)
    {
        switch ($Vb068931c) {
            case 'relatedset-definition':
                $this-&gt;Ve13f1c92= null;
                break;
            case 'relatedset':
                $this-&gt;Ve13f1c92= null;
                $this-&gt;V43432a31= $this-&gt;V51bc3e3b;
                $this-&gt;V51bc3e3b= null;
                break;
            case 'record':
                if ($this-&gt;Ve13f1c92) {
                    $this-&gt;V51bc3e3b['children'][$this-&gt;Ve13f1c92][] = $this-&gt;V43432a31;
                } else {
                    $this-&gt;V6e52c40b[] = $this-&gt;V43432a31;
                }
                $this-&gt;V43432a31= null;
                break;
            case 'field':
                $this-&gt;V26005321= null;
                break;
            case 'data':
                $this-&gt;V43432a31['fields'][$this-&gt;V26005321][] = $this-&gt;V6468d939;
                $this-&gt;V6468d939= null;
                break;
        }
    }
    function _cdata($V3643b863, $V8d777f38)
    {
        $this-&gt;V6468d939.= $this-&gt;_fm-&gt;toOutputCharset($V8d777f38);
    }
}
</code></pre>
