svn: /pear/peardoc/trunk/en/package/http/http-request2/ adapters.xml request.xml

[email protected] (Alexey Borzov) Sun, 17 Oct 2010 11:47:55 +0000
Newsgroups php.pear.doc
Message-ID <[email protected]>
avb                                      Sun, 17 Oct 2010 11:47:55 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=304452

Log:
Updated dependencies info in docs, that example won't work with current Net_URL2...

Changed paths:
    U   pear/peardoc/trunk/en/package/http/http-request2/adapters.xml
    U   pear/peardoc/trunk/en/package/http/http-request2/request.xml

Modified: pear/peardoc/trunk/en/package/http/http-request2/adapters.xml
===================================================================
--- pear/peardoc/trunk/en/package/http/http-request2/adapters.xml	2010-10-17 07:31:18 UTC (rev 304451)
+++ pear/peardoc/trunk/en/package/http/http-request2/adapters.xml	2010-10-17 11:47:55 UTC (rev 304452)
@@ -111,7 +111,7 @@
    Setting <literal>strict_redirects</literal> configuration parameter to &true; will only have
    effect on Curl Adapter if <constant>CURLOPT_POSTREDIR</constant> (see <link xmlns:xlink="http://www.w3.org/1999/xlink"
     xlink:href="&url.php.bugs;49571">PHP bug #49571</link>) is available in cURL extension.
-   It is not yet available in PHP 5.3.1.
+   It is available in PHP 5.3.2 and higher.
   </para>
  </refsection>


Modified: pear/peardoc/trunk/en/package/http/http-request2/request.xml
===================================================================
--- pear/peardoc/trunk/en/package/http/http-request2/request.xml	2010-10-17 07:31:18 UTC (rev 304451)
+++ pear/peardoc/trunk/en/package/http/http-request2/request.xml	2010-10-17 11:47:55 UTC (rev 304452)
@@ -26,10 +26,10 @@
    <example>
     <title>Setting <literal>GET</literal> parameters</title>
     <programlisting role="php"><![CDATA[
-$request = new HTTP_Request2('http://pear.php.net/bugs/search.php');
+// Explicitly set request method and use_brackets
+$request = new HTTP_Request2('http://pear.php.net/bugs/search.php',
+                             HTTP_Request2::METHOD_GET, array('use_brackets' => true));
 $url = $request->getUrl();
-// Explicitly set use_brackets
-$url->setOption(Net_URL2::OPTION_USE_BRACKETS, true);
 $url->setQueryVariables(array(
     'package_name' => array('HTTP_Request2', 'Net_URL2'),
     'status'       => 'Open'