com doc/es: Fix #80491: [ES] curl_init() returns obje ct instead of resource: reference/curl/functions/curl -init.xml
[email protected] (Julio Napurí Carlos) Wed, 03 Feb 2021 18:29:05 +0000
| Newsgroups | php.doc.es |
|---|---|
| Message-ID | <[email protected]> |
Commit: 9d3a231289c1e2761e10771f1ef6075ed17e76b7 Author: Julio Napurí <[email protected]> Wed, 3 Feb 2021 13:29:05 -0500 Parents: 054c3e35c1f7a829c6aec676925ea5ae95d14ffc Branches: master Link: http://git.php.net/?p=doc/es.git;a=commitdiff;h=9d3a231289c1e2761e10771f1ef6075ed17e76b7 Log: Fix #80491: [ES] curl_init() returns object instead of resource Bugs: https://bugs.php.net/80491 Changed paths: M reference/curl/functions/curl-init.xml Diff: diff --git a/reference/curl/functions/curl-init.xml b/reference/curl/functions/curl-init.xml index 7bfeabea28..19eae4641a 100644 --- a/reference/curl/functions/curl-init.xml +++ b/reference/curl/functions/curl-init.xml @@ -1,17 +1,18 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- $Revision$ --> -<!-- EN-Revision: db4dfaad2a3e9f05681e92727dbfdbc502af0685 Maintainer: yago Status: ready --> +<!-- EN-Revision: b7f8c11e56ff1c57a2993e2ed7e5c5ace18637fd Maintainer: yago Status: ready --> +<!-- Reviewed: yes Maintainer: julionc --> <refentry xml:id="function.curl-init" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>curl_init</refname> <refpurpose>Inicia sesión cURL</refpurpose> </refnamediv> - + <refsect1 role="description"> &reftitle.description; <methodsynopsis> - <type>resource</type><methodname>curl_init</methodname> - <methodparam choice="opt"><type>string</type><parameter>url</parameter><initializer>&null;</initializer></methodparam> + <type class="union"><type>CurlHandle</type><type>false</type></type><methodname>curl_init</methodname> + <methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>url</parameter><initializer>&null;</initializer></methodparam> </methodsynopsis> <para> Inicia una nueva sesión y devuelve el manipulador curl para el uso de las funciones @@ -28,7 +29,7 @@ <term><parameter>url</parameter></term> <listitem> <para> - Si se proporciona, se estabecerá en el valor de la opción + Si se proporciona, se estabecerá en el valor de la opción <constant>CURLOPT_URL</constant>. Se puede establecer manualmente esta opción usando la función <function>curl_setopt</function>. </para> @@ -50,7 +51,36 @@ Devuelve un manipulador de cURL si todo fué bien, &false; si hay errores. </para> </refsect1> - + + <refsect1 role="changelog"> + &reftitle.changelog; + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>8.0.0</entry> + <entry> + En caso de éxito, esta función devuelve una instancia <classname>CurlHandle</classname> ahora; + anteriormente, se devolvía un <type>resource</type>. + </entry> + </row> + <row> + <entry>8.0.0</entry> + <entry> + <parameter>url</parameter> es ahora nullable. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </refsect1> + <refsect1 role="examples"> &reftitle.examples; <para> @@ -71,7 +101,7 @@ curl_setopt($ch, CURLOPT_HEADER, 0); // Captura la URL y la envía al navegador curl_exec($ch); -// Cierrar el recurso cURLy libera recursos del sistema +// Cierrar el recurso cURL y libera recursos del sistema curl_close($ch); ?> ]]> @@ -91,7 +121,6 @@ curl_close($ch); </refsect1> </refentry> - <!-- Keep this comment at the end of the file Local variables: mode: sgml