diff --git a/appendices/migration56.xml b/appendices/migration56.xml index 3594f3e9a..5cf79ca51 100644 --- a/appendices/migration56.xml +++ b/appendices/migration56.xml @@ -1,17 +1,7 @@ - + - - - + Миграция с PHP 5.5.x на PHP 5.6.x &appendices.migration56.incompatible; @@ -23,7 +13,7 @@ &appendices.migration56.extensions; &appendices.migration56.constants; - + Большинство изменений в PHP 5.6.x никак не скажутся на существующем коде. Есть несколько несовместимостей diff --git a/appendices/migration70.xml b/appendices/migration70.xml index 266bf7c05..e2cf3535d 100644 --- a/appendices/migration70.xml +++ b/appendices/migration70.xml @@ -1,10 +1,7 @@ - + - - + Миграция с PHP 5.6.x на PHP 7.0.x &appendices.migration70.incompatible; @@ -18,7 +15,7 @@ &appendices.migration70.removed-exts-sapis; &appendices.migration70.other-changes; - + Несмотря на то, что PHP 7.0 является новой основной версией, были предприняты усилия, чтобы сделать миграцию максимально безболезненной. Этот релиз ориентирован, diff --git a/appendices/migration71.xml b/appendices/migration71.xml index b215322b7..83ab88ab3 100644 --- a/appendices/migration71.xml +++ b/appendices/migration71.xml @@ -1,7 +1,7 @@ - + - + Миграция с PHP 7.0.x на PHP 7.1.x &appendices.migration71.new-features; @@ -13,7 +13,7 @@ &appendices.migration71.other-changes; &appendices.migration71.windows-support; - + Эта обновлённая версия приносит с собой ряд новых возможностей и diff --git a/appendices/migration72.xml b/appendices/migration72.xml index c50d951cb..bd62a98c7 100644 --- a/appendices/migration72.xml +++ b/appendices/migration72.xml @@ -1,7 +1,7 @@ - + - + Миграция с PHP 7.1.x на PHP 7.2.x &appendices.migration72.new-features; @@ -11,7 +11,7 @@ &appendices.migration72.deprecated; &appendices.migration72.other-changes; - + Эта обновлённая версия приносит с собой ряд новых возможностей и несколько несовместимостей, diff --git a/appendices/migration73.xml b/appendices/migration73.xml index f5c1bb9b5..3ff40e455 100644 --- a/appendices/migration73.xml +++ b/appendices/migration73.xml @@ -1,7 +1,7 @@ - + - + Миграция с PHP 7.2.x на PHP 7.3.x &appendices.migration73.new-features; @@ -12,7 +12,7 @@ &appendices.migration73.other-changes; &appendices.migration73.windows-support; - + Эта обновлённая версия приносит с собой ряд новых возможностей и diff --git a/appendices/migration74.xml b/appendices/migration74.xml index efa14688a..1cea14a87 100644 --- a/appendices/migration74.xml +++ b/appendices/migration74.xml @@ -1,8 +1,7 @@ - + - - + Миграция с PHP 7.3.x на PHP 7.4.x &appendices.migration74.new-features; @@ -15,7 +14,7 @@ &appendices.migration74.other-changes; &appendices.migration74.windows-support; - + Эта обновлённая версия приносит с собой ряд новых возможностей и diff --git a/appendices/migration80.xml b/appendices/migration80.xml index 8be7b078c..3260a7615 100644 --- a/appendices/migration80.xml +++ b/appendices/migration80.xml @@ -1,8 +1,7 @@ - + - - + Миграция с PHP 7.4.x на PHP 8.0.x &appendices.migration80.new-features; @@ -10,7 +9,7 @@ &appendices.migration80.deprecated; &appendices.migration80.other-changes; - + Новая версия содержит ряд новых функций и diff --git a/appendices/migration81.xml b/appendices/migration81.xml index 87133ed4b..f179d98fd 100644 --- a/appendices/migration81.xml +++ b/appendices/migration81.xml @@ -1,7 +1,7 @@ - + - + Миграция с PHP 8.0.x на PHP 8.1.x &appendices.migration81.new-features; @@ -12,7 +12,7 @@ &appendices.migration81.deprecated; &appendices.migration81.other-changes; - + Эта обновлённая версия приносит с собой ряд новых возможностей diff --git a/appendices/migration82.xml b/appendices/migration82.xml index 4148e4fb3..25997cf36 100644 --- a/appendices/migration82.xml +++ b/appendices/migration82.xml @@ -1,7 +1,7 @@ - + - + Миграция с PHP 8.1.x на PHP 8.2.x &appendices.migration82.new-features; @@ -12,7 +12,7 @@ &appendices.migration82.other-changes; &appendices.migration82.windows-support; - + Эта обновлённая версия приносит с собой ряд новых возможностей diff --git a/appendices/migration83.xml b/appendices/migration83.xml index 18338c8ae..7ed98c6bf 100644 --- a/appendices/migration83.xml +++ b/appendices/migration83.xml @@ -1,7 +1,7 @@ - + - + Миграция с PHP 8.2.x на PHP 8.3.x &appendices.migration83.new-features; @@ -13,7 +13,7 @@ &appendices.migration83.other-changes; &appendices.migration83.windows-support; - + Эта обновлённая версия приносит с собой ряд новых возможностей diff --git a/language/errors.xml b/language/errors.xml index 0ae89379a..73a66bdb7 100644 --- a/language/errors.xml +++ b/language/errors.xml @@ -1,10 +1,10 @@ - + - + Ошибки - + Введение diff --git a/language/exceptions.xml b/language/exceptions.xml index 99b706411..50853f555 100644 --- a/language/exceptions.xml +++ b/language/exceptions.xml @@ -1,7 +1,7 @@ - + - + Исключения В PHP реализована модель исключений, аналогичная тем, что используются в других языках программирования. @@ -26,7 +26,7 @@ и должно было располагаться в отдельной строке. - + <literal>catch</literal> Блок &catch; определяет, как реагировать на выброшенное исключение. @@ -62,7 +62,7 @@ - + <literal>finally</literal> Блок &finally; также может быть указан после или вместо блоков &catch;. @@ -80,7 +80,7 @@ - + Глобальный обработчик исключений Если исключению разрешено распространяться на глобальную область видимости, @@ -92,7 +92,7 @@ - + &reftitle.notes; @@ -125,7 +125,7 @@ set_error_handler('exceptions_error_handler'); - + &reftitle.examples; diff --git a/reference/datetime/formats.xml b/reference/datetime/formats.xml index b2557758d..0ab236cd2 100644 --- a/reference/datetime/formats.xml +++ b/reference/datetime/formats.xml @@ -1,5 +1,5 @@ - + Допустимые форматы даты/времени @@ -61,6 +61,14 @@ Парсер не делает никаких проверок, чтобы сделать его быстрее (и более универсальным). + + + Помимо правил для отдельных элементов времени, синтаксический анализатор + понимает и более специфические комбинированные форматы, + например, разбор меток времени Unix (@1690388256) + и дат недели в формате ISO (2008-W28-3). + + Существует дополнительная проверка, если указана недействительная дата: @@ -116,7 +124,7 @@ object(DateTimeImmutable)#1 (3) { - + Форматы времени На этой странице описаны форматы даты/времени в BNF-подобном синтаксисе, которые понимает парсер функций: @@ -278,7 +286,7 @@ object(DateTimeImmutable)#1 (3) { - + Форматы даты @@ -568,7 +576,7 @@ object(DateTimeImmutable)#1 (3) { - + Составные форматов @@ -837,7 +845,7 @@ object(DateTimeImmutable)#1 (3) { - + Относительные форматы @@ -986,9 +994,13 @@ object(DateTimeImmutable)#1 (3) { "+5 weeks", "12 day", "-7 weekdays" - ordinal space unit - Вычисляет относительное время при использовании строковых значений периода. - "fifth day", "second month" + (ordinal | reltext) space unit + Вычисляет относительное время при использовании строковых значений периода. + last и previous то же, что и + -1, this ни на что не влияет, а + next+1. + + "fifth day", "second month", "last day", "previous year" 'ago'