1
0
mirror of https://github.com/php/doc-ru.git synced 2026-03-27 01:02:19 +01:00
Files
archived-doc-ru/reference/yaml/ini.xml
Gina Peter Banyard a19b1f8a7f Apply revchecked skipped commit c60943fefc4ff8950460e76d714a463437cf0eb2
Replace PHP_INI_* with INI_* constants
2024-01-26 13:58:08 +00:00

144 lines
5.3 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 86e6094e86b84a51d00ab217ac50ce8dde33d82a Maintainer: rjhdby Status: ready -->
<!-- Reviewed: no -->
<section xml:id="yaml.configuration" xmlns="http://docbook.org/ns/docbook">
&reftitle.runtime;
&extension.runtime;
<para>
<table>
<title>&ConfigureOptions; Yaml</title>
<tgroup cols="4">
<thead>
<row>
<entry>&Name;</entry>
<entry>&Default;</entry>
<entry>&Changeable;</entry>
<entry>&Changelog;</entry>
</row>
</thead>
<tbody>
<row>
<entry><link linkend="ini.yaml.decode-binary">yaml.decode_binary</link></entry>
<entry>0</entry>
<entry><constant>INI_ALL</constant></entry>
<entry><!-- leave empty, this will be filled by an automatic script --></entry>
</row>
<row>
<entry><link linkend="ini.yaml.decode-php">yaml.decode_php</link></entry>
<entry>0</entry>
<entry><constant>INI_ALL</constant></entry>
<entry>Добавлено в 1.2.0, до версии 2.0.0 значение по умолчанию было 1</entry>
</row>
<row>
<entry><link linkend="ini.yaml.decode-timestamp">yaml.decode_timestamp</link></entry>
<entry>0</entry>
<entry><constant>INI_ALL</constant></entry>
<entry><!-- leave empty, this will be filled by an automatic script --></entry>
</row>
<row>
<entry><link linkend="ini.yaml.output-canonical">yaml.output_canonical</link></entry>
<entry>0</entry>
<entry><constant>INI_ALL</constant></entry>
<entry><!-- leave empty, this will be filled by an automatic script --></entry>
</row>
<row>
<entry><link linkend="ini.yaml.output-indent">yaml.output_indent</link></entry>
<entry>2</entry>
<entry><constant>INI_ALL</constant></entry>
<entry><!-- leave empty, this will be filled by an automatic script --></entry>
</row>
<row>
<entry><link linkend="ini.yaml.output-width">yaml.output_width</link></entry>
<entry>80</entry>
<entry><constant>INI_ALL</constant></entry>
<entry><!-- leave empty, this will be filled by an automatic script --></entry>
</row>
</tbody>
</tgroup>
</table>
</para>
&ini.descriptions.title;
<para>
<variablelist>
<varlistentry xml:id="ini.yaml.decode-binary">
<term>
<parameter>yaml.decode_binary</parameter>
<type>bool</type>
</term>
<listitem>
<para>
По умолчанию Off. Если установить как On, то будут декодироваться бинарные записи
кодированные в base64 и имеющие тег "tag:yaml.org,2002:binary".
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="ini.yaml.decode-php">
<term>
<parameter>yaml.decode_php</parameter>
<type>bool</type>
</term>
<listitem>
<para>
По умолчанию Off. Если задать как On, то сериализованные объекты PHP с
явно заданным тегом "!php/object" будут десериализованы.
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="ini.yaml.decode-timestamp">
<term>
<parameter>yaml.decode_timestamp</parameter>
<type>int</type>
</term>
<listitem>
<para>
Контролирует декодирование явных и неявных скаляров
"tag:yaml.org,2002:timestamp" в потоке документов YAML. Значение по умолчанию
равно <literal>0</literal>, что означает отсутствие декодирования. Если задать
<literal>1</literal>, то для разбора временной метки Unix будет использоваться
<function>strtotime</function>. Если задать <literal>2</literal>, то для разбора
временной метки будет использоваться <function>date_create</function>,
создающая объект <type>DateTime</type>.
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="ini.yaml.output-canonical">
<term>
<parameter>yaml.output_canonical</parameter>
<type>boolean</type>
</term>
<listitem>
<para>
По умолчанию Off. Если задать как On, то будет использоваться каноничный
вывод форм.
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="ini.yaml.output-indent">
<term>
<parameter>yaml.output_indent</parameter>
<type>int</type>
</term>
<listitem>
<para>
Количество пробелов для разделения секций. Должно быть в диапазоне
от <literal>1</literal> до <literal>10</literal>.
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="ini.yaml.output-width">
<term>
<parameter>yaml.output_width</parameter>
<type>int</type>
</term>
<listitem>
<para>
Задаёт предпочтительную ширину строки. <literal>-1</literal> для неограниченной длины.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</section>