-
Notifications
You must be signed in to change notification settings - Fork 60
Expand file tree
/
Copy pathresource.xml
More file actions
73 lines (63 loc) · 2.25 KB
/
resource.xml
File metadata and controls
73 lines (63 loc) · 2.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 95bdd6883b5dde9504701777ba81b3c5f15df52b Maintainer: lboshell Status: ready -->
<!-- Reviewed: no Maintainer: andresdzphp -->
<sect1 xml:id="language.types.resource">
<title>Recursos</title>
<para>
Un valor tipo <type>resource</type> es una variable especial, que contiene
una referencia a un recurso externo. Los recursos son creados y usados por
funciones especiales. Vea el <link linkend="resource">apéndice</link> para
un listado de todas estas funciones y los tipos <type>resource</type>
correspondientes.
</para>
<para>
Vea también la función <function>get_resource_type</function>.
</para>
<sect2 xml:id="language.types.resource.casting">
<title>Conversión a recurso</title>
<para>
Dado que las variables <type>resource</type> contienen gestores
especiales a archivos abiertos, conexiones con bases de datos, áreas de
pintura de imágenes y cosas por el estilo, la conversión a tipo
<type>resource</type> carece de sentido.
</para>
</sect2>
<sect2 xml:id="language.types.resource.self-destruct">
<title>Liberación de recursos</title>
<para>
Gracias al sistema de conteo de referencias introducido con el Motor
Zend, un valor de tipo <type>resource</type> sin más referencias es detectado
automáticamente, y es liberado por el recolector de basura. Por esta
razón, rara vez se necesita liberar la memoria manualmente.
</para>
<note>
<simpara>
Los enlaces persistentes con bases de datos son una excepción a esta
regla. Ellos <emphasis>no</emphasis> son destruidos por el recolector de
basura. Vea también la sección sobre <link linkend="features.persistent-connections">conexiones persistentes</link>
para más información.
</simpara>
</note>
</sect2>
</sect1>
<!-- 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
indent-tabs-mode:nil
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
-->