Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix: 62012 Correct the documentation for GZIP/DEFLATE

  • Loading branch information...
commit 1cb29ec3b77ee866210636fc17e49506594d907e 1 parent b078871
zoe slattery authored
View
19 phpt_details.php
@@ -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;
@@ -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>
@@ -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;
@@ -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>
@@ -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>
View
6 sample_tests/sample005.php
@@ -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;
@@ -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() {
@@ -55,4 +53,4 @@ function test() {
<?php
common_footer();
-?>
+?>
View
6 sample_tests/sample007.php
@@ -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;
@@ -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() {
@@ -56,4 +54,4 @@ function test() {
<?php
common_footer();
-?>
+?>
Please sign in to comment.
Something went wrong with that request. Please try again.