com web/qa: Fix: 62012 Correct the documentation for GZIP/DEFLATE: phpt_details.php sample_tests/sample005.php s ample_tests/sample007.php

From: Date: Fri, 18 May 2012 08:27:33 +0000
Subject: com web/qa: Fix: 62012 Correct the documentation for GZIP/DEFLATE: phpt_details.php sample_tests/sample005.php s ample_tests/sample007.php
Groups: php.qa 
Request: Send a blank email to php-qa+get-66573@lists.php.net to get a copy of this message
Commit: 1cb29ec3b77ee866210636fc17e49506594d907e Author: zoe slattery <zoe@php.net> Fri, 18 May 2012 09:27:33 +0100 Parents: b0788711232f605a6d2a23c8cf8e1de8fdd40899 Branches: master Link: http://git.php.net/?p=web/qa.git;a=commitdiff;h=1cb29ec3b77ee866210636fc17e49506594d907e Log: Fix: 62012 Correct the documentation for GZIP/DEFLATE Changed paths: M phpt_details.php M sample_tests/sample005.php M sample_tests/sample007.php Diff: diff --git a/phpt_details.php b/phpt_details.php index 7e0fc3e..d1dc52c 100644 --- a/phpt_details.php +++ b/phpt_details.php @@ -254,14 +254,12 @@ When this section exists, the POST data will be gzencode()'d. This section 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 @@ Simply use 1 as the section's content.</p> &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 @@ 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 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 @@ Simply use 1 as the section's content.</p> &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 @@ No.</p> <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> diff --git a/sample_tests/sample005.php b/sample_tests/sample005.php index 16f795b..228e0f4 100644 --- a/sample_tests/sample005.php +++ b/sample_tests/sample005.php @@ -21,7 +21,7 @@ SOAP Server 19: compressed request (gzip) ?&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 @@ precision=14 &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 @@ ok <?php common_footer(); -?> \ No newline at end of file +?> diff --git a/sample_tests/sample007.php b/sample_tests/sample007.php index 6f8a9b4..3cbc3f1 100644 --- a/sample_tests/sample007.php +++ b/sample_tests/sample007..php @@ -21,7 +21,7 @@ SOAP Server 20: compressed request (deflate) ?&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 @@ precision=14 &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 @@ ok <?php common_footer(); -?> \ No newline at end of file +?>

« previous php.qa (#66573) next »