<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>820</bug_id>
          
          <creation_ts>2004-07-06 10:36:48 +0000</creation_ts>
          <short_desc>Parser doesn&apos;t parse php output</short_desc>
          <delta_ts>2004-07-06 15:20:53 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Validator</product>
          <component>Parser</component>
          <version>0.6.7</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc>http://fobo.ru/newsystem/test.php</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Nick Mitin">nickm</reporter>
          <assigned_to name="Terje Bless">link</assigned_to>
          
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2069</commentid>
    <comment_count>0</comment_count>
    <who name="Nick Mitin">nickm</who>
    <bug_when>2004-07-06 10:36:48 +0000</bug_when>
    <thetext>while truing to parse the following page &lt;http://fobo.ru/newsystem/test.php&gt;
i&apos;ve got the following error. 
--------------------
I got the following unexpected response when trying to retrieve
&lt;http://fobo.ru/newsystem/test.php&gt;:

    500 Chunked must be last Transfer-Encoding &apos;chunked &apos;

Please make sure you have entered the URL correctly. 
-----------------
What is wrong?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2070</commentid>
    <comment_count>1</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2004-07-06 10:57:24 +0000</bug_when>
    <thetext>Your php code outputs an erroneous &quot;;&quot; after &quot;chunked, hence the HTTP 500 error.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2071</commentid>
    <comment_count>2</comment_count>
    <who name="Nick Mitin">nickm</who>
    <bug_when>2004-07-06 11:07:58 +0000</bug_when>
    <thetext>php code is:

&lt;?php

print &quot;&lt;b&gt;hello&lt;/b&gt;&quot;;

?&gt;

nothing more...

i&apos;ve tried another php-interpreter, but error still persists:

I got the following unexpected response when trying to retrieve 
&lt;http://procoder.ru/test.php&gt;:

    500 Can&apos;t handle transfer encoding &apos;, chunked&apos;

Please make sure you have entered the URL correctly. </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2072</commentid>
    <comment_count>3</comment_count>
    <who name="Terje Bless">link</who>
    <bug_when>2004-07-06 11:20:53 +0000</bug_when>
    <thetext>Here is the response procoder.ru sends to a request:

-- cut here
HTTP/1.1 200 OK
Date: Tue, 06 Jul 2004 15:13:32 GMT
Server: Apache/1.3.27 (Unix) FrontPage/5.0.2.2623 PHP/4.3.2 mod_gzip/1.3.19.1a mod_accounting/
1.0 mod_fastcgi/2.4.0 mod_ssl/2.8.14 OpenSSL/0.9.7b rus/PL30.17
X-Powered-By: PHP/4.3.2
transfer-encoding: , chunked
Connection: close
Content-Type: text/html; charset=windows-1251
Vary: accept-charset, user-agent

18 
&lt;b&gt;hello&lt;/b&gt;&lt;b&gt;hello&lt;/b&gt;
0
-- cut here

The line &quot;transfer-encoding: , chunked&quot; is incorrect. The &quot;, chunked&quot; bit should not have that leading 
comma. Also I note that the capitalization of the header name is unusual, which leads me to believe 
that you have some odd software (module) installed on this server that is botching this header field.

In any case, this is not an issue with the Markup Validator, it&apos;s a problem on the server end with 
procoder.ru (and, apparently, fobo.ru).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>