From 8479ec9c8b143d52134c85d222e9c89a43bd166c Mon Sep 17 00:00:00 2001 From: Sergey Panteleev Date: Wed, 25 Oct 2023 19:19:36 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=B4=D0=BE=20=D0=B0=D0=BD=D0=B3=D0=BB?= =?UTF-8?q?=D0=B8=D0=B9=D1=81=D0=BA=D0=BE=D0=B9=20=D0=B2=D0=B5=D1=80=D1=81?= =?UTF-8?q?=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mysql/functions/mysql-fetch-assoc.xml | 9 ++++-- .../mysql/functions/mysql-fetch-object.xml | 9 ++++-- reference/mysql/functions/mysql-fetch-row.xml | 9 ++++-- .../mysql/functions/mysql-get-client-info.xml | 9 ++++-- .../mysql/functions/mysql-get-host-info.xml | 9 ++++-- .../mysql/functions/mysql-get-server-info.xml | 9 ++++-- .../mysql/functions/mysql-set-charset.xml | 4 +-- reference/mysql/functions/mysql-stat.xml | 9 ++++-- .../password/functions/password-verify.xml | 4 +-- reference/posix/configure.xml | 7 ++--- reference/random/constants.xml | 7 +++-- reference/random/functions/mt-getrandmax.xml | 28 ++----------------- reference/random/functions/mt-rand.xml | 3 +- reference/random/functions/mt-srand.xml | 3 +- reference/random/functions/random-bytes.xml | 4 +-- reference/random/functions/random-int.xml | 4 +-- .../random/engine/mt19937/construct.xml | 3 +- .../random/random/randomizer/getbytes.xml | 9 +++--- reference/random/random/randomizer/getint.xml | 3 +- reference/session/book.xml | 5 ++-- .../functions/simplexml-load-file.xml | 7 ++--- .../functions/simplexml-load-string.xml | 7 ++--- .../stream-notification-callback.xml | 5 ++-- reference/tokenizer/configure.xml | 6 ++-- reference/url/functions/get-headers.xml | 4 +-- 25 files changed, 84 insertions(+), 92 deletions(-) diff --git a/reference/mysql/functions/mysql-fetch-assoc.xml b/reference/mysql/functions/mysql-fetch-assoc.xml index f25a9acf9..788936a4d 100644 --- a/reference/mysql/functions/mysql-fetch-assoc.xml +++ b/reference/mysql/functions/mysql-fetch-assoc.xml @@ -1,7 +1,7 @@ - + - + mysql_fetch_assoc Возвращает ряд результата запроса в качестве ассоциативного массива @@ -12,7 +12,10 @@ &mysql.alternative.note; mysqli_fetch_assoc - PDOStatement::fetch + + PDOStatement::fetch + с параметром mode заданным как PDO::FETCH_ASSOC + diff --git a/reference/mysql/functions/mysql-fetch-object.xml b/reference/mysql/functions/mysql-fetch-object.xml index 1d4dd03c2..45bad65bd 100644 --- a/reference/mysql/functions/mysql-fetch-object.xml +++ b/reference/mysql/functions/mysql-fetch-object.xml @@ -1,7 +1,7 @@ - + - + mysql_fetch_object Обрабатывает ряд результата запроса и возвращает объект @@ -12,7 +12,10 @@ &mysql.alternative.note; mysqli_fetch_object - PDOStatement::fetch + + PDOStatement::fetch + с параметром mode заданным как PDO::FETCH_OBJ + diff --git a/reference/mysql/functions/mysql-fetch-row.xml b/reference/mysql/functions/mysql-fetch-row.xml index dbbb9f773..854b39306 100644 --- a/reference/mysql/functions/mysql-fetch-row.xml +++ b/reference/mysql/functions/mysql-fetch-row.xml @@ -1,7 +1,7 @@ - + - + mysql_fetch_row Обрабатывает ряд результата запроса и возвращает массив с числовыми индексами @@ -12,7 +12,10 @@ &mysql.alternative.note; mysqli_fetch_row - PDOStatement::fetch + + PDOStatement::fetch + с параметром mode заданным как PDO::FETCH_NUM + diff --git a/reference/mysql/functions/mysql-get-client-info.xml b/reference/mysql/functions/mysql-get-client-info.xml index 2e79626bb..989b5e714 100644 --- a/reference/mysql/functions/mysql-get-client-info.xml +++ b/reference/mysql/functions/mysql-get-client-info.xml @@ -1,7 +1,7 @@ - + - + mysql_get_client_info Возвращает данные о MySQL-клиенте @@ -12,7 +12,10 @@ &mysql.alternative.note; mysqli_get_client_info - PDO::getAttribute + + PDO::getAttribute + с параметром attribute заданным как PDO::ATTR_CLIENT_VERSION + diff --git a/reference/mysql/functions/mysql-get-host-info.xml b/reference/mysql/functions/mysql-get-host-info.xml index c058c089b..3d5c3fa13 100644 --- a/reference/mysql/functions/mysql-get-host-info.xml +++ b/reference/mysql/functions/mysql-get-host-info.xml @@ -1,7 +1,7 @@ - + - + mysql_get_host_info Возвращает информацию о соединении с MySQL @@ -12,7 +12,10 @@ &mysql.alternative.note; mysqli_get_host_info - PDO::getAttribute + + PDO::getAttribute + с параметром attribute заданным как PDO::ATTR_CONNECTION_STATUS + diff --git a/reference/mysql/functions/mysql-get-server-info.xml b/reference/mysql/functions/mysql-get-server-info.xml index dda7ce5d9..2f05963cf 100644 --- a/reference/mysql/functions/mysql-get-server-info.xml +++ b/reference/mysql/functions/mysql-get-server-info.xml @@ -1,7 +1,7 @@ - + - + mysql_get_server_info Возвращает информацию о сервере MySQL @@ -12,7 +12,10 @@ &mysql.alternative.note; mysqli_get_server_info - PDO::getAttribute + + PDO::getAttribute + с параметром attribute заданным как PDO::ATTR_SERVER_VERSION + diff --git a/reference/mysql/functions/mysql-set-charset.xml b/reference/mysql/functions/mysql-set-charset.xml index 38787efea..e660930c2 100644 --- a/reference/mysql/functions/mysql-set-charset.xml +++ b/reference/mysql/functions/mysql-set-charset.xml @@ -1,7 +1,7 @@ - + - + mysql_set_charset Устанавливает кодировку клиента diff --git a/reference/mysql/functions/mysql-stat.xml b/reference/mysql/functions/mysql-stat.xml index 1dccde50a..457d001e4 100644 --- a/reference/mysql/functions/mysql-stat.xml +++ b/reference/mysql/functions/mysql-stat.xml @@ -1,7 +1,7 @@ - + - + mysql_stat Возвращает текущий статус сервера @@ -12,7 +12,10 @@ &mysql.alternative.note; mysqli_stat - PDO::getAttribute + + PDO::getAttribute + с параметром attribute заданным как PDO::ATTR_SERVER_INFO + diff --git a/reference/password/functions/password-verify.xml b/reference/password/functions/password-verify.xml index acd1485c6..127032017 100644 --- a/reference/password/functions/password-verify.xml +++ b/reference/password/functions/password-verify.xml @@ -1,5 +1,5 @@ - + @@ -73,7 +73,7 @@ - +
&reftitle.install; - POSIX функции доступны по умолчанию. Можно отключить - POSIX-подобные функции посредством директивы - . + &installation.enabled.disable; +
+ &reftitle.constants; @@ -9,7 +9,7 @@ MT_RAND_MT19937 - (integer) + (int) @@ -23,7 +23,7 @@ MT_RAND_PHP - (integer) + (int) @@ -35,6 +35,7 @@ Некорректная реализация доступна для обратной совместимости с помощью функции mt_srand до версии PHP 7.1.0. + &warn.deprecated.feature-8-3-0; diff --git a/reference/random/functions/mt-getrandmax.xml b/reference/random/functions/mt-getrandmax.xml index 253744c9a..80bbc7a5e 100644 --- a/reference/random/functions/mt-getrandmax.xml +++ b/reference/random/functions/mt-getrandmax.xml @@ -1,5 +1,5 @@ - + @@ -32,31 +32,7 @@ соответственно, не уменьшалась случайность. - - &reftitle.examples; - - Вычисление случайного числа с плавающей точкой - - -]]> - - &example.outputs.similar; - - - - - - + &reftitle.seealso; diff --git a/reference/random/functions/mt-rand.xml b/reference/random/functions/mt-rand.xml index 529bac9c1..770c7f367 100644 --- a/reference/random/functions/mt-rand.xml +++ b/reference/random/functions/mt-rand.xml @@ -1,5 +1,5 @@ - + @@ -165,7 +165,6 @@ echo mt_rand(5, 15), "\n"; mt_getrandmax random_int random_bytes - rand diff --git a/reference/random/functions/mt-srand.xml b/reference/random/functions/mt-srand.xml index 438a2804c..f4a0bfa02 100644 --- a/reference/random/functions/mt-srand.xml +++ b/reference/random/functions/mt-srand.xml @@ -1,5 +1,5 @@ - + @@ -52,6 +52,7 @@ + &warn.deprecated.feature-8-3-0; diff --git a/reference/random/functions/random-bytes.xml b/reference/random/functions/random-bytes.xml index 9c9a0c9ed..ef362f3ee 100644 --- a/reference/random/functions/random-bytes.xml +++ b/reference/random/functions/random-bytes.xml @@ -1,5 +1,5 @@ - + @@ -14,7 +14,7 @@ intlength - Создаёт строку, содержащую равномерно выбранные случайные байты с запрошенной длиной. + Создаёт строку, содержащую равномерно выбранные случайные байты с запрошенной длиной length. Поскольку возвращаемые байты выбираются совершенно случайно, diff --git a/reference/random/functions/random-int.xml b/reference/random/functions/random-int.xml index 9146450c6..e4a5fd7a0 100644 --- a/reference/random/functions/random-int.xml +++ b/reference/random/functions/random-int.xml @@ -1,5 +1,5 @@ - + @@ -118,7 +118,7 @@ int(-898) &reftitle.seealso; - Random\Randomizer::getInt + Random\Randomizer::getInt random_bytes diff --git a/reference/random/random/engine/mt19937/construct.xml b/reference/random/random/engine/mt19937/construct.xml index 06c9ae8df..ddfeb1595 100644 --- a/reference/random/random/engine/mt19937/construct.xml +++ b/reference/random/random/engine/mt19937/construct.xml @@ -1,5 +1,5 @@ - + @@ -58,6 +58,7 @@ + &warn.deprecated.feature-8-3-0; diff --git a/reference/random/random/randomizer/getbytes.xml b/reference/random/random/randomizer/getbytes.xml index f26f0972e..3ccada80e 100644 --- a/reference/random/random/randomizer/getbytes.xml +++ b/reference/random/random/randomizer/getbytes.xml @@ -1,5 +1,5 @@ - + @@ -14,7 +14,7 @@ intlength - Создаёт строку, содержащую равномерно выбранные случайные байты с запрошенной длиной. + Создаёт строку, содержащую равномерно выбранные случайные байты с запрошенной длиной length. Поскольку возвращаемые байты выбираются совершенно случайно, @@ -30,7 +30,7 @@ length - Длина случайной строки, которая должна быть возвращена, в байтах. Значение должно быть больше или равно 1. + Длина случайной строки (&string;), которая должна быть возвращена, в байтах. Значение должно быть больше или равно 1. @@ -40,7 +40,7 @@ &reftitle.returnvalues; - Возвращает строку, содержащую запрошенное количество случайных байтов. + Возвращает строку (&string;), содержащую запрошенное количество случайных байтов. @@ -86,6 +86,7 @@ ebdbe93cd56682c2 random_bytes bin2hex base64_encode + Random\Randomizer::getBytesFromString diff --git a/reference/random/random/randomizer/getint.xml b/reference/random/random/randomizer/getint.xml index f8c045eba..b01bb04d0 100644 --- a/reference/random/random/randomizer/getint.xml +++ b/reference/random/random/randomizer/getint.xml @@ -1,5 +1,5 @@ - + @@ -92,6 +92,7 @@ echo $r->getInt(1, 100), "\n"; &reftitle.seealso; random_int + Random\Randomizer::getFloat diff --git a/reference/session/book.xml b/reference/session/book.xml index f979263df..ad9e8cfa7 100644 --- a/reference/session/book.xml +++ b/reference/session/book.xml @@ -1,5 +1,5 @@ - + @@ -63,8 +63,7 @@ При работе с сессиями обратите внимание, что запись в сессии не создаётся - до тех пор, пока переменная не будет зарегистрирована через функцию - session_register или через добавление нового ключа + до тех пор, пока переменная не будет зарегистрирована добавление нового ключа в суперглобальном массиве $_SESSION. Это правило действует вне зависимости от того, была ли сессия запущена с использованием функции session_start. diff --git a/reference/simplexml/functions/simplexml-load-file.xml b/reference/simplexml/functions/simplexml-load-file.xml index 4e6bafa21..b1b4f1149 100644 --- a/reference/simplexml/functions/simplexml-load-file.xml +++ b/reference/simplexml/functions/simplexml-load-file.xml @@ -1,5 +1,5 @@ - + @@ -49,10 +49,7 @@ options - - Начиная с Libxml 2.6.0, вы также можете использовать параметр - options, чтобы указать дополнительные параметры Libxml. - + &dom.parameter.options; diff --git a/reference/simplexml/functions/simplexml-load-string.xml b/reference/simplexml/functions/simplexml-load-string.xml index d4abb7d53..f005a8aa0 100644 --- a/reference/simplexml/functions/simplexml-load-string.xml +++ b/reference/simplexml/functions/simplexml-load-string.xml @@ -1,5 +1,5 @@ - + @@ -48,10 +48,7 @@ options - - Начиная с Libxml 2.6.0, вы также можете использовать параметр - options, чтобы указать дополнительные параметры Libxml. - + &dom.parameter.options; diff --git a/reference/stream/functions/stream-notification-callback.xml b/reference/stream/functions/stream-notification-callback.xml index ea5d25ea1..45b280e48 100644 --- a/reference/stream/functions/stream-notification-callback.xml +++ b/reference/stream/functions/stream-notification-callback.xml @@ -1,7 +1,6 @@ - + - stream_notification_callback @@ -14,7 +13,7 @@ voidstream_notification_callback intnotification_code intseverity - stringmessage + stringnullmessage intmessage_code intbytes_transferred intbytes_max diff --git a/reference/tokenizer/configure.xml b/reference/tokenizer/configure.xml index 7cbb1a522..dc76241cc 100644 --- a/reference/tokenizer/configure.xml +++ b/reference/tokenizer/configure.xml @@ -1,11 +1,11 @@ - +
&reftitle.install; - Эти функции включены по умолчанию. Можно отключить - поддержку лексера (tokenizer) с . + &installation.enabled.disable; + &windows.builtin;
diff --git a/reference/url/functions/get-headers.xml b/reference/url/functions/get-headers.xml index 185949830..22c54a224 100644 --- a/reference/url/functions/get-headers.xml +++ b/reference/url/functions/get-headers.xml @@ -1,5 +1,5 @@ - + @@ -156,7 +156,7 @@ $context = stream_context_create( ) ] ); -$headers = get_headers('http://example.com', $context); +$headers = get_headers('http://example.com', false, $context); ?> ]]>