mirror of
https://github.com/php/doc-es.git
synced 2026-03-27 00:42:10 +01:00
git-svn-id: https://svn.php.net/repository/phpdoc/es/trunk@324414 c90b9560-bf6c-de11-be94-00142212c4b1
97 lines
2.9 KiB
XML
97 lines
2.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 96c9d88bad9a7d7d44bfb7f26c226df7ee9ddf26 Maintainer: seros Status: ready -->
|
|
<!-- Reviewed: no -->
|
|
|
|
<refentry xml:id="function.sqlite-udf-encode-binary" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>sqlite_udf_encode_binary</refname>
|
|
<refpurpose>Codificar datos binarios antes de devolverlos desde una UDF</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>string</type><methodname>sqlite_udf_encode_binary</methodname>
|
|
<methodparam><type>string</type><parameter>data</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
<function>sqlite_udf_encode_binary</function> aplica una codificación binaria
|
|
a <parameter>data</parameter>, por lo que se puede devolver con serguridad desde
|
|
consultas (ya que la API <filename>libsqlite</filename> subyacente no es sergura a nivel binario).
|
|
</para>
|
|
<para>
|
|
Si existe la posibilidad de que los datos sean no seguros a nivel binario (p.ej.:
|
|
contienen un byte NUL en el centro en vez de al final, o si tienen un
|
|
byte <literal>0x01</literal> como primer carácter) se debe
|
|
llamar a esta función para codificar el valor devuelto des de la FDU.
|
|
</para>
|
|
<para>
|
|
PHP no lleva a cabo esta operación de codificación/decodificación automáticamente ya que
|
|
impactaría severamente en el rendimiento si lo hiciera.
|
|
</para>
|
|
<note>
|
|
<para>
|
|
No use <function>sqlite_escape_string</function> para entrecomillar cadenas
|
|
devueltas por FDU ya que conducirá a entrecomillar doblemente los datos. ¡Use
|
|
<function>sqlite_udf_encode_binary</function> en su lugar!
|
|
</para>
|
|
</note>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>data</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
El <type>string</type> a ser codificado.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
El <type>string</type> codificado.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="seealso">
|
|
&reftitle.seealso;
|
|
<para>
|
|
<simplelist>
|
|
<member><function>sqlite_udf_decode_binary</function></member>
|
|
<member><function>sqlite_escape_string</function></member>
|
|
<member><function>sqlite_create_function</function></member>
|
|
<member><function>sqlite_create_aggregate</function></member>
|
|
</simplelist>
|
|
</para>
|
|
</refsect1>
|
|
</refentry>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|