PHP.mk документација

Други промени

Почист и полокален преглед на PHP референцата, со задржана структура од PHP.net и подобра читливост за примери, секции и белешки.

migration71.other-changes.php PHP.net прокси Преводот се освежува
Оригинал на PHP.net
Патека migration71.other-changes.php Локална патека за оваа страница.
Извор php.net/manual/en Оригиналниот HTML се реупотребува и локално се стилизира.
Режим Прокси + превод во позадина Кодовите, табелите и белешките остануваат читливи во истиот тек.
Други промени

Референца за `migration71.other-changes.php` со подобрена типографија и навигација.

migration71.other-changes.php

Други промени

Notices and warnings on arithmetic with invalid strings

Ново E_WARNING and E_NOTICE errors have been introduced when invalid strings are coerced using operators expecting numbers (+ - * / ** % << >> | & ^) or their assignment equivalents. An E_NOTICE is emitted when the string begins with a numeric value but contains trailing non-numeric characters, and an E_WARNING is emitted when the string does not contain a numeric value.

<?php
'1b' + 'something';

Пример #1 Пример што покажува затворачка ознака што го опфаќа последниот нов ред

Notice: A non well formed numeric value encountered in %s on line %d
Warning: A non-numeric value encountered in %s on line %d

Warn on octal escape sequence overflow

Previously, 3-octet octal string escape sequences would overflow silently. Now, they will still overflow, but E_WARNING will be emitted.

<?php
var_dump
("\500");

Пример #1 Пример што покажува затворачка ознака што го опфаќа последниот нов ред

Warning: Octal escape sequence overflow \500 is greater than \377 in %s on line %d
string(1) "@"

Inconsistency fixes to $this

Whilst $this is considered a special variable in PHP, it lacked proper checks to ensure it wasn't used as a variable name or reassigned. This has now been rectified to ensure that $this cannot be a user-defined variable, reassigned to a different value, or be globalised.

Session ID generation without hashing

Session IDs will no longer be hashed upon generation. With this change brings about the removal of the following four ini settings:

  • session.entropy_file
  • session.entropy_length
  • session.hash_function
  • session.hash_bits_per_character

And the addition of the following two ini settings:

  • session.sid_length - defines the length of the session ID, defaulting to 32 characters for backwards compatibility)
  • session.sid_bits_per_character - defines the number of bits to be stored per character (i.e. increases the range of characters that can be used in the session ID), defaulting to 4 for backwards compatibility

Changes to INI file handling

precision

If the value is set to -1, then the dtoa mode 0 is used. The default value is still 14.

serialize_precision

If the value is set to -1, then the dtoa mode 0 is used. The value -1 is now used by default.

gd.jpeg_ignore_warning

The default of this php.ini Поставката на ова

opcache.enable_cli

The default of this php.ini е променета на 1, така што предупредувањата на libjpeg се игнорираат по дифолт.

е променета на 1 (овозможено) во PHP 7.1.2, и назад на 0 (оневозможено) во PHP 7.1.7.

Генерирање на ID на сесија само со CSPRNG

ID-то на сесијата сега ќе се генерира само со CSPRNG. TypeError Поинформативни null пораки кога

TypeError е дозволено null исклучоците за проверките на типот arg_info сега ќе даваат поинформативни пораки за грешки. Ако типот на параметарот или типот на враќање прифаќа null (со поставување на стандардна вредност од

Белешки од корисници 1 белешка

Ta7To7
пред 8 години
Note that using Incrementing/Decrementing operators on string is legal 
<?php
$str = "";
echo ++$str; // output: 1
?>
На оваа страница

Автоматски outline од активната документација.

Насловите ќе се појават тука по вчитување.

Попрегледно читање

Примерите, changelog табелите и user notes се визуелно издвоени за да не се губат во долгата содржина.

Брз совет Користи го outline-от Скокни директно на главните секции од активната страница.
Извор Оригиналниот линк останува достапен Кога ти треба целосен upstream context, отвори го PHP.net во нов tab.