Explorar el Código

[ZF-9203]code example show "setStreaming()" function instead of "setStream()".

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@21303 44c647ce-9c0f-0410-b52a-842ac1e357ba
yoshida@zend.co.jp hace 16 años
padre
commit
ef0f165691

+ 2 - 2
documentation/manual/en/module_specs/Zend_Http_Client-Advanced.xml

@@ -444,7 +444,7 @@ $client->setRawData($fp, 'application/zip')->request('PUT');
                 <title>Receiving file from HTTP server with streaming</title>
 
                 <programlisting language="php"><![CDATA[
-$client->setStreaming(); // will use temp file
+$client->setStream(); // will use temp file
 $response = $client->request('GET');
 // copy file
 copy($response->getStreamName(), "my/downloads/file");
@@ -452,7 +452,7 @@ copy($response->getStreamName(), "my/downloads/file");
 $fp = fopen("my/downloads/file2", "w");
 stream_copy_to_stream($response->getStream(), $fp);
 // Also can write to known file
-$client->setStreaming("my/downloads/myfile)->request('GET');
+$client->setStream("my/downloads/myfile)->request('GET');
 ]]></programlisting>
             </example>
         </para>