Skip to content

Commit

Permalink
Fix: 62012 Correct the documentation for GZIP/DEFLATE
Browse files Browse the repository at this point in the history
  • Loading branch information
zoe slattery committed May 18, 2012
1 parent b078871 commit 1cb29ec
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 20 deletions.
19 changes: 7 additions & 12 deletions phpt_details.php
Original file line number Diff line number Diff line change
Expand Up @@ -254,14 +254,12 @@
forces the use of the CGI binary instead of the usual CLI one.</p>
<p><b>Required:</b><br/>
No.</p>
<p><b>Requirements:</b><br/>
PHP CGI binary. Must be coupled with a --POST--.</p>
<p><b>Test Script Support:</b><br/>
run-tests.php</p>
<p><b>Format:</b><br/>
Simply use 1 as the section's content.</p>
Just add the content to be gzencode()'d in the section.</p>
<p><b>Example 1 (snippet):</b><br/>
<pre>--POST--
<pre>--GZIP_POST--
&lt;SOAP-ENV:Envelope
SOAP-ENV:encodingStyle=&quot;http://schemas.xmlsoap.org/soap/encoding/&quot;
xmlns:SOAP-ENV=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;
Expand All @@ -272,8 +270,7 @@
&lt;ns1:test xmlns:ns1=&quot;http://testuri.org&quot; /&gt;
&lt;/SOAP-ENV:Body&gt;
&lt;/SOAP-ENV:Envelope&gt;
--GZIP_POST--
1</pre></p>
</p></pre>
<p><b>Example 1 (full):</b> <a href="sample_tests/sample005.php">sample005.phpt</a></p>
</dd>

Expand All @@ -285,13 +282,12 @@
<p><b>Required:</b><br/>
No.</p>
<p><b>Requirements:</b><br/>
PHP CGI binary. Must be coupled with a --POST--.</p>
<p><b>Test Script Support:</b><br/>
run-tests.php</p>
<p><b>Format:</b><br/>
Simply use 1 as the section's content.</p>
Just add the content to be gzcompress()'ed in the section.</p>
<p><b>Example 1 (snippet):</b><br/>
<pre>--POST--
<pre>--DEFLATE_POST--
&lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;
&lt;SOAP-ENV:Envelope
SOAP-ENV:encodingStyle=&quot;http://schemas.xmlsoap.org/soap/encoding/&quot;
Expand All @@ -303,8 +299,7 @@
&lt;ns1:test xmlns:ns1=&quot;http://testuri.org&quot; /&gt;
&lt;/SOAP-ENV:Body&gt;
&lt;/SOAP-ENV:Envelope&gt;
--DEFLATE_POST--
1</pre></p>
</pre></p>
<p><b>Example 1 (full):</b> <a href="sample_tests/sample007.php">sample007.phpt</a></p>
</dd>

Expand Down Expand Up @@ -376,7 +371,7 @@
<p><b>Test Script Support:</b><br/>
run-tests.php, server-tests.php</p>
<p><b>Format:</b><br/>
Key value pairs. One setting per line.</p>
Key value pairs. One setting per line. Content that is not a valid ini setting may cause failures.</p>
<p><b>Example 1 (snippet):</b><br/>
<pre>--INI--
precision=14</pre></p>
Expand Down
6 changes: 2 additions & 4 deletions sample_tests/sample005.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
?&gt;
--INI--
precision=14
--POST--
--GZIP_POST--
&lt;SOAP-ENV:Envelope
SOAP-ENV:encodingStyle=&quot;http://schemas.xmlsoap.org/soap/encoding/&quot;
xmlns:SOAP-ENV=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;
Expand All @@ -32,8 +32,6 @@
&lt;ns1:test xmlns:ns1=&quot;http://testuri.org&quot; /&gt;
&lt;/SOAP-ENV:Body&gt;
&lt;/SOAP-ENV:Envelope&gt;
--GZIP_POST--
1
--FILE--
&lt;?php
function test() {
Expand All @@ -55,4 +53,4 @@ function test() {

<?php
common_footer();
?>
?>
6 changes: 2 additions & 4 deletions sample_tests/sample007.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
?&gt;
--INI--
precision=14
--POST--
--DEFLATE_POST--
&lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;
&lt;SOAP-ENV:Envelope
SOAP-ENV:encodingStyle=&quot;http://schemas.xmlsoap.org/soap/encoding/&quot;
Expand All @@ -33,8 +33,6 @@
&lt;ns1:test xmlns:ns1=&quot;http://testuri.org&quot; /&gt;
&lt;/SOAP-ENV:Body&gt;
&lt;/SOAP-ENV:Envelope&gt;
--DEFLATE_POST--
1
--FILE--
&lt;?php
function test() {
Expand All @@ -56,4 +54,4 @@ function test() {

<?php
common_footer();
?>
?>

0 comments on commit 1cb29ec

Please sign in to comment.